Update is_default field only when specified in the request

Closes-bug: 1670524

Change-Id: Ie46fe7126693bcf6732332a479f4b2609c402c5d
This commit is contained in:
Armando Migliaccio
2017-03-06 16:47:25 -08:00
parent 0e0135c312
commit ea27e1aa1e
2 changed files with 10 additions and 6 deletions

View File

@@ -54,6 +54,9 @@ class TestAutoAllocatedTopology(base.BaseAdminNetworkTest):
# Ensure the public external network is the default external network
public_net_id = cfg.CONF.network.public_network_id
cls.admin_client.update_network(public_net_id, is_default=True)
# Ensure that is_default does not accidentally flip back to False
# because of network_update requests that do not contain is_default.
cls.admin_client.update_network(public_net_id, description="gman")
def _count_topology_resources(self):
'''Count the resources whose names begin with 'auto_allocated_'.'''