test/api_stub/models/network/virtual_network.rb in fog-azure-rm-0.0.4 vs test/api_stub/models/network/virtual_network.rb in fog-azure-rm-0.0.5

- old
+ new

@@ -1,10 +1,10 @@ module ApiStub module Models module Network class VirtualNetwork - def self.create_virtual_network_response + def self.create_virtual_network_response(network_client) vnet = '{ "name":"fog-test-virtual-network", "id":"/subscriptions/{guid}/resourceGroups/fog-test-rg/providers/Microsoft.Network/virtualNetworks/fog-test-virtual-network", "location":"West US", "tags":{ @@ -51,10 +51,11 @@ } } ] } }' - JSON.parse(vnet) + vnet_mapper = Azure::ARM::Network::Models::VirtualNetwork.mapper + network_client.deserialize(vnet_mapper, JSON.load(vnet), 'result.body') end end end end end