Skip to content

Commit

Permalink
adapts smoke tests to use basic auth in dev and stage
Browse files Browse the repository at this point in the history
  • Loading branch information
awdem committed Dec 10, 2024
1 parent 6e4864d commit f2c9055
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .circleci/tests/test_against_fqdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@


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,
auth=("dc", "dc"),
)
else:
req = httpx.get(url, timeout=20)

req.raise_for_status()
return req

Expand Down

0 comments on commit f2c9055

Please sign in to comment.