@@ -60,6 +60,7 @@ class TestCreateNetworkIdentityV3(TestNetwork):
6060 'availability_zone_hints' ,
6161 'availability_zones' ,
6262 'description' ,
63+ 'dns_domain' ,
6364 'id' ,
6465 'ipv4_address_scope' ,
6566 'ipv6_address_scope' ,
@@ -84,6 +85,7 @@ class TestCreateNetworkIdentityV3(TestNetwork):
8485 utils .format_list (_network .availability_zone_hints ),
8586 utils .format_list (_network .availability_zones ),
8687 _network .description ,
88+ _network .dns_domain ,
8789 _network .id ,
8890 _network .ipv4_address_scope_id ,
8991 _network .ipv6_address_scope_id ,
@@ -162,6 +164,7 @@ def test_create_all_options(self):
162164 "--qos-policy" , self .qos_policy .id ,
163165 "--transparent-vlan" ,
164166 "--enable-port-security" ,
167+ "--dns-domain" , "example.org." ,
165168 self ._network .name ,
166169 ]
167170 verifylist = [
@@ -181,6 +184,7 @@ def test_create_all_options(self):
181184 ('transparent_vlan' , True ),
182185 ('enable_port_security' , True ),
183186 ('name' , self ._network .name ),
187+ ('dns_domain' , 'example.org.' ),
184188 ]
185189
186190 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
@@ -204,6 +208,7 @@ def test_create_all_options(self):
204208 'qos_policy_id' : self .qos_policy .id ,
205209 'vlan_transparent' : True ,
206210 'port_security_enabled' : True ,
211+ 'dns_domain' : 'example.org.' ,
207212 })
208213 self .assertEqual (self .columns , columns )
209214 self .assertEqual (self .data , data )
@@ -287,6 +292,7 @@ class TestCreateNetworkIdentityV2(TestNetwork):
287292 'availability_zone_hints' ,
288293 'availability_zones' ,
289294 'description' ,
295+ 'dns_domain' ,
290296 'id' ,
291297 'ipv4_address_scope' ,
292298 'ipv6_address_scope' ,
@@ -311,6 +317,7 @@ class TestCreateNetworkIdentityV2(TestNetwork):
311317 utils .format_list (_network .availability_zone_hints ),
312318 utils .format_list (_network .availability_zones ),
313319 _network .description ,
320+ _network .dns_domain ,
314321 _network .id ,
315322 _network .ipv4_address_scope_id ,
316323 _network .ipv6_address_scope_id ,
@@ -901,6 +908,7 @@ def test_set_this(self):
901908 '--name' , 'noob' ,
902909 '--share' ,
903910 '--description' , self ._network .description ,
911+ '--dns-domain' , 'example.org.' ,
904912 '--external' ,
905913 '--default' ,
906914 '--provider-network-type' , 'vlan' ,
@@ -922,6 +930,7 @@ def test_set_this(self):
922930 ('segmentation_id' , '400' ),
923931 ('enable_port_security' , True ),
924932 ('qos_policy' , self .qos_policy .name ),
933+ ('dns_domain' , 'example.org.' ),
925934 ]
926935
927936 parsed_args = self .check_parser (self .cmd , arglist , verifylist )
@@ -939,6 +948,7 @@ def test_set_this(self):
939948 'provider:segmentation_id' : '400' ,
940949 'port_security_enabled' : True ,
941950 'qos_policy_id' : self .qos_policy .id ,
951+ 'dns_domain' : 'example.org.' ,
942952 }
943953 self .network .update_network .assert_called_once_with (
944954 self ._network , ** attrs )
@@ -1026,6 +1036,7 @@ class TestShowNetwork(TestNetwork):
10261036 'availability_zone_hints' ,
10271037 'availability_zones' ,
10281038 'description' ,
1039+ 'dns_domain' ,
10291040 'id' ,
10301041 'ipv4_address_scope' ,
10311042 'ipv6_address_scope' ,
@@ -1050,6 +1061,7 @@ class TestShowNetwork(TestNetwork):
10501061 utils .format_list (_network .availability_zone_hints ),
10511062 utils .format_list (_network .availability_zones ),
10521063 _network .description ,
1064+ _network .dns_domain ,
10531065 _network .id ,
10541066 _network .ipv4_address_scope_id ,
10551067 _network .ipv6_address_scope_id ,
0 commit comments