Update is_default field only when specified in the request
Closes-bug: 1670524
Change-Id: Ie46fe7126693bcf6732332a479f4b2609c402c5d
diff --git a/neutron/tests/tempest/api/test_auto_allocated_topology.py b/neutron/tests/tempest/api/test_auto_allocated_topology.py
index 7a6d5ac..0db7602 100644
--- a/neutron/tests/tempest/api/test_auto_allocated_topology.py
+++ b/neutron/tests/tempest/api/test_auto_allocated_topology.py
@@ -54,6 +54,9 @@
# 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_'.'''