Best Python code snippet using tempest_python
test_security_groups.py
Source:test_security_groups.py
...142 port_range_min,143 port_range_max)144 @test.attr(type='smoke')145 @test.idempotent_id('c9463db8-b44d-4f52-b6c0-8dbda99f26ce')146 def test_create_security_group_rule_with_icmp_type_code(self):147 """Verify security group rule for icmp protocol works.148 Specify icmp type (port_range_min) and icmp code149 (port_range_max) with different values. A separate testcase150 is added for icmp protocol as icmp validation would be151 different from tcp/udp.152 """153 group_create_body, _ = self._create_security_group()154 sg_id = group_create_body['security_group']['id']155 direction = 'ingress'156 protocol = 'icmp'157 icmp_type_codes = [(3, 2), (3, 0), (8, 0), (0, 0), (11, None)]158 for icmp_type, icmp_code in icmp_type_codes:159 self._create_verify_security_group_rule(sg_id, direction,160 self.ethertype, protocol,...
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!!