File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -234,13 +234,6 @@ def test_01_import_storage_policies(self):
234234 )
235235 self .cleanup .append (volume )
236236
237- self .debug (
238- "Attaching volume (ID: %s) to VM (ID: %s)" % (
239- volume .id ,
240- virtual_machine .id
241- ))
242- virtual_machine .attach_volume (self .apiclient , volume )
243-
244237 list_volume_response = Volume .list (
245238 self .apiclient ,
246239 id = volume .id
@@ -255,27 +248,4 @@ def test_01_import_storage_policies(self):
255248 None ,
256249 "Check if volume exists in ListVolumes"
257250 )
258- volume = list_volume_response [0 ]
259- self .assertNotEqual (
260- volume .virtualmachineid ,
261- None ,
262- "Check if volume state (attached) is reflected"
263- )
264-
265- self .debug (
266- "Detaching volume (ID: %s) from VM (ID: %s)" % (
267- volume .id ,
268- virtual_machine .id
269- ))
270- virtual_machine .detach_volume (self .apiclient , volume )
271- list_volume_response = Volume .list (
272- self .apiclient ,
273- id = volume .id
274- )
275- volume = list_volume_response [0 ]
276- self .assertEqual (
277- volume .virtualmachineid ,
278- None ,
279- "Check if volume state (detached) is reflected"
280- )
281251 return
You can’t perform that action at this time.
0 commit comments