How to use test_update_show_delete_image_metadata method in tempest

Best Python code snippet using tempest_python

test_image_metadata.py

Source:test_image_metadata.py Github

copy

Full Screen

...31 # Create a volume from image ID32 cls.volume = cls.create_volume(imageRef=CONF.compute.image_ref)33 @decorators.idempotent_id('03efff0b-5c75-4822-8f10-8789ac15b13e')34 @utils.services('image')35 def test_update_show_delete_image_metadata(self):36 # Update image metadata37 image_metadata = {'image_id': '5137a025-3c5f-43c1-bc64-5f41270040a5',38 'image_name': 'image',39 'kernel_id': '6ff710d2-942b-4d6b-9168-8c9cc2404ab1',40 'ramdisk_id': 'somedisk'}41 self.volumes_client.update_volume_image_metadata(self.volume['id'],42 **image_metadata)43 # Fetch volume's image metadata by show_volume method44 volume_image_metadata = self.volumes_client.show_volume(45 self.volume['id'])['volume']['volume_image_metadata']46 # Verify image metadata was updated47 self.assertThat(volume_image_metadata.items(),48 matchers.ContainsAll(image_metadata.items()))49 # Delete one item from image metadata of the volume...

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