@@ -1188,7 +1188,6 @@ def test_volume_migrate(self):
11881188 verifylist = [
11891189 ("force_host_copy" , False ),
11901190 ("lock_volume" , False ),
1191- ("unlock_volume" , False ),
11921191 ("host" , "host@backend-name#pool" ),
11931192 ("volume" , self ._volume .id ),
11941193 ]
@@ -1210,7 +1209,6 @@ def test_volume_migrate_with_option(self):
12101209 verifylist = [
12111210 ("force_host_copy" , True ),
12121211 ("lock_volume" , True ),
1213- ("unlock_volume" , False ),
12141212 ("host" , "host@backend-name#pool" ),
12151213 ("volume" , self ._volume .id ),
12161214 ]
@@ -1222,35 +1220,13 @@ def test_volume_migrate_with_option(self):
12221220 self ._volume .id , "host@backend-name#pool" , True , True )
12231221 self .assertIsNone (result )
12241222
1225- def test_volume_migrate_with_unlock_volume (self ):
1226- arglist = [
1227- "--unlock-volume" ,
1228- "--host" , "host@backend-name#pool" ,
1229- self ._volume .id ,
1230- ]
1231- verifylist = [
1232- ("force_host_copy" , False ),
1233- ("lock_volume" , False ),
1234- ("unlock_volume" , True ),
1235- ("host" , "host@backend-name#pool" ),
1236- ("volume" , self ._volume .id ),
1237- ]
1238- parsed_args = self .check_parser (self .cmd , arglist , verifylist )
1239-
1240- result = self .cmd .take_action (parsed_args )
1241- self .volumes_mock .get .assert_called_once_with (self ._volume .id )
1242- self .volumes_mock .migrate_volume .assert_called_once_with (
1243- self ._volume .id , "host@backend-name#pool" , False , False )
1244- self .assertIsNone (result )
1245-
12461223 def test_volume_migrate_without_host (self ):
12471224 arglist = [
12481225 self ._volume .id ,
12491226 ]
12501227 verifylist = [
12511228 ("force_host_copy" , False ),
12521229 ("lock_volume" , False ),
1253- ("unlock_volume" , False ),
12541230 ("volume" , self ._volume .id ),
12551231 ]
12561232
0 commit comments