From: Lukas Schauer Date: Tue, 10 May 2016 20:18:10 +0000 (+0200) Subject: fixed tests X-Git-Url: https://git.street.me.uk/andy/dehydrated.git/commitdiff_plain/a2867410ca3f7c34e6bd0f12c17c19c6c66c67ce fixed tests --- diff --git a/test.sh b/test.sh index 2e633c9..cda8be7 100755 --- a/test.sh +++ b/test.sh @@ -140,6 +140,7 @@ _TEST "Run in cron mode again, this time adding third domain, should force renew ./letsencrypt.sh --cron --domain "${TMP_URL}" --domain "${TMP2_URL}" --domain "${TMP3_URL}" > tmplog 2> errorlog || _FAIL "Script execution failed" _CHECK_LOG "Domain name(s) are not matching!" _CHECK_LOG "Forcing renew." +_CHECK_LOG "Generating private key" _CHECK_LOG "Requesting challenge for ${TMP_URL}" _CHECK_LOG "Requesting challenge for ${TMP2_URL}" _CHECK_LOG "Requesting challenge for ${TMP3_URL}" @@ -159,6 +160,9 @@ _CHECK_LOG "Checking domain name(s) of existing cert... unchanged." _CHECK_LOG "Skipping renew" _CHECK_ERRORLOG +# Disable private key renew +echo 'PRIVATE_KEY_RENEW="no"' >> config.sh + # Run in cron mode one last time, with domain in domains.txt and force-resign (should find certificate, resign anyway, and not generate private key) _TEST "Run in cron mode one last time, with domain in domains.txt and force-resign" ./letsencrypt.sh --cron --force > tmplog 2> errorlog || _FAIL "Script execution failed"