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