Skip to content

Commit

Permalink
TEMP
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Jan 15, 2025
1 parent 5838b80 commit 8360f05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ jobs:
- name: Update /etc/hosts
run: |
podman ps
podman exec server bash -c 'echo "$(hostname -I) $(hostname)"' | sudo tee -a /etc/hosts
host_entry="$(podman exec server bash -c 'echo "$(hostname -I) $(hostname)"')
# if host_entry is empty, cluster is down.
test -n "${host_entry}"
echo "${host_entry}" | sudo tee -a /etc/hosts
- name: Install test dependencies
run: |
Expand All @@ -40,3 +43,5 @@ jobs:
with:
cluster_configuration: tests/environments/server_only.yaml
shutdown: true

- name: Check if cluster is down
2 changes: 1 addition & 1 deletion tests/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
def test_connection_to_webui():
resp = requests.get("https://server.ipa.test", verify=False)
assert resp.url == "https://server.ipa.test/ipa/ui/"
assert resp.code == 200
assert resp.status_code == 200
assert resp.reason == "OK"
assert "<title>Identity Management</title>" in resp.text

0 comments on commit 8360f05

Please sign in to comment.