Skip to content

Commit ea7025c

Browse files
author
Liam Young
committed
Allow 401s when checking endpoints
Some endpoints (heat) return 401s if you try and access them without authenticating. Given the ep has been able to verify whether you are authenticated a 401 is ok for a rudementary health check
1 parent c16f070 commit ea7025c

File tree

1 file changed

+6
-1
lines changed
  • zaza/openstack/charm_tests/keystone

1 file changed

+6
-1
lines changed

zaza/openstack/charm_tests/keystone/setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,9 @@ def wait_for_all_endpoints(interface='public'):
208208
interface=interface):
209209
wait_for_url(
210210
ep.url,
211-
[requests.codes.ok, requests.codes.multiple_choices])
211+
# Heat cloudformation and orchestration return 400 and 401
212+
[
213+
requests.codes.ok,
214+
requests.codes.multiple_choices,
215+
requests.codes.bad_request,
216+
requests.codes.unauthorized])

0 commit comments

Comments
 (0)