Skip to content

Commit 7501944

Browse files
committed
Fix storage policy smoke test
1 parent 7d7e7f7 commit 7501944

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

test/integration/smoke/test_storage_policy.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)