[Fullstack] Remove SecurityGroupRulesTest.test_normalized_cidr_in_rule test
This fullstack test is now replaced by the API test in neutron_tempest_plugin (see depends on patch). Depends-On: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/902753 Change-Id: I2d01b6bf65ebb4dd5bf50e3aca2b3c69a2b70d23
This commit is contained in:
parent
fea0e7d0ae
commit
ef15700055
@ -662,27 +662,3 @@ class TestSecurityGroupsSameNetwork(BaseSecurityGroupsSameNetworkTest):
|
|||||||
vm1, vm2, net_helpers.NetcatTester.TCP, port + 1)
|
vm1, vm2, net_helpers.NetcatTester.TCP, port + 1)
|
||||||
self.verify_no_connectivity_between_vms(
|
self.verify_no_connectivity_between_vms(
|
||||||
vm2, vm1, net_helpers.NetcatTester.TCP, port + 1)
|
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'])
|
|
||||||
|
Loading…
Reference in New Issue
Block a user