aboutsummaryrefslogtreecommitdiffstats
path: root/tests/accountd-kid
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2023-01-25 03:12:13 +0100
committerGuilhem Moulin <guilhem@fripost.org>2023-01-25 03:23:45 +0100
commitcb0b301e7a62a71d9e4454f9f7af5358c857c48c (patch)
tree7144a3ced094d47288cae7cfdff6fce14c2cac55 /tests/accountd-kid
parent40a4c9b9be51f9c41edd8b421dd629e001659fb4 (diff)
Adjust test suite against current Let's Encrypt staging environment.
Diffstat (limited to 'tests/accountd-kid')
-rw-r--r--tests/accountd-kid4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/accountd-kid b/tests/accountd-kid
index 1f282fd..8a4b53c 100644
--- a/tests/accountd-kid
+++ b/tests/accountd-kid
@@ -23,6 +23,7 @@ EOF
SOCKET=~lacme-account/S.lacme
runuser -u lacme-account -- lacme-accountd --socket="$SOCKET" --quiet & PID=$!
+sleep 1
# newAccount resource fails as per RFC 8555 sec. 6.2 it requires a JWK
! lacme --socket="$SOCKET" account 2>"$STDERR" || fail
@@ -37,6 +38,7 @@ wait
rm ~lacme-account/.local/share/lacme/accountd.log
runuser -u lacme-account -- lacme-accountd --socket="$SOCKET" --quiet & PID=$!
+sleep 1
# newOrder works fine without JWK
lacme --socket="$SOCKET" newOrder
@@ -46,7 +48,7 @@ test /etc/lacme/simpletest.rsa.crt -nt /etc/lacme/simpletest.rsa.key
lacme --socket="$SOCKET" revokeCert /etc/lacme/simpletest.rsa.crt
! lacme --socket="$SOCKET" revokeCert /etc/lacme/simpletest.rsa.crt 2>"$STDERR" || fail
grepstderr -Fxq "Revoking /etc/lacme/simpletest.rsa.crt"
-grepstderr -Fxq "400 Bad Request (Certificate already revoked)"
+grepstderr -Fq "400 Bad Request (unable to revoke"
grepstderr -Fxq "Warning: Couldn't revoke /etc/lacme/simpletest.rsa.crt"
kill $PID