How to use test_update_image_reserved_property method in tempest

Best Python code snippet using tempest_python

test_images_negative.py

Source:test_images_negative.py Github

copy

Full Screen

...101 self.client.delete_image,102 image['id'])103 @decorators.attr(type=['negative'])104 @decorators.idempotent_id('a0ae75d4-ce9c-4576-b823-aba04c8acabd')105 def test_update_image_reserved_property(self):106 """Attempt to add a reserved property to an image.107 Glance bans some internal-use-only properties such that they will108 cause a PATCH to fail. Since os_glance_* is banned, we can use a109 key in that namespace here.110 """111 if not CONF.image_feature_enabled.os_glance_reserved:112 raise self.skipException('os_glance_reserved is not enabled')113 image = self.create_image(name='test',114 container_format='bare',115 disk_format='raw')116 self.assertRaises(lib_exc.Forbidden,117 self.client.update_image,118 image['id'], [{'add': '/os_glance_foo',119 'value': 'bar'}])...

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