]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
check if renewal works
authorLukas Schauer <lukas@schauer.so>
Thu, 17 Dec 2015 17:33:54 +0000 (18:33 +0100)
committerLukas Schauer <lukas@schauer.so>
Thu, 17 Dec 2015 17:33:54 +0000 (18:33 +0100)
test.sh

diff --git a/test.sh b/test.sh
index 414d87171b768a6c2e2b0a4fdf147e71c8d57668..cf5adfff20fc307e0a706d8982e852b11b48d10b 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -153,6 +153,14 @@ _CHECK_ERRORLOG
 # Delete account key (not needed anymore)
 rm account_key.pem
 
+# Check if renewal works
+_TEST "Run in cron mode again, to check if renewal works"
+echo 'RENEW_DAYS="300"' >> config.sh
+./letsencrypt.sh --cron > tmplog 2> errorlog || _FAIL "Script execution failed"
+_CHECK_LOG "Checking domain name(s) of existing cert... unchanged."
+_CHECK_LOG "Renewing!"
+_CHECK_ERRORLOG
+
 # Check if certificate is valid in various ways
 _TEST "Verifying certificate..."
 _SUBTEST "Verifying certificate on its own..."