@@ -57,6 +57,7 @@ class TestCreateNetworkIdentityV3(TestNetwork):
5757 'admin_state_up' ,
5858 'availability_zone_hints' ,
5959 'availability_zones' ,
60+ 'description' ,
6061 'id' ,
6162 'is_default' ,
6263 'name' ,
@@ -73,6 +74,7 @@ class TestCreateNetworkIdentityV3(TestNetwork):
7374 network ._format_admin_state (_network .admin_state_up ),
7475 utils .format_list (_network .availability_zone_hints ),
7576 utils .format_list (_network .availability_zones ),
77+ _network .description ,
7678 _network .id ,
7779 _network .is_default ,
7880 _network .name ,
@@ -129,6 +131,7 @@ def test_create_all_options(self):
129131 arglist = [
130132 "--disable" ,
131133 "--share" ,
134+ "--description" , self ._network .description ,
132135 "--project" , self .project .name ,
133136 "--project-domain" , self .domain .name ,
134137 "--availability-zone-hint" , "nova" ,
@@ -143,6 +146,7 @@ def test_create_all_options(self):
143146 verifylist = [
144147 ('disable' , True ),
145148 ('share' , True ),
149+ ('description' , self ._network .description ),
146150 ('project' , self .project .name ),
147151 ('project_domain' , self .domain .name ),
148152 ('availability_zone_hints' , ["nova" ]),
@@ -164,6 +168,7 @@ def test_create_all_options(self):
164168 'availability_zone_hints' : ["nova" ],
165169 'name' : self ._network .name ,
166170 'shared' : True ,
171+ 'description' : self ._network .description ,
167172 'tenant_id' : self .project .id ,
168173 'is_default' : True ,
169174 'router:external' : True ,
@@ -216,6 +221,7 @@ class TestCreateNetworkIdentityV2(TestNetwork):
216221 'admin_state_up' ,
217222 'availability_zone_hints' ,
218223 'availability_zones' ,
224+ 'description' ,
219225 'id' ,
220226 'is_default' ,
221227 'name' ,
@@ -232,6 +238,7 @@ class TestCreateNetworkIdentityV2(TestNetwork):
232238 network ._format_admin_state (_network .admin_state_up ),
233239 utils .format_list (_network .availability_zone_hints ),
234240 utils .format_list (_network .availability_zones ),
241+ _network .description ,
235242 _network .id ,
236243 _network .is_default ,
237244 _network .name ,
@@ -532,6 +539,7 @@ def test_set_this(self):
532539 '--enable' ,
533540 '--name' , 'noob' ,
534541 '--share' ,
542+ '--description' , self ._network .description ,
535543 '--external' ,
536544 '--default' ,
537545 '--provider-network-type' , 'vlan' ,
@@ -543,6 +551,7 @@ def test_set_this(self):
543551 verifylist = [
544552 ('network' , self ._network .name ),
545553 ('enable' , True ),
554+ ('description' , self ._network .description ),
546555 ('name' , 'noob' ),
547556 ('share' , True ),
548557 ('external' , True ),
@@ -560,6 +569,7 @@ def test_set_this(self):
560569 attrs = {
561570 'name' : 'noob' ,
562571 'admin_state_up' : True ,
572+ 'description' : self ._network .description ,
563573 'shared' : True ,
564574 'router:external' : True ,
565575 'is_default' : True ,
@@ -624,6 +634,7 @@ class TestShowNetwork(TestNetwork):
624634 'admin_state_up' ,
625635 'availability_zone_hints' ,
626636 'availability_zones' ,
637+ 'description' ,
627638 'id' ,
628639 'is_default' ,
629640 'name' ,
@@ -640,6 +651,7 @@ class TestShowNetwork(TestNetwork):
640651 network ._format_admin_state (_network .admin_state_up ),
641652 utils .format_list (_network .availability_zone_hints ),
642653 utils .format_list (_network .availability_zones ),
654+ _network .description ,
643655 _network .id ,
644656 _network .is_default ,
645657 _network .name ,
0 commit comments