test/api_stub/requests/resources/resource_group.rb in fog-azure-rm-0.1.0 vs test/api_stub/requests/resources/resource_group.rb in fog-azure-rm-0.1.1
- old
+ new
@@ -14,11 +14,11 @@
"properties": {
"provisioning_state": "Succeeded"
}
}'
result_mapper = Azure::ARM::Resources::Models::ResourceGroup.mapper
- client.deserialize(result_mapper, JSON.load(body), 'result.body')
+ client.deserialize(result_mapper, Fog::JSON.decode(body), 'result.body')
end
def self.list_resource_group_response(client)
body = '{
"value": [ {
@@ -33,10 +33,10 @@
}
} ],
"nextLink": "https://management.azure.com/subscriptions/########-####-####-####-############/resourcegroups?api-version=2015-01-01&$skiptoken=######"
}'
result_mapper = Azure::ARM::Resources::Models::ResourceGroupListResult.mapper
- client.deserialize(result_mapper, JSON.load(body), 'result.body')
+ client.deserialize(result_mapper, Fog::JSON.decode(body), 'result.body')
end
def self.list_resource_groups_for_zones
resource_group = ::Azure::ARM::Resources::Models::ResourceGroup.new
resource_group.id = '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-resource-group'