summaryrefslogtreecommitdiff
path: root/tempest/api
diff options
context:
space:
mode:
authorMatthew Treinish <mtreinish@kortar.org>2015-04-10 11:59:11 -0400
committerMatthew Treinish <mtreinish@kortar.org>2015-04-14 11:05:42 -0400
commitf83f35c9e25e2bdbe9cee06972bde1a6aedc6dc7 (patch)
treed92c48825c079fef104177dcc01e2c91f6aa13ad /tempest/api
parenta47c3edc2d22e693a7c3d214658021c869d3bfae (diff)
downloadtempest-f83f35c9e25e2bdbe9cee06972bde1a6aedc6dc7.tar.gz
Add network support to the accounts providers
This commits adds support for specifying the network to use with a user/tenant into the accounts.yaml file. You can only specify a single network which will be the network used for all that requires a pre-existing network. This also means regardless of which cred provider is configured the fixed_network can assume a TestResource object will be returned from a get_creds call. As part of this change a common method to return the full network dict from a just a network name is abstracted out into tempest.common.fixed_network module since this same method is needed to have the accounts file provide a network by name. Partially-implements: bp test-accounts-continued Change-Id: I6f5ac1239d18f2935847b385a08de608f40fdda5
Diffstat (limited to 'tempest/api')
-rw-r--r--tempest/api/compute/servers/test_list_server_filters.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tempest/api/compute/servers/test_list_server_filters.py b/tempest/api/compute/servers/test_list_server_filters.py
index f33204d75..eccd6006e 100644
--- a/tempest/api/compute/servers/test_list_server_filters.py
+++ b/tempest/api/compute/servers/test_list_server_filters.py
@@ -69,7 +69,10 @@ class ListServerFiltersTestJSON(base.BaseV2ComputeTest):
network = cls.get_tenant_network()
if network:
- cls.fixed_network_name = network['name']
+ if network.get('name'):
+ cls.fixed_network_name = network['name']
+ else:
+ cls.fixed_network_name = None
else:
cls.fixed_network_name = None
network_kwargs = fixed_network.set_networks_kwarg(network)