How to use test_create_security_group_rule_wrong_ip_prefix_version 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

...176 _ip_version = 6177 _tenant_network_cidr = CONF.network.tenant_network_v6_cidr178 @test.attr(type=['negative', 'gate'])179 @test.idempotent_id('7607439c-af73-499e-bf64-f687fd12a842')180 def test_create_security_group_rule_wrong_ip_prefix_version(self):181 group_create_body, _ = self._create_security_group()182 # Create rule with bad remote_ip_prefix183 pairs = ({'ethertype': 'IPv6',184 'ip_prefix': CONF.network.tenant_network_cidr},185 {'ethertype': 'IPv4',186 'ip_prefix': CONF.network.tenant_network_v6_cidr})187 for pair in pairs:188 self.assertRaisesRegexp(189 lib_exc.BadRequest,190 "Conflicting value ethertype",191 self.client.create_security_group_rule,192 security_group_id=group_create_body['security_group']['id'],193 protocol='tcp', direction='ingress',194 ethertype=pair['ethertype'],...

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