Skip to content

Commit

Permalink
Add a test to specify authority ID in ACME configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bokovoy <[email protected]>
  • Loading branch information
abbra committed Nov 18, 2024
1 parent 58267d3 commit 9dff709
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ipa-acme-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ jobs:
docker exec ipa bash -c "pki acme-info | sed -n 's/\s*Status:\s\+\(\S\+\).*/\1/p' > ${SHARED}/actual"
diff expected actual
- name: Specify main CA as Authority ID for ACME in IPA container
run: |
caid=$(docker exec ipa ipa -e in_server=true ca-show ipa --raw | awk -F: '/ipacaid/ { print $2; }')
docker exec ipa pki-server acme-issuer-mod --type pki "-Dauthority-id=${caid}"
echo "${caid}" > expected
docker exec ipa bash -c "pki-server acme-issuer-show | sed -n 's/\s*Authority ID:\s\+\(\S\+\).*/\1/p' > ${SHARED}/actual"
diff expected actual
- name: Run client container
run: |
docker run \
Expand Down

0 comments on commit 9dff709

Please sign in to comment.