Skip to content

Commit 6543450

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[Fullstack] Remove SecurityGroupRulesTest.test_normalized_cidr_in_rule test" into stable/zed
2 parents ae04378 + 5250b62 commit 6543450

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
@@ -659,27 +659,3 @@ def _test_overlapping_mac_addresses(self):
659659
vm1, vm2, net_helpers.NetcatTester.TCP, port + 1)
660660
self.verify_no_connectivity_between_vms(
661661
vm2, vm1, net_helpers.NetcatTester.TCP, port + 1)
662-
663-
664-
class SecurityGroupRulesTest(base.BaseFullStackTestCase):
665-
666-
def setUp(self):
667-
host_descriptions = [environment.HostDescription()]
668-
env = environment.Environment(environment.EnvironmentDescription(),
669-
host_descriptions)
670-
super(SecurityGroupRulesTest, self).setUp(env)
671-
672-
def test_normalized_cidr_in_rule(self):
673-
project_id = uuidutils.generate_uuid()
674-
sg = self.safe_client.create_security_group(project_id)
675-
676-
rule = self.safe_client.create_security_group_rule(
677-
project_id, sg['id'], direction='ingress',
678-
remote_ip_prefix='10.0.0.34/24')
679-
self.assertEqual('10.0.0.0/24', rule['normalized_cidr'])
680-
self.assertEqual('10.0.0.34/24', rule['remote_ip_prefix'])
681-
682-
rule = self.safe_client.create_security_group_rule(
683-
project_id, sg['id'], direction='ingress')
684-
self.assertIsNone(rule['normalized_cidr'])
685-
self.assertIsNone(rule['remote_ip_prefix'])

0 commit comments

Comments
 (0)