How to use test_create_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

...118 image['id'], [{'add': '/os_glance_foo',119 'value': 'bar'}])120 @decorators.attr(type=['negative'])121 @decorators.idempotent_id('e3fb7df8-2742-4143-8976-f1b26870f0a0')122 def test_create_image_reserved_property(self):123 """Attempt to create an image with a reserved property.124 Glance bans some internal-use-only properties such that they will125 cause an image create to fail. Since os_glance_* is banned, we can126 use a key in that namespace here.127 """128 if not CONF.image_feature_enabled.os_glance_reserved:129 raise self.skipException('os_glance_reserved is not enabled')130 self.assertRaises(lib_exc.Forbidden,131 self.create_image,132 name='test',133 container_format='bare',134 disk_format='raw',135 os_glance_foo='bar')136class ImportImagesNegativeTest(base.BaseV2ImageTest):...

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