summaryrefslogtreecommitdiff
path: root/openstackclient/tests
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/tests')
-rw-r--r--openstackclient/tests/unit/volume/v2/test_volume.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/openstackclient/tests/unit/volume/v2/test_volume.py b/openstackclient/tests/unit/volume/v2/test_volume.py
index 2fa924b8..f9a8b7c6 100644
--- a/openstackclient/tests/unit/volume/v2/test_volume.py
+++ b/openstackclient/tests/unit/volume/v2/test_volume.py
@@ -1320,7 +1320,6 @@ class TestVolumeMigrate(TestVolume):
verifylist = [
("force_host_copy", False),
("lock_volume", False),
- ("unlock_volume", False),
("host", "host@backend-name#pool"),
("volume", self._volume.id),
]
@@ -1342,7 +1341,6 @@ class TestVolumeMigrate(TestVolume):
verifylist = [
("force_host_copy", True),
("lock_volume", True),
- ("unlock_volume", False),
("host", "host@backend-name#pool"),
("volume", self._volume.id),
]
@@ -1354,27 +1352,6 @@ class TestVolumeMigrate(TestVolume):
self._volume.id, "host@backend-name#pool", True, True)
self.assertIsNone(result)
- def test_volume_migrate_with_unlock_volume(self):
- arglist = [
- "--unlock-volume",
- "--host", "host@backend-name#pool",
- self._volume.id,
- ]
- verifylist = [
- ("force_host_copy", False),
- ("lock_volume", False),
- ("unlock_volume", True),
- ("host", "host@backend-name#pool"),
- ("volume", self._volume.id),
- ]
- parsed_args = self.check_parser(self.cmd, arglist, verifylist)
-
- result = self.cmd.take_action(parsed_args)
- self.volumes_mock.get.assert_called_once_with(self._volume.id)
- self.volumes_mock.migrate_volume.assert_called_once_with(
- self._volume.id, "host@backend-name#pool", False, False)
- self.assertIsNone(result)
-
def test_volume_migrate_without_host(self):
arglist = [
self._volume.id,
@@ -1382,7 +1359,6 @@ class TestVolumeMigrate(TestVolume):
verifylist = [
("force_host_copy", False),
("lock_volume", False),
- ("unlock_volume", False),
("volume", self._volume.id),
]