Remove usage of credentials_factory.AdminManager
Tempest is making credentials_factory as stable interface and will be removing the AdminManager class which is wrapper of creating client manager wirth admin cred. admin manager can be instantiated by providing the admin cred to clients.Manager. This commit removes the usage of AdminManager. Change-Id: I321a7985a60ceb0c6230d04e42c2b4c0a804027f
This commit is contained in:
parent
c87ec394c1
commit
757dc692df
|
@ -30,6 +30,7 @@ from oslo_log import log as logging
|
|||
import six
|
||||
from six.moves.urllib import error
|
||||
from six.moves.urllib import request as urllib2
|
||||
from tempest import clients
|
||||
from tempest.common import credentials_factory
|
||||
from tempest.common import waiters
|
||||
from tempest import config
|
||||
|
@ -90,7 +91,8 @@ class BaseTestCase(manager.NetworkScenarioTest):
|
|||
self._set_net_and_subnet()
|
||||
|
||||
# admin network client needed for assigning octavia port to flip
|
||||
os_admin = credentials_factory.AdminManager()
|
||||
os_admin = clients.Manager(
|
||||
credentials_factory.get_configured_admin_credentials())
|
||||
os_admin.auth_provider.fill_credentials()
|
||||
self.floating_ips_client_admin = os_admin.floating_ips_client
|
||||
self.ports_client_admin = os_admin.ports_client
|
||||
|
|
|
@ -30,6 +30,7 @@ from oslo_log import log as logging
|
|||
import six
|
||||
from six.moves.urllib import error
|
||||
from six.moves.urllib import request as urllib2
|
||||
from tempest import clients
|
||||
from tempest.common import credentials_factory
|
||||
from tempest.common import waiters
|
||||
from tempest import config
|
||||
|
@ -91,7 +92,8 @@ class BaseTestCase(manager.NetworkScenarioTest):
|
|||
self.quotas_client = quotas_client.QuotasClient(*self.client_args)
|
||||
|
||||
# admin network client needed for assigning octavia port to flip
|
||||
os_admin = credentials_factory.AdminManager()
|
||||
os_admin = clients.Manager(
|
||||
credentials_factory.get_configured_admin_credentials())
|
||||
os_admin.auth_provider.fill_credentials()
|
||||
self.floating_ips_client_admin = os_admin.floating_ips_client
|
||||
self.ports_client_admin = os_admin.ports_client
|
||||
|
|
Loading…
Reference in New Issue