How to use test_update_security_group_with_invalid_sg_des method in tempest

Best Python code snippet using tempest_python

test_security_groups_negative.py

Source:test_security_groups_negative.py Github

copy

Full Screen

...150 @testtools.skipIf(CONF.service_available.neutron,151 "Neutron does not check the security group description")152 @test.attr(type=['negative'])153 @test.services('network')154 def test_update_security_group_with_invalid_sg_des(self):155 # Update security_group with invalid sg_des should fail156 securitygroup = self.create_security_group()157 self.assertIn('id', securitygroup)158 securitygroup_id = securitygroup['id']159 # Update Security Group with group description longer than 255 chars160 s_new_des = 'des-'.ljust(260, '0')161 self.assertRaises(lib_exc.BadRequest,162 self.client.update_security_group,163 securitygroup_id, description=s_new_des)164 @test.attr(type=['negative'])165 @decorators.idempotent_id('27edee9c-873d-4da6-a68a-3c256efebe8f')166 @test.services('network')167 def test_update_non_existent_security_group(self):168 # Update a non-existent Security Group should Fail...

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