How to use _wait_for_internal_volume_cleanup method in tempest

Best Python code snippet using tempest_python

test_volume_retype.py

Source:test_volume_retype.py Github

copy

Full Screen

...17from tempest.lib import decorators18CONF = config.CONF19LOG = logging.getLogger(__name__)20class VolumeRetypeTest(base.BaseVolumeAdminTest):21 def _wait_for_internal_volume_cleanup(self, vol):22 # When retyping a volume, Cinder creates an internal volume in the23 # target backend. The volume in the source backend is deleted after24 # the migration, so we need to wait for Cinder delete this volume25 # before deleting the types we've created.26 # This list should return 2 volumes until the copy and cleanup27 # process is finished.28 fetched_list = self.admin_volume_client.list_volumes(29 params={'all_tenants': True,30 'name': vol['name']})['volumes']31 for fetched_vol in fetched_list:32 if fetched_vol['id'] != vol['id']:33 # This is the Cinder internal volume34 LOG.debug('Waiting for internal volume %s deletion',35 fetched_vol['id'])...

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