Skip to content

Commit 3e6874d

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Remove os-client-config references"
2 parents 7f08bf7 + 7696593 commit 3e6874d

5 files changed

Lines changed: 5 additions & 24 deletions

File tree

.zuul.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
- openstack/cliff
1010
- openstack/keystoneauth
1111
- openstack/openstacksdk
12-
- openstack/os-client-config
1312
- openstack/osc-lib
1413
- openstack/python-openstackclient
1514
vars:
@@ -30,7 +29,6 @@
3029
- openstack/cliff
3130
- openstack/keystoneauth
3231
- openstack/openstacksdk
33-
- openstack/os-client-config
3432
- openstack/osc-lib
3533
- openstack/python-openstackclient
3634
vars:
@@ -127,12 +125,11 @@
127125
- openstack/cliff
128126
- openstack/keystoneauth
129127
- openstack/openstacksdk
130-
- openstack/os-client-config
131128
- openstack/osc-lib
132129
- openstack/python-openstackclient
133130
vars:
134131
devstack_localrc:
135-
LIBS_FROM_GIT: python-openstackclient,openstacksdk,osc-lib,os-client-config,cliff
132+
LIBS_FROM_GIT: python-openstackclient,openstacksdk,osc-lib,cliff
136133
# This is insufficient, but leaving it here as a reminder of what may
137134
# someday be all we need to make this work
138135
# disable_python3_package swift

lower-constraints.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ munch==2.1.0
5151
netaddr==0.7.18
5252
netifaces==0.10.4
5353
openstacksdk==0.44.0
54-
os-client-config==1.28.0
5554
os-service-types==1.7.0
5655
os-testr==1.0.0
5756
osc-lib==2.0.0

openstackclient/tests/unit/integ/cli/test_shell.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@
2020
from openstackclient.tests.unit.integ import base as test_base
2121
from openstackclient.tests.unit import test_shell
2222

23-
# NOTE(dtroyer): Attempt the import to detect if the SDK installed is new
24-
# enough to contain the os_client_config code. If so, use
25-
# that path for mocks.
26-
CONFIG_MOCK_BASE = "openstack.config.loader"
27-
try:
28-
from openstack.config import defaults # noqa
29-
except ImportError:
30-
# Fall back to os-client-config
31-
CONFIG_MOCK_BASE = "os_client_config.config"
32-
3323

3424
class TestIntegShellCliNoAuth(test_base.TestInteg):
3525

@@ -455,8 +445,8 @@ def get_temp_file_path(self, filename):
455445
temp_dir = self.useFixture(fixtures.TempDir())
456446
return temp_dir.join(filename)
457447

458-
@mock.patch(CONFIG_MOCK_BASE + ".OpenStackConfig._load_vendor_file")
459-
@mock.patch(CONFIG_MOCK_BASE + ".OpenStackConfig._load_config_file")
448+
@mock.patch("openstack.config.loader.OpenStackConfig._load_vendor_file")
449+
@mock.patch("openstack.config.loader.OpenStackConfig._load_config_file")
460450
def test_shell_args_precedence_1(self, config_mock, vendor_mock):
461451
"""Precedence run 1
462452
@@ -473,7 +463,6 @@ def vendor_mock_return():
473463
return ('file.yaml', copy.deepcopy(test_shell.PUBLIC_1))
474464
vendor_mock.side_effect = vendor_mock_return
475465

476-
print("CONFIG_MOCK_BASE=%s" % CONFIG_MOCK_BASE)
477466
_shell = shell.OpenStackShell()
478467
_shell.run(
479468
"--os-password qaz extension list".split(),
@@ -527,8 +516,8 @@ def vendor_mock_return():
527516
# +env, +cli, +occ
528517
# see test_shell_args_precedence_2()
529518

530-
@mock.patch(CONFIG_MOCK_BASE + ".OpenStackConfig._load_vendor_file")
531-
@mock.patch(CONFIG_MOCK_BASE + ".OpenStackConfig._load_config_file")
519+
@mock.patch("openstack.config.loader.OpenStackConfig._load_vendor_file")
520+
@mock.patch("openstack.config.loader.OpenStackConfig._load_config_file")
532521
def test_shell_args_precedence_2(self, config_mock, vendor_mock):
533522
"""Precedence run 2
534523
@@ -545,7 +534,6 @@ def vendor_mock_return():
545534
return ('file.yaml', copy.deepcopy(test_shell.PUBLIC_1))
546535
vendor_mock.side_effect = vendor_mock_return
547536

548-
print("CONFIG_MOCK_BASE=%s" % CONFIG_MOCK_BASE)
549537
_shell = shell.OpenStackShell()
550538
_shell.run(
551539
"--os-username zarquon --os-password qaz "

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ oslotest>=3.2.0 # Apache-2.0
99
requests>=2.14.2 # Apache-2.0
1010
requests-mock>=1.2.0 # Apache-2.0
1111
stevedore>=1.20.0 # Apache-2.0
12-
os-client-config>=1.28.0 # Apache-2.0
1312
stestr>=1.0.0 # Apache-2.0
1413
testtools>=2.2.0 # MIT
1514
tempest>=17.1.0 # Apache-2.0

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ commands =
6464
python -m pip install -q -U -e "git+file://{toxinidir}/../cliff#egg=cliff"
6565
python -m pip install -q -U -e "git+file://{toxinidir}/../keystoneauth#egg=keystoneauth"
6666
python -m pip install -q -U -e "git+file://{toxinidir}/../osc-lib#egg=osc_lib"
67-
python -m pip install -q -U -e "git+file://{toxinidir}/../os-client-config#egg=os_client_config"
6867
pythom -m pip install -q -e "git+file://{toxinidir}/../openstacksdk#egg=openstacksdk"
6968
python -m pip freeze
7069
stestr run {posargs}
@@ -83,7 +82,6 @@ commands =
8382
python -m pip install -q -U -e "git+file://{toxinidir}/../cliff#egg=cliff"
8483
python -m pip install -q -U -e "git+file://{toxinidir}/../keystoneauth#egg=keystoneauth"
8584
python -m pip install -q -U -e "git+file://{toxinidir}/../osc-lib#egg=osc_lib"
86-
python -m pip install -q -U -e "git+file://{toxinidir}/../os-client-config#egg=os_client_config"
8785
python -m pip install -q -U -e "git+file://{toxinidir}/../openstacksdk#egg=openstacksdk"
8886
python -m pip freeze
8987
stestr run {posargs}

0 commit comments

Comments
 (0)