test/models/compute/test_server.rb in fog-azure-rm-0.5.0 vs test/models/compute/test_server.rb in fog-azure-rm-0.5.1

- old
+ new

@@ -214,9 +214,15 @@ def test_attach_managed_disk_response response = ApiStub::Models::Compute::Server.attach_managed_disk_response(@compute_client) @service.stub :attach_data_disk_to_vm, response do assert_instance_of Fog::Compute::AzureRM::Server, @server.attach_managed_disk('disk_name', 'resoure_group') end + @service.stub :attach_data_disk_to_vm, response do + assert_instance_of Fog::Compute::AzureRM::Server, @server.attach_managed_disk('disk_name', 'resoure_group', false, 'ReadOnly') + end + @service.stub :attach_data_disk_to_vm, response do + assert_instance_of Fog::Compute::AzureRM::Server, @server.attach_managed_disk('disk_name', 'resoure_group', false, 'ReadWrite') + end async_response = Concurrent::Promise.execute { 10 } @service.stub :attach_data_disk_to_vm, async_response do assert_instance_of Fog::AzureRM::AsyncResponse, @server.attach_managed_disk('managed_disk_name', 'resoure_group', true) end