Skip to content

Commit

Permalink
Allow 401s when checking endpoints
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Liam Young committed Oct 6, 2023
1 parent c16f070 commit ea7025c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion zaza/openstack/charm_tests/keystone/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,9 @@ def wait_for_all_endpoints(interface='public'):
interface=interface):
wait_for_url(
ep.url,
[requests.codes.ok, requests.codes.multiple_choices])
# Heat cloudformation and orchestration return 400 and 401
[
requests.codes.ok,
requests.codes.multiple_choices,
requests.codes.bad_request,
requests.codes.unauthorized])

0 comments on commit ea7025c

Please sign in to comment.