Try to add the new renew verb to integration testing

This commit is contained in:
Seth Schoen
2016-02-03 13:53:42 -08:00
parent 22adea60bf
commit a706f5c8c0
+15 -14
View File
@@ -44,20 +44,21 @@ common --domains le3.wtf install \
--cert-path "${root}/csr/cert.pem" \ --cert-path "${root}/csr/cert.pem" \
--key-path "${root}/csr/key.pem" --key-path "${root}/csr/key.pem"
# the following assumes that Boulder issues certificates for less than # This won't renew (because it's not time yet)
# 10 years, otherwise renewal will not take place common renew
cat <<EOF > "$root/conf/renewer.conf"
renew_before_expiry = 10 years # This will renew
deploy_before_expiry = 10 years sed -i "4arenew_before_expiry = 10 years" "$root/conf/renewal/le1.wtf.conf"
EOF common renew
letsencrypt-renewer $store_flags
dir="$root/conf/archive/le1.wtf" # letsencrypt-renewer $store_flags
for x in cert chain fullchain privkey; # dir="$root/conf/archive/le1.wtf"
do # for x in cert chain fullchain privkey;
latest="$(ls -1t $dir/ | grep -e "^${x}" | head -n1)" # do
live="$($readlink -f "$root/conf/live/le1.wtf/${x}.pem")" # latest="$(ls -1t $dir/ | grep -e "^${x}" | head -n1)"
[ "${dir}/${latest}" = "$live" ] # renewer fails this test # live="$($readlink -f "$root/conf/live/le1.wtf/${x}.pem")"
done # [ "${dir}/${latest}" = "$live" ] # renewer fails this test
# done
# revoke by account key # revoke by account key
common revoke --cert-path "$root/conf/live/le.wtf/cert.pem" common revoke --cert-path "$root/conf/live/le.wtf/cert.pem"