Skip to content

Commit

Permalink
fixes post-deploy CI tests to work with basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
awdem committed Oct 9, 2024
1 parent 4c87a89 commit 0cb7438
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .circleci/tests/test_against_fqdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@


def make_request(url):
req = httpx.get(url, timeout=20)
dc_env = os.environ.get("DC_ENVIRONMENT")

if dc_env == "development" or dc_env == "staging":
req = httpx.get(
url, timeout=20, headers={"Authorization": "Basic ZGM6ZGM="}
)
else:
req = httpx.get(url, timeout=20)

req.raise_for_status()
return req

Expand Down

0 comments on commit 0cb7438

Please sign in to comment.