From 4873f7f8d9c0dc90b876e1a1b29c59f44fca9306 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..a1a53d271bb 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 acme-info | sed -n 's/\s*Authority ID:\s\+\(\S\+\).*/\1/p' > ${SHARED}/actual" + diff expected actual + - name: Run client container run: | docker run \