Skip to content

Commit

Permalink
Update IPA tests to check access logs
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Oct 2, 2024
1 parent f21fea7 commit f0e1d65
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ipa-acme-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ jobs:
docker exec ipa bash -c "pki acme-info | sed -n 's/\s*Status:\s\+\(\S\+\).*/\1/p' > ${SHARED}/actual"
diff expected actual
- name: Check HTTPD access logs
if: always()
run: |
docker exec ipa cat /var/log/httpd/access_log
- name: Check DS server systemd journal
if: always()
run: |
Expand All @@ -170,6 +175,11 @@ jobs:
run: |
docker exec ipa journalctl -x --no-pager -u [email protected]
- name: Check PKI server access log
if: always()
run: |
docker exec ipa find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
- name: Check CA debug log
if: always()
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ipa-basic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ jobs:
docker exec ipa ipa-run-tests -x --verbose \
test_xmlrpc/test_ca_plugin.py
- name: Check HTTPD access logs
if: always()
run: |
docker exec ipa cat /var/log/httpd/access_log
- name: Check DS server systemd journal
if: always()
run: |
Expand Down Expand Up @@ -256,6 +261,11 @@ jobs:
run: |
docker exec ipa journalctl -x --no-pager -u [email protected]
- name: Check PKI server access log
if: always()
run: |
docker exec ipa find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
- name: Check CA debug log
if: always()
run: |
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/ipa-clone-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,11 @@ jobs:
grep "Number of entries returned" output-primary > actual
diff expected actual
- name: Check HTTPD access logs in primary container
if: always()
run: |
docker exec primary cat /var/log/httpd/access_log
- name: Check DS server systemd journal in primary container
if: always()
run: |
Expand All @@ -599,6 +604,11 @@ jobs:
run: |
docker exec primary journalctl -x --no-pager -u [email protected]
- name: Check PKI server access log in primary container
if: always()
run: |
docker exec primary find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
- name: Check CA debug log in primary container
if: always()
run: |
Expand Down Expand Up @@ -659,6 +669,11 @@ jobs:
docker exec secondary pki-server ca-config-show ca.connector.KRA.host | tee actual
diff expected actual || true
- name: Check HTTPD access logs in secondary container
if: always()
run: |
docker exec secondary cat /var/log/httpd/access_log
- name: Check DS server systemd journal in secondary container
if: always()
run: |
Expand All @@ -684,6 +699,11 @@ jobs:
run: |
docker exec secondary journalctl -x --no-pager -u [email protected]
- name: Check PKI server access log in secondary container
if: always()
run: |
docker exec secondary find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
- name: Check CA debug log in secondary container
if: always()
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ipa-kra-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ jobs:
# the original private key should be identical to the archived one
diff private.key output
- name: Check HTTPD access logs
if: always()
run: |
docker exec ipa cat /var/log/httpd/access_log
- name: Check DS server systemd journal
if: always()
run: |
Expand Down Expand Up @@ -260,6 +265,11 @@ jobs:
run: |
docker exec ipa journalctl -x --no-pager -u [email protected]
- name: Check PKI server access log
if: always()
run: |
docker exec ipa find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
- name: Check CA debug log
if: always()
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ipa-subca-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ jobs:
sed -n 's/^\s*ID:\s*\(.*\)$/\1/p' output | wc -l > actual
diff expected actual
- name: Check HTTPD access logs
if: always()
run: |
docker exec ipa cat /var/log/httpd/access_log
- name: Check DS server systemd journal
if: always()
run: |
Expand All @@ -170,6 +175,11 @@ jobs:
run: |
docker exec ipa journalctl -x --no-pager -u [email protected]
- name: Check PKI server access log
if: always()
run: |
docker exec ipa find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
- name: Check CA debug log
if: always()
run: |
Expand Down

0 comments on commit f0e1d65

Please sign in to comment.