How to use test_basic_metadata_definition_namespaces method in tempest

Best Python code snippet using tempest_python

test_images_metadefs_namespaces.py

Source:test_images_metadefs_namespaces.py Github

copy

Full Screen

...18from tempest_lib import exceptions as lib_exc19class MetadataNamespacesTest(base.BaseV2ImageTest):20 """Test the Metadata definition Namespaces basic functionality"""21 @test.idempotent_id('319b765e-7f3d-4b3d-8b37-3ca3876ee768')22 def test_basic_metadata_definition_namespaces(self):23 # get the available resource types and use one resource_type24 body = self.client.list_resource_types()25 resource_name = body['resource_types'][0]['name']26 name = [{'name': resource_name}]27 namespace_name = data_utils.rand_name('namespace')28 # create the metadef namespace29 body = self.client.create_namespace(namespace=namespace_name,30 visibility='public',31 description='Tempest',32 display_name=namespace_name,33 resource_type_associations=name,34 protected=True)35 self.addCleanup(self._cleanup_namespace, namespace_name)36 # get namespace details...

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