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 5, 2023
1 parent c16f070 commit 38ca4e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 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,7 @@ def wait_for_all_endpoints(interface='public'):
interface=interface):
wait_for_url(
ep.url,
[requests.codes.ok, requests.codes.multiple_choices])
[
requests.codes.ok,
requests.codes.multiple_choices,
requests.codes.unauthorized])

0 comments on commit 38ca4e0

Please sign in to comment.