Best Python code snippet using tempest_python
test_images_tags_negative.py
Source:test_images_tags_negative.py
...18from tempest import exceptions19from tempest.test import attr20class ImagesTagsNegativeTest(base.BaseV2ImageTest):21 @attr(type=['negative', 'gate'])22 def test_update_tags_for_non_existing_image(self):23 # Update tag with non existing image.24 tag = data_utils.rand_name('tag-')25 non_exist_image = str(uuid.uuid4())26 self.assertRaises(exceptions.NotFound, self.client.add_image_tag,27 non_exist_image, tag)28 @attr(type=['negative', 'gate'])29 def test_delete_non_existing_tag(self):30 # Delete non existing tag.31 resp, body = self.create_image(container_format='bare',32 disk_format='raw',33 is_public=True,34 )35 image_id = body['id']36 tag = data_utils.rand_name('non-exist-tag-')...
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!