How to use test_trust_expire_invalid method in tempest

Best Python code snippet using tempest_python

test_trusts.py

Source:test_trusts.py Github

copy

Full Screen

...198 trust_get = self.get_trust()199 self.validate_trust(trust_get, expires=expires_str)200 self.check_trust_roles()201 @test.idempotent_id('3e48f95d-e660-4fa9-85e0-5a3d85594384')202 def test_trust_expire_invalid(self):203 # Test case to check we can check an invalid expiry time204 # is rejected with the correct error205 # with an expiry specified206 expires_str = 'bad.123Z'207 self.assertRaises(lib_exc.BadRequest,208 self.create_trust,209 expires=expires_str)210 @test.idempotent_id('6268b345-87ca-47c0-9ce3-37792b43403a')211 def test_get_trusts_query(self):212 self.create_trust()213 trusts_get = self.trustor_client.get_trusts(214 trustor_user_id=self.trustor_user_id)['trusts']215 self.assertEqual(1, len(trusts_get))216 self.validate_trust(trusts_get[0], summary=True)...

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