How to use _test_create_role_inference_rule method in tempest

Best Python code snippet using tempest_python

test_roles_client.py

Source:test_roles_client.py Github

copy

Full Screen

...206 self.FAKE_LIST_ROLES,207 bytes_body,208 domain_id="b344506af7644f6794d9cb316600b020",209 group_id="123")210 def _test_create_role_inference_rule(self, bytes_body=False):211 self.check_service_client_function(212 self.client.create_role_inference_rule,213 'tempest.lib.common.rest_client.RestClient.put',214 self.FAKE_ROLE_INFERENCE_RULE,215 bytes_body,216 status=201,217 prior_role=self.FAKE_ROLE_ID,218 implies_role=self.FAKE_ROLE_ID_2)219 def _test_show_role_inference_rule(self, bytes_body=False):220 self.check_service_client_function(221 self.client.show_role_inference_rule,222 'tempest.lib.common.rest_client.RestClient.get',223 self.FAKE_ROLE_INFERENCE_RULE,224 bytes_body,225 prior_role=self.FAKE_ROLE_ID,226 implies_role=self.FAKE_ROLE_ID_2)227 def _test_list_role_inferences_rules(self, bytes_body=False):228 self.check_service_client_function(229 self.client.list_role_inferences_rules,230 'tempest.lib.common.rest_client.RestClient.get',231 self.FAKE_LIST_ROLE_INFERENCES_RULES,232 bytes_body,233 prior_role=self.FAKE_ROLE_ID)234 def test_create_role_with_str_body(self):235 self._test_create_role()236 def test_create_role_with_bytes_body(self):237 self._test_create_role(bytes_body=True)238 def test_show_role_with_str_body(self):239 self._test_show_role()240 def test_show_role_with_bytes_body(self):241 self._test_show_role(bytes_body=True)242 def test_list_roles_with_str_body(self):243 self._test_list_roles()244 def test_list_roles_with_bytes_body(self):245 self._test_list_roles(bytes_body=True)246 def test_update_role_with_str_body(self):247 self._test_update_role()248 def test_update_role_with_bytes_body(self):249 self._test_update_role(bytes_body=True)250 def test_delete_role(self):251 self.check_service_client_function(252 self.client.delete_role,253 'tempest.lib.common.rest_client.RestClient.delete',254 {},255 role_id=self.FAKE_ROLE_ID,256 status=204)257 def test_create_user_role_on_project_with_str_body(self):258 self._test_create_user_role_on_project()259 def test_create_user_role_on_project_with_bytes_body(self):260 self._test_create_user_role_on_project(bytes_body=True)261 def test_create_user_role_on_domain_with_str_body(self):262 self._test_create_user_role_on_domain()263 def test_create_user_role_on_domain_with_bytes_body(self):264 self._test_create_user_role_on_domain(bytes_body=True)265 def test_create_group_role_on_domain_with_str_body(self):266 self._test_create_group_role_on_domain()267 def test_create_group_role_on_domain_with_bytes_body(self):268 self._test_create_group_role_on_domain(bytes_body=True)269 def test_list_user_roles_on_project_with_str_body(self):270 self._test_list_user_roles_on_project()271 def test_list_user_roles_on_project_with_bytes_body(self):272 self._test_list_user_roles_on_project(bytes_body=True)273 def test_list_user_roles_on_domain_with_str_body(self):274 self._test_list_user_roles_on_domain()275 def test_list_user_roles_on_domain_with_bytes_body(self):276 self._test_list_user_roles_on_domain(bytes_body=True)277 def test_list_group_roles_on_domain_with_str_body(self):278 self._test_list_group_roles_on_domain()279 def test_list_group_roles_on_domain_with_bytes_body(self):280 self._test_list_group_roles_on_domain(bytes_body=True)281 def test_delete_role_from_user_on_project(self):282 self.check_service_client_function(283 self.client.delete_role_from_user_on_project,284 'tempest.lib.common.rest_client.RestClient.delete',285 {},286 project_id="b344506af7644f6794d9cb316600b020",287 user_id="123",288 role_id="1234",289 status=204)290 def test_delete_role_from_user_on_domain(self):291 self.check_service_client_function(292 self.client.delete_role_from_user_on_domain,293 'tempest.lib.common.rest_client.RestClient.delete',294 {},295 domain_id="b344506af7644f6794d9cb316600b020",296 user_id="123",297 role_id="1234",298 status=204)299 def test_delete_role_from_group_on_project(self):300 self.check_service_client_function(301 self.client.delete_role_from_group_on_project,302 'tempest.lib.common.rest_client.RestClient.delete',303 {},304 project_id="b344506af7644f6794d9cb316600b020",305 group_id="123",306 role_id="1234",307 status=204)308 def test_delete_role_from_group_on_domain(self):309 self.check_service_client_function(310 self.client.delete_role_from_group_on_domain,311 'tempest.lib.common.rest_client.RestClient.delete',312 {},313 domain_id="b344506af7644f6794d9cb316600b020",314 group_id="123",315 role_id="1234",316 status=204)317 def test_check_user_role_existence_on_project(self):318 self.check_service_client_function(319 self.client.check_user_role_existence_on_project,320 'tempest.lib.common.rest_client.RestClient.head',321 {},322 project_id="b344506af7644f6794d9cb316600b020",323 user_id="123",324 role_id="1234",325 status=204)326 def test_check_user_role_existence_on_domain(self):327 self.check_service_client_function(328 self.client.check_user_role_existence_on_domain,329 'tempest.lib.common.rest_client.RestClient.head',330 {},331 domain_id="b344506af7644f6794d9cb316600b020",332 user_id="123",333 role_id="1234",334 status=204)335 def test_check_role_from_group_on_project_existence(self):336 self.check_service_client_function(337 self.client.check_role_from_group_on_project_existence,338 'tempest.lib.common.rest_client.RestClient.head',339 {},340 project_id="b344506af7644f6794d9cb316600b020",341 group_id="123",342 role_id="1234",343 status=204)344 def test_check_role_from_group_on_domain_existence(self):345 self.check_service_client_function(346 self.client.check_role_from_group_on_domain_existence,347 'tempest.lib.common.rest_client.RestClient.head',348 {},349 domain_id="b344506af7644f6794d9cb316600b020",350 group_id="123",351 role_id="1234",352 status=204)353 def test_create_role_inference_rule_with_str_body(self):354 self._test_create_role_inference_rule()355 def test_create_role_inference_rule_with_bytes_body(self):356 self._test_create_role_inference_rule(bytes_body=True)357 def test_show_role_inference_rule_with_str_body(self):358 self._test_show_role_inference_rule()359 def test_show_role_inference_rule_with_bytes_body(self):360 self._test_show_role_inference_rule(bytes_body=True)361 def test_list_role_inferences_rules_with_str_body(self):362 self._test_list_role_inferences_rules()363 def test_list_role_inferences_rules_with_bytes_body(self):364 self._test_list_role_inferences_rules(bytes_body=True)365 def test_check_role_inference_rule(self):366 self.check_service_client_function(367 self.client.check_role_inference_rule,368 'tempest.lib.common.rest_client.RestClient.head',369 {},370 status=204,...

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