test/api_stub/requests/resources/resource.rb in fog-azure-rm-0.1.0 vs test/api_stub/requests/resources/resource.rb in fog-azure-rm-0.1.1
- old
+ new
@@ -15,11 +15,11 @@
"plan": {
"name": "free"
}
}'
result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper
- client.deserialize(result_mapper, JSON.load(body), 'result.body')
+ client.deserialize(result_mapper, Fog::JSON.decode(body), 'result.body')
end
def self.list_tagged_resources_response(client)
body = '{
"value": [ {
@@ -35,10 +35,10 @@
}
} ],
"nextLink": "https://management.azure.com/subscriptions/########-####-####-####-############/resourcegroups?api-version=2015-01-01&$skiptoken=######"
}'
result_mapper = Azure::ARM::Resources::Models::ResourceListResult.mapper
- client.deserialize(result_mapper, JSON.load(body), 'result.body')
+ client.deserialize(result_mapper, Fog::JSON.decode(body), 'result.body')
end
end
end
end
end