test/api_stub/models/compute/server.rb in fog-azure-rm-temp-0.0.4 vs test/api_stub/models/compute/server.rb in fog-azure-rm-temp-0.0.5

- old
+ new

@@ -47,10 +47,14 @@ 'networkInterfaces' => [ { 'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/networkInterfaces/fogtestnetworkinterface' } ] + }, + 'instanceView' => { + 'platformUpgradeDomain' => 5, + 'platformFaultDomain' => 2 } } } vm_mapper = Azure::ARM::Compute::Models::VirtualMachine.mapper compute_client.deserialize(vm_mapper, body, 'result.body') @@ -98,10 +102,14 @@ 'networkInterfaces' => [ { 'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/networkInterfaces/fogtestnetworkinterface' } ] + }, + 'instanceView' => { + 'platformUpgradeDomain' => 5, + 'platformFaultDomain' => 2 } } } vm_mapper = Azure::ARM::Compute::Models::VirtualMachine.mapper compute_client.deserialize(vm_mapper, body, 'result.body') @@ -155,16 +163,16 @@ 'uri' => 'http://mystorage1.blob.core.windows.net/vhds/disk1.vhd' } }, { 'lun' => 1, # add new managed datadisk - 'name' => "datadisk2", - 'managedDisk'=> { - 'id'=> '/subscriptions/{subscription-id}/resourceGroups/myresourcegroup1/providers/Microsoft.Compute/disks/myDisk2', - 'storageAccountType'=> 'Standard_LRS' + 'name' => 'datadisk2', + 'managedDisk' => { + 'id' => '/subscriptions/{subscription-id}/resourceGroups/myresourcegroup1/providers/Microsoft.Compute/disks/myDisk2', + 'storageAccountType' => 'Standard_LRS' }, - 'createOption'=> 'attach' + 'createOption' => 'attach' } ] }, 'osProfile' => { 'computerName' => 'fog-test-server', @@ -177,10 +185,14 @@ 'networkInterfaces' => [ { 'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/networkInterfaces/fogtestnetworkinterface' } ] + }, + 'instanceView' => { + 'platformUpgradeDomain' => 5, + 'platformFaultDomain' => 2 } } } vm_mapper = Azure::ARM::Compute::Models::VirtualMachine.mapper compute_client.deserialize(vm_mapper, body, 'result.body') @@ -238,9 +250,13 @@ 'networkInterfaces' => [ { 'id' => '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.Network/networkInterfaces/fogtestnetworkinterface' } ] + }, + 'instanceView' => { + 'platformUpgradeDomain' => 5, + 'platformFaultDomain' => 2 } } } vm_mapper = Azure::ARM::Compute::Models::VirtualMachine.mapper compute_client.deserialize(vm_mapper, body, 'result.body')