How to use test_catalog_standardization method in tempest

Best Python code snippet using tempest_python

test_catalog.py

Source:test_catalog.py Github

copy

Full Screen

...14from tempest.lib import decorators15CONF = config.CONF16class IdentityCatalogTest(base.BaseIdentityV3Test):17 @decorators.idempotent_id('56b57ced-22b8-4127-9b8a-565dfb0207e2')18 def test_catalog_standardization(self):19 # https://opendev.org/openstack/service-types-authority20 # /src/branch/master/service-types.yaml21 standard_service_values = [{'name': 'keystone', 'type': 'identity'},22 {'name': 'nova', 'type': 'compute'},23 {'name': 'glance', 'type': 'image'},24 {'name': 'swift', 'type': 'object-store'}]25 # next, we need to GET the catalog using the catalog client26 catalog = self.non_admin_catalog_client.show_catalog()['catalog']27 # get list of the service types present in the catalog28 catalog_services = []29 for service in catalog:30 catalog_services.append(service['type'])31 for service in standard_service_values:32 # if service enabled, check if it has a standard typevalue...

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