Fix obsolete imports in functional tests

isolated_creds was renamed to dynamic_creds in murano functional
tests. Also, update class names.

Change-Id: I3596a80925dde388dcb69a37ee4fd0343849b352
Closes-Bug: #1504508
This commit is contained in:
Nikolay Starodubtsev 2015-10-09 14:44:47 +03:00 committed by Nikolay Starodubtsev
parent 3907c4c387
commit 0e1f385769
1 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ import uuid
import requests
from tempest import clients
from tempest.common import cred_provider
from tempest.common import isolated_creds
from tempest.common import dynamic_creds
from tempest import config
from tempest import test
from tempest_lib.common import rest_client
@ -290,12 +290,12 @@ class NegativeTestCase(TestCase):
# If no credentials are provided, the Manager will use those
# in CONF.identity and generate an auth_provider from them
cls.isolated_creds = isolated_creds.IsolatedCreds('v2',
name=cls.__name__)
creds = cls.isolated_creds.get_alt_creds()
cls.dynamic_creds = dynamic_creds.DynamicCredentialProvider(
'v2', name=cls.__name__)
creds = cls.dynamic_creds.get_alt_creds()
mgr = clients.Manager(credentials=creds)
cls.alt_client = MuranoClient(mgr.auth_provider)
@classmethod
def purge_creds(cls):
cls.isolated_creds.clear_isolated_creds()
cls.dynamic_creds.clear_creds()