How to use test_assignments_for_domain_roles method in tempest

Best Python code snippet using tempest_python

test_roles.py

Source:test_roles.py Github

copy

Full Screen

...304 self.roles_client.create_role_inference_rule,305 self.role['id'],306 domain_role1['id'])307 @decorators.idempotent_id('3859df7e-5b78-4e4d-b10e-214c8953842a')308 def test_assignments_for_domain_roles(self):309 domain_role = self.setup_test_role(domain_id=self.domain['id'])310 # Create a grant using "domain_role"311 self.roles_client.create_user_role_on_project(312 self.project['id'], self.user_body['id'], domain_role['id'])313 self.addCleanup(314 self.roles_client.delete_role_from_user_on_project,315 self.project['id'], self.user_body['id'], domain_role['id'])316 # NOTE(rodrigods): Regular roles would appear in the effective317 # list of role assignments (meaning the role would be returned in318 # a token) as a result from the grant above. This is not the case319 # for domain roles, they should not appear in the effective role320 # assignments list.321 params = {'scope.project.id': self.project['id'],322 'user.id': self.user_body['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