Skip to content

Commit

Permalink
Update basic CA test to check DS entries
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Nov 6, 2024
1 parent 4d59421 commit 9cad746
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ca-basic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,17 @@ jobs:
docker exec pki /usr/share/pki/tests/ca/bin/test-ca-signing-cert.sh
docker exec pki /usr/share/pki/tests/ca/bin/test-subsystem-cert.sh
- name: Check certs in DS
run: |
docker exec ds ldapsearch \
-H ldap://ds.example.com:3389 \
-D "cn=Directory Manager" \
-w Secret.123 \
-x \
-b "ou=certificateRepository,ou=ca,dc=ca,dc=pki,dc=example,dc=com" \
-o ldif_wrap=no \
-LLL
- name: Check pki ca-cert-find with default API
run: |
docker exec pki pki ca-cert-find | tee output
Expand Down Expand Up @@ -431,6 +442,17 @@ jobs:
diff expected output
- name: Check users in DS
run: |
docker exec ds ldapsearch \
-H ldap://ds.example.com:3389 \
-D "cn=Directory Manager" \
-w Secret.123 \
-x \
-b "ou=people,dc=ca,dc=pki,dc=example,dc=com" \
-o ldif_wrap=no \
-LLL
- name: Check pki ca-user-show with default API
run: |
docker exec pki pki pkcs12-import \
Expand Down Expand Up @@ -477,6 +499,17 @@ jobs:
diff expected output
- name: Check cert requests in DS
run: |
docker exec ds ldapsearch \
-H ldap://ds.example.com:3389 \
-D "cn=Directory Manager" \
-w Secret.123 \
-x \
-b "ou=requests,dc=ca,dc=pki,dc=example,dc=com" \
-o ldif_wrap=no \
-LLL
- name: Check cert requests in CA
run: |
docker exec pki pki -n caadmin ca-cert-request-find
Expand Down

0 comments on commit 9cad746

Please sign in to comment.