Skip to content

Commit 2654122

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[Fullstack] Remove SecurityGroupRulesTest.test_normalized_cidr_in_rule test" into stable/2023.1
2 parents 1801899 + e5c743b commit 2654122

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

neutron/tests/fullstack/test_securitygroup.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -662,27 +662,3 @@ def _test_overlapping_mac_addresses(self):
662662
vm1, vm2, net_helpers.NetcatTester.TCP, port + 1)
663663
self.verify_no_connectivity_between_vms(
664664
vm2, vm1, net_helpers.NetcatTester.TCP, port + 1)
665-
666-
667-
class SecurityGroupRulesTest(base.BaseFullStackTestCase):
668-
669-
def setUp(self):
670-
host_descriptions = [environment.HostDescription()]
671-
env = environment.Environment(environment.EnvironmentDescription(),
672-
host_descriptions)
673-
super(SecurityGroupRulesTest, self).setUp(env)
674-
675-
def test_normalized_cidr_in_rule(self):
676-
project_id = uuidutils.generate_uuid()
677-
sg = self.safe_client.create_security_group(project_id)
678-
679-
rule = self.safe_client.create_security_group_rule(
680-
project_id, sg['id'], direction='ingress',
681-
remote_ip_prefix='10.0.0.34/24')
682-
self.assertEqual('10.0.0.0/24', rule['normalized_cidr'])
683-
self.assertEqual('10.0.0.34/24', rule['remote_ip_prefix'])
684-
685-
rule = self.safe_client.create_security_group_rule(
686-
project_id, sg['id'], direction='ingress')
687-
self.assertIsNone(rule['normalized_cidr'])
688-
self.assertIsNone(rule['remote_ip_prefix'])

0 commit comments

Comments
 (0)