Best Python code snippet using tempest_python
test_roles.py
Source:test_roles.py
...123 resp, _ = self.v3_client.revoke_role_from_group_on_project(124 self.project['id'], self.group_body['id'], self.role['id'])125 self.assertEqual(resp['status'], '204')126 @attr(type='smoke')127 def test_grant_list_revoke_role_to_group_on_domain(self):128 resp, _ = self.v3_client.assign_group_role_on_domain(129 self.domain['id'], self.group_body['id'], self.role['id'])130 self.assertEqual(resp['status'], '204')131 resp, roles = self.v3_client.list_group_roles_on_domain(132 self.domain['id'], self.group_body['id'])133 for i in roles:134 self.fetched_role_ids.append(i['id'])135 self._list_assertions(resp, roles, self.fetched_role_ids,136 self.role['id'])137 resp, _ = self.v3_client.revoke_role_from_group_on_domain(138 self.domain['id'], self.group_body['id'], self.role['id'])139 self.assertEqual(resp['status'], '204')140class RolesV3TestXML(RolesV3TestJSON):141 _interface = 'xml'
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.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!