Skip to content

Commit 87b4a92

Browse files
committed
Fix lower-constraints tox env to use proper constraints
- Bumps some of the lower constraints - Fixes common/endpoint_utils.py to fallback to use auth_uri. Change-Id: Ief0868d5feef3ee6b0689c6be27649ff009fbbcc
1 parent 46f595b commit 87b4a92

File tree

7 files changed

+26
-14
lines changed

7 files changed

+26
-14
lines changed

heat/common/endpoint_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ def get_auth_uri(v3=True):
3434
else:
3535
# Import auth_token to have keystone_authtoken settings setup.
3636
importutils.import_module('keystonemiddleware.auth_token')
37-
auth_uri = cfg.CONF.keystone_authtoken.www_authenticate_uri
37+
try:
38+
auth_uri = cfg.CONF.keystone_authtoken.www_authenticate_uri
39+
except cfg.NoSuchOptError:
40+
auth_uri = cfg.CONF.keystone_authtoken.auth_uri
3841
return auth_uri.replace('v2.0', 'v3') if auth_uri and v3 else auth_uri

heat/tests/api/aws/test_api_ec2token.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,12 @@ def test_call_ok_auth_uri_ks_authtoken(self):
571571
# Import auth_token to have keystone_authtoken settings setup.
572572
importutils.import_module('keystonemiddleware.auth_token')
573573
dummy_url = 'http://123:5000/v2.0'
574-
cfg.CONF.set_override('www_authenticate_uri', dummy_url,
575-
group='keystone_authtoken')
574+
try:
575+
cfg.CONF.set_override('www_authenticate_uri', dummy_url,
576+
group='keystone_authtoken')
577+
except cfg.NoSuchOptError:
578+
cfg.CONF.set_override('auth_uri', dummy_url,
579+
group='keystone_authtoken')
576580
ec2 = ec2token.EC2Token(app='woot', conf={})
577581
params = {'AWSAccessKeyId': 'foo', 'Signature': 'xyz'}
578582
req_env = {'SERVER_NAME': 'heat',

heat/tests/test_common_context.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,12 @@ def test_keystone_v3_endpoint_in_keystone_authtoken_config(self):
218218
[clients_keystone] section.
219219
"""
220220
importutils.import_module('keystonemiddleware.auth_token')
221-
cfg.CONF.set_override('www_authenticate_uri', 'http://abc/v2.0',
222-
group='keystone_authtoken')
221+
try:
222+
cfg.CONF.set_override('www_authenticate_uri', 'http://abc/v2.0',
223+
group='keystone_authtoken')
224+
except cfg.NoSuchOptError:
225+
cfg.CONF.set_override('auth_uri', 'http://abc/v2.0',
226+
group='keystone_authtoken')
223227
policy_check = 'heat.common.policy.Enforcer.check_is_admin'
224228
with mock.patch(policy_check) as pc:
225229
pc.return_value = False

lower-constraints.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pika==0.10.0
9090
ply==3.11
9191
prettytable==0.7.2
9292
psutil==5.4.3
93-
psycopg2==2.6.2
93+
psycopg2==2.7
9494
pyasn1==0.4.2
9595
pycadf==2.7.0
9696
pycparser==2.18
@@ -102,7 +102,7 @@ pyOpenSSL==17.5.0
102102
pyparsing==2.2.0
103103
pyperclip==1.6.0
104104
python-barbicanclient==4.5.2
105-
python-blazarclient===1.0.0
105+
python-blazarclient===1.0.1
106106
python-ceilometerclient==2.5.0
107107
python-cinderclient==3.3.0
108108
python-dateutil==2.7.0
@@ -111,7 +111,7 @@ python-editor==1.0.3
111111
python-glanceclient==2.8.0
112112
python-heatclient==1.10.0
113113
python-keystoneclient==3.8.0
114-
python-magnumclient==2.1.0
114+
python-magnumclient==2.3.0
115115
python-manilaclient==1.16.0
116116
python-mimeparse==1.6.0
117117
python-mistralclient==3.1.0
@@ -124,7 +124,7 @@ python-saharaclient==1.4.0
124124
python-subunit==1.2.0
125125
python-swiftclient==3.2.0
126126
python-troveclient==2.2.0
127-
python-zaqarclient==1.0.0
127+
python-zaqarclient==1.3.0
128128
python-zunclient==2.0.0
129129
pytz==2013.6
130130
PyYAML==3.12
@@ -153,7 +153,7 @@ unittest2==1.1.0
153153
urllib3==1.22
154154
vine==1.1.4
155155
voluptuous==0.11.1
156-
warlock==1.3.0
156+
warlock==1.2.0
157157
WebOb==1.7.1
158158
websocket-client==0.47.0
159159
wrapt==1.10.11

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ oslo.versionedobjects>=1.31.2 # Apache-2.0
3333
PasteDeploy>=1.5.0 # MIT
3434
aodhclient>=0.9.0 # Apache-2.0
3535
python-barbicanclient>=4.5.2 # Apache-2.0
36-
python-blazarclient>=1.0.0 # Apache-2.0
36+
python-blazarclient>=1.0.1 # Apache-2.0
3737
python-cinderclient>=3.3.0 # Apache-2.0
3838
python-designateclient>=2.7.0 # Apache-2.0
3939
python-glanceclient>=2.8.0 # Apache-2.0
4040
python-heatclient>=1.10.0 # Apache-2.0
4141
python-keystoneclient>=3.8.0 # Apache-2.0
42-
python-magnumclient>=2.1.0 # Apache-2.0
42+
python-magnumclient>=2.3.0 # Apache-2.0
4343
python-manilaclient>=1.16.0 # Apache-2.0
4444
python-mistralclient!=3.2.0,>=3.1.0 # Apache-2.0
4545
python-monascaclient>=1.12.0 # Apache-2.0
@@ -50,7 +50,7 @@ python-openstackclient>=3.12.0 # Apache-2.0
5050
python-saharaclient>=1.4.0 # Apache-2.0
5151
python-swiftclient>=3.2.0 # Apache-2.0
5252
python-troveclient>=2.2.0 # Apache-2.0
53-
python-zaqarclient>=1.0.0 # Apache-2.0
53+
python-zaqarclient>=1.3.0 # Apache-2.0
5454
python-zunclient>=2.0.0 # Apache-2.0
5555
pytz>=2013.6 # MIT
5656
PyYAML>=3.12 # MIT

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ kombu!=4.0.2,>=4.0.0 # BSD
1111
mock>=2.0.0 # BSD
1212
PyMySQL>=0.7.6 # MIT License
1313
oslotest>=3.2.0 # Apache-2.0
14-
psycopg2>=2.6.2 # LGPL/ZPL
14+
psycopg2>=2.7 # LGPL/ZPL
1515
stestr>=2.0.0 # Apache-2.0
1616
testscenarios>=0.4 # Apache-2.0/BSD
1717
testtools>=2.2.0 # MIT

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
135135

136136
[testenv:lower-constraints]
137137
basepython = python3
138+
install_command = pip install {opts} {packages}
138139
deps =
139140
-c{toxinidir}/lower-constraints.txt
140141
-r{toxinidir}/test-requirements.txt

0 commit comments

Comments
 (0)