From 9dff709cb2b8b7359fbaa91c171872a32ad09df6 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Mon, 18 Nov 2024 11:31:38 +0200 Subject: [PATCH] Add a test to specify authority ID in ACME configuration Signed-off-by: Alexander Bokovoy --- .github/workflows/ipa-acme-test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ipa-acme-test.yml b/.github/workflows/ipa-acme-test.yml index ffff1f55d35..16330f6e457 100644 --- a/.github/workflows/ipa-acme-test.yml +++ b/.github/workflows/ipa-acme-test.yml @@ -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 \