diff --git a/neutron/tests/fullstack/test_securitygroup.py b/neutron/tests/fullstack/test_securitygroup.py index e1d9953eda1..cd78dd97212 100644 --- a/neutron/tests/fullstack/test_securitygroup.py +++ b/neutron/tests/fullstack/test_securitygroup.py @@ -662,27 +662,3 @@ class TestSecurityGroupsSameNetwork(BaseSecurityGroupsSameNetworkTest): vm1, vm2, net_helpers.NetcatTester.TCP, port + 1) self.verify_no_connectivity_between_vms( vm2, vm1, net_helpers.NetcatTester.TCP, port + 1) - - -class SecurityGroupRulesTest(base.BaseFullStackTestCase): - - def setUp(self): - host_descriptions = [environment.HostDescription()] - env = environment.Environment(environment.EnvironmentDescription(), - host_descriptions) - super(SecurityGroupRulesTest, self).setUp(env) - - def test_normalized_cidr_in_rule(self): - project_id = uuidutils.generate_uuid() - sg = self.safe_client.create_security_group(project_id) - - rule = self.safe_client.create_security_group_rule( - project_id, sg['id'], direction='ingress', - remote_ip_prefix='10.0.0.34/24') - self.assertEqual('10.0.0.0/24', rule['normalized_cidr']) - self.assertEqual('10.0.0.34/24', rule['remote_ip_prefix']) - - rule = self.safe_client.create_security_group_rule( - project_id, sg['id'], direction='ingress') - self.assertIsNone(rule['normalized_cidr']) - self.assertIsNone(rule['remote_ip_prefix'])