Replace os-client-config
It was deprecated[1] after the code was merged into openstacksdk[2]. [1] https://review.opendev.org/c/openstack/os-client-config/+/549307 [2] https://review.opendev.org/c/openstack/openstacksdk/+/518128 Change-Id: I0cc581153c73a9dacc8a160fd63f9cb95660ef3a Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -22,7 +22,7 @@ from observabilityclient import client
|
||||
|
||||
from keystoneauth1 import loading
|
||||
from keystoneauth1 import session
|
||||
import os_client_config
|
||||
from openstack import config as occ
|
||||
from tempest.lib.cli import output_parser
|
||||
from tempest.lib import exceptions
|
||||
import testtools
|
||||
@@ -33,8 +33,8 @@ LOG = logging.getLogger(__name__)
|
||||
|
||||
class PythonAPITestCase(testtools.TestCase):
|
||||
def _getKeystoneSession(self):
|
||||
conf = os_client_config.OpenStackConfig()
|
||||
creds = conf.get_one_cloud(cloud=ADMIN_CLOUD).get_auth_args()
|
||||
conf = occ.OpenStackConfig()
|
||||
creds = conf.get_one(cloud=ADMIN_CLOUD).get_auth_args()
|
||||
ks_creds = dict(
|
||||
auth_url=creds["auth_url"],
|
||||
username=creds["username"],
|
||||
|
@@ -1,5 +1,5 @@
|
||||
python-openstackclient>=6.3.0 # Apache-2.0
|
||||
os-client-config>=1.28.0 # Apache-2.0
|
||||
openstacksdk>=0.10.0 # Apache-2.0
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
tempest>=10 # Apache-2.0
|
||||
testtools>=1.4.0 # MIT
|
||||
|
Reference in New Issue
Block a user