Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzhudd committed Jul 27, 2022
1 parent cfdd348 commit 36d73c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
_get_extension_instance_name,
get_boot_log)
from azure.cli.command_modules.vm.custom import \
(attach_unmanaged_data_disk, detach_data_disk, get_vmss_instance_view)
(attach_unmanaged_data_disk, detach_unmanaged_data_disk, get_vmss_instance_view)

from azure.cli.core import AzCommandsLoader
from azure.cli.core.commands import AzCliCommand
Expand Down Expand Up @@ -206,7 +206,7 @@ def test_deattach_disk_on_vm(self, mock_vm_set, mock_vm_get_to_update):
mock_vm_get_to_update.return_value = vm

# execute
detach_data_disk(cmd, 'rg1', 'vm1', 'd1')
detach_unmanaged_data_disk(cmd, 'rg1', 'vm1', 'd1')

# assert
self.assertTrue(mock_vm_get_to_update.called)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
_get_extension_instance_name,
get_boot_log)
from azure.cli.command_modules.vm.custom import \
(attach_unmanaged_data_disk, detach_data_disk, get_vmss_instance_view)
(attach_unmanaged_data_disk, detach_unmanaged_data_disk, get_vmss_instance_view)

from azure.cli.core import AzCommandsLoader
from azure.cli.core.commands import AzCliCommand
Expand Down Expand Up @@ -206,7 +206,7 @@ def test_deattach_disk_on_vm(self, mock_vm_set, mock_vm_get_to_update):
mock_vm_get_to_update.return_value = vm

# execute
detach_data_disk(cmd, 'rg1', 'vm1', 'd1')
detach_unmanaged_data_disk(cmd, 'rg1', 'vm1', 'd1')

# assert
self.assertTrue(mock_vm_get_to_update.called)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
_get_extension_instance_name,
get_boot_log)
from azure.cli.command_modules.vm.custom import \
(attach_unmanaged_data_disk, detach_data_disk, get_vmss_instance_view)
(attach_unmanaged_data_disk, detach_unmanaged_data_disk, get_vmss_instance_view)

from azure.cli.core import AzCommandsLoader
from azure.cli.core.commands import AzCliCommand
Expand Down Expand Up @@ -218,7 +218,7 @@ def test_deattach_disk_on_vm(self, mock_vm_set, mock_vm_get_to_update):
mock_vm_get_to_update.return_value = vm

# execute
detach_data_disk(cmd, 'rg1', 'vm1', 'd1')
detach_unmanaged_data_disk(cmd, 'rg1', 'vm1', 'd1')

# assert
self.assertTrue(mock_vm_get_to_update.called)
Expand Down

0 comments on commit 36d73c4

Please sign in to comment.