diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2018_03_01/test_custom_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2018_03_01/test_custom_vm_commands.py index f2b2005af40..031ab99d46d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2018_03_01/test_custom_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2018_03_01/test_custom_vm_commands.py @@ -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 @@ -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) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2019_03_01/test_custom_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2019_03_01/test_custom_vm_commands.py index f2b2005af40..031ab99d46d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2019_03_01/test_custom_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2019_03_01/test_custom_vm_commands.py @@ -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 @@ -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) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2020_09_01/test_custom_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2020_09_01/test_custom_vm_commands.py index c6da87fd631..16c8d7026d7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2020_09_01/test_custom_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2020_09_01/test_custom_vm_commands.py @@ -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 @@ -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)