How to use test_inherit_assign_list_check_revoke_roles_on_domains_user method in tempest

Best Python code snippet using tempest_python

test_inherits.py

Source:test_inherits.py Github

copy

Full Screen

...53 self.assertEqual(len(body), 1)54 self.assertIn(role_id, fetched_role_ids)55class InheritsV3TestJSON(BaseInheritsV3Test):56 @test.idempotent_id('4e6f0366-97c8-423c-b2be-41eae6ac91c8')57 def test_inherit_assign_list_check_revoke_roles_on_domains_user(self):58 # Create role59 src_role = self.roles_client.create_role(60 name=data_utils.rand_name('Role'))['role']61 self.addCleanup(self.roles_client.delete_role, src_role['id'])62 # Assign role on domains user63 self.roles_client.assign_inherited_role_on_domains_user(64 self.domain['id'], self.user['id'], src_role['id'])65 # list role on domains user66 roles = self.roles_client.\67 list_inherited_project_role_for_user_on_domain(68 self.domain['id'], self.user['id'])['roles']69 fetched_role_ids = [i['id'] for i in roles]70 self._list_assertions(roles, fetched_role_ids,71 src_role['id'])...

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