]> git.street.me.uk Git - andy/dehydrated.git/commitdiff
fixed tests
authorLukas Schauer <lukas@schauer.so>
Tue, 10 May 2016 20:18:10 +0000 (22:18 +0200)
committerLukas Schauer <lukas@schauer.so>
Tue, 10 May 2016 20:18:10 +0000 (22:18 +0200)
test.sh

diff --git a/test.sh b/test.sh
index 2e633c9b627cb2c62e7ce262978c96060a380935..cda8be754a8e420ac13148f9415cb88bde3b6eae 100755 (executable)
--- 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"