Sync contrib/tempest to newer state
An update is needed to support multiple identity versions. Change-Id: I5c1417642c2bfe476647dcf5549dfed0bc2905c0
This commit is contained in:
parent
df03bbbd6d
commit
0d44022800
@ -47,7 +47,7 @@ fi
|
||||
|
||||
# Go to Tempest dir and checkout stable commit to avoid possible
|
||||
# incompatibilities for plugin stored in Manila repo.
|
||||
TEMPEST_COMMIT="d8f38aba" # 21 Mar, 2015
|
||||
TEMPEST_COMMIT="628c965d" # 23 Apr, 2015
|
||||
cd $BASE/new/tempest
|
||||
git checkout $TEMPEST_COMMIT
|
||||
|
||||
|
@ -116,7 +116,7 @@ class BaseSharesTest(test.BaseTestCase):
|
||||
name = name[0:32]
|
||||
|
||||
# Choose type of isolated creds
|
||||
ic = isolated_creds.IsolatedCreds(name)
|
||||
ic = isolated_creds.IsolatedCreds(name=name)
|
||||
if "admin" in type_of_creds:
|
||||
creds = ic.get_admin_creds()
|
||||
elif "alt" in type_of_creds:
|
||||
@ -253,7 +253,7 @@ class BaseSharesTest(test.BaseTestCase):
|
||||
|
||||
# Create suitable network
|
||||
if (net_id is None or subnet_id is None):
|
||||
ic = isolated_creds.IsolatedCreds(service_net_name)
|
||||
ic = isolated_creds.IsolatedCreds(name=service_net_name)
|
||||
identity_client = cls._get_identity_admin_client()
|
||||
tenant = identity_client.\
|
||||
get_tenant_by_name(sc.auth_params["tenant"])
|
||||
@ -273,11 +273,10 @@ class BaseSharesTest(test.BaseTestCase):
|
||||
else:
|
||||
sn_name = "autogenerated_by_tempest_for_isolated_creds"
|
||||
# Use precreated network and subnet from isolated creds
|
||||
net_resources = (
|
||||
isolated_creds_client.isolated_net_resources[
|
||||
isolated_creds_client.type_of_creds])
|
||||
net_id = net_resources[0]["id"]
|
||||
subnet_id = net_resources[1]["id"]
|
||||
net_id = isolated_creds_client.get_credentials(
|
||||
isolated_creds_client.type_of_creds).network['id']
|
||||
subnet_id = isolated_creds_client.get_credentials(
|
||||
isolated_creds_client.type_of_creds).subnet['id']
|
||||
|
||||
# Create suitable share-network
|
||||
if share_network_id is None:
|
||||
|
Loading…
Reference in New Issue
Block a user