@@ -659,27 +659,3 @@ def _test_overlapping_mac_addresses(self):
659
659
vm1 , vm2 , net_helpers .NetcatTester .TCP , port + 1 )
660
660
self .verify_no_connectivity_between_vms (
661
661
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