How to use test_volume_delete_cascade method in tempest

Best Python code snippet using tempest_python

test_volume_delete_cascade.py

Source:test_volume_delete_cascade.py Github

copy

Full Screen

...43 # Verify snapshots were deleted44 self.assertNotIn(volume_id, map(operator.itemgetter('volume_id'),45 snapshot_list))46 @decorators.idempotent_id('994e2d40-de37-46e8-b328-a58fba7e4a95')47 def test_volume_delete_cascade(self):48 # The case validates the ability to delete a volume49 # with associated snapshots.50 # Create a volume51 volume = self.create_volume()52 for _ in range(2):53 self.create_snapshot(volume['id'])54 # Delete the parent volume with associated snapshots55 self.volumes_client.delete_volume(volume['id'], cascade=True)56 self.volumes_client.wait_for_resource_deletion(volume['id'])57 # Verify volume parent was deleted with its associated snapshots58 self._assert_cascade_delete(volume['id'])59 @decorators.idempotent_id('59a77ede-609b-4ee8-9f68-fc3c6ffe97b5')60 @testtools.skipIf(CONF.volume.storage_protocol == 'ceph',61 'Skip because of Bug#1677525')...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tempest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful