Skip to content

Commit f0e1d65

Browse files
committed
Update IPA tests to check access logs
1 parent f21fea7 commit f0e1d65

File tree

5 files changed

+60
-0
lines changed

5 files changed

+60
-0
lines changed

.github/workflows/ipa-acme-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ jobs:
145145
docker exec ipa bash -c "pki acme-info | sed -n 's/\s*Status:\s\+\(\S\+\).*/\1/p' > ${SHARED}/actual"
146146
diff expected actual
147147
148+
- name: Check HTTPD access logs
149+
if: always()
150+
run: |
151+
docker exec ipa cat /var/log/httpd/access_log
152+
148153
- name: Check DS server systemd journal
149154
if: always()
150155
run: |
@@ -170,6 +175,11 @@ jobs:
170175
run: |
171176
docker exec ipa journalctl -x --no-pager -u [email protected]
172177
178+
- name: Check PKI server access log
179+
if: always()
180+
run: |
181+
docker exec ipa find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
182+
173183
- name: Check CA debug log
174184
if: always()
175185
run: |

.github/workflows/ipa-basic-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,11 @@ jobs:
223223
docker exec ipa ipa-run-tests -x --verbose \
224224
test_xmlrpc/test_ca_plugin.py
225225
226+
- name: Check HTTPD access logs
227+
if: always()
228+
run: |
229+
docker exec ipa cat /var/log/httpd/access_log
230+
226231
- name: Check DS server systemd journal
227232
if: always()
228233
run: |
@@ -256,6 +261,11 @@ jobs:
256261
run: |
257262
docker exec ipa journalctl -x --no-pager -u [email protected]
258263
264+
- name: Check PKI server access log
265+
if: always()
266+
run: |
267+
docker exec ipa find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
268+
259269
- name: Check CA debug log
260270
if: always()
261271
run: |

.github/workflows/ipa-clone-test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,11 @@ jobs:
574574
grep "Number of entries returned" output-primary > actual
575575
diff expected actual
576576
577+
- name: Check HTTPD access logs in primary container
578+
if: always()
579+
run: |
580+
docker exec primary cat /var/log/httpd/access_log
581+
577582
- name: Check DS server systemd journal in primary container
578583
if: always()
579584
run: |
@@ -599,6 +604,11 @@ jobs:
599604
run: |
600605
docker exec primary journalctl -x --no-pager -u [email protected]
601606
607+
- name: Check PKI server access log in primary container
608+
if: always()
609+
run: |
610+
docker exec primary find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
611+
602612
- name: Check CA debug log in primary container
603613
if: always()
604614
run: |
@@ -659,6 +669,11 @@ jobs:
659669
docker exec secondary pki-server ca-config-show ca.connector.KRA.host | tee actual
660670
diff expected actual || true
661671
672+
- name: Check HTTPD access logs in secondary container
673+
if: always()
674+
run: |
675+
docker exec secondary cat /var/log/httpd/access_log
676+
662677
- name: Check DS server systemd journal in secondary container
663678
if: always()
664679
run: |
@@ -684,6 +699,11 @@ jobs:
684699
run: |
685700
docker exec secondary journalctl -x --no-pager -u [email protected]
686701
702+
- name: Check PKI server access log in secondary container
703+
if: always()
704+
run: |
705+
docker exec secondary find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
706+
687707
- name: Check CA debug log in secondary container
688708
if: always()
689709
run: |

.github/workflows/ipa-kra-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ jobs:
222222
# the original private key should be identical to the archived one
223223
diff private.key output
224224
225+
- name: Check HTTPD access logs
226+
if: always()
227+
run: |
228+
docker exec ipa cat /var/log/httpd/access_log
229+
225230
- name: Check DS server systemd journal
226231
if: always()
227232
run: |
@@ -260,6 +265,11 @@ jobs:
260265
run: |
261266
docker exec ipa journalctl -x --no-pager -u [email protected]
262267
268+
- name: Check PKI server access log
269+
if: always()
270+
run: |
271+
docker exec ipa find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
272+
263273
- name: Check CA debug log
264274
if: always()
265275
run: |

.github/workflows/ipa-subca-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ jobs:
145145
sed -n 's/^\s*ID:\s*\(.*\)$/\1/p' output | wc -l > actual
146146
diff expected actual
147147
148+
- name: Check HTTPD access logs
149+
if: always()
150+
run: |
151+
docker exec ipa cat /var/log/httpd/access_log
152+
148153
- name: Check DS server systemd journal
149154
if: always()
150155
run: |
@@ -170,6 +175,11 @@ jobs:
170175
run: |
171176
docker exec ipa journalctl -x --no-pager -u [email protected]
172177
178+
- name: Check PKI server access log
179+
if: always()
180+
run: |
181+
docker exec ipa find /var/log/pki/pki-tomcat -name "localhost_access_log.*" -exec cat {} \;
182+
173183
- name: Check CA debug log
174184
if: always()
175185
run: |

0 commit comments

Comments
 (0)