Renewer integration tests for standalone.

This commit is contained in:
Jakub Warmuz
2015-06-25 17:43:17 +00:00
parent d543716adf
commit 040f434a61
2 changed files with 22 additions and 2 deletions
+17 -2
View File
@@ -5,14 +5,14 @@
root="$(mktemp -d)"
echo "\nRoot integration tests directory: $root"
store_flags="--config-dir $root/conf --work-dir $root/work"
# first three flags required, rest is handy defaults
letsencrypt \
--server http://localhost:4000/acme/new-reg \
--no-verify-ssl \
--dvsni-port 5001 \
--config-dir "$root/conf" \
--work-dir "$root/work" \
$store_flags \
--text \
--agree-eula \
--email "" \
@@ -20,3 +20,18 @@ letsencrypt \
--authenticator standalone \
-vvvvvvv \
auth
# the following assumes that Boulder issues certificates for less than
# 10 years, otherwise renewal will not take place
cat <<EOF > "$root/conf/renewer.conf"
renew_before_expiry = 10 years
deploy_before_expiry = 10 years
EOF
letsencrypt-renewer $store_flags
dir="$root/conf/archive/le.wtf"
for x in cert chain fullchain privkey;
do
latest="$(ls -1t $dir/ | grep -e "^${x}" | head -n1)"
live="$(readlink -f "$root/conf/live/le.wtf/${x}.pem")"
#[ "${dir}/${latest}" = "$live" ] # renewer fails this test
done