From: Lukas Schauer Date: Mon, 15 Feb 2016 19:41:28 +0000 (+0100) Subject: added test for cleanup command X-Git-Tag: v0.1.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a35b89e914e527c6a2843675018d8ec577e528cb;p=thirdparty%2Fdehydrated.git added test for cleanup command --- diff --git a/test.sh b/test.sh index 0893bed..3e23f06 100755 --- a/test.sh +++ b/test.sh @@ -209,5 +209,13 @@ _CHECK_LOG "Done." _CHECK_FILE "certs/${TMP_URL}/${REAL_CERT}-revoked" _CHECK_ERRORLOG +# Test cleanup command +_TEST "Cleaning up certificates" +./letsencrypt.sh --cleanup > tmplog 2> errorlog || _FAIL "Script execution failed" +_CHECK_LOG "Moving unused file to archive directory: ${TMP_URL}/cert-" +_CHECK_LOG "Moving unused file to archive directory: ${TMP_URL}/chain-" +_CHECK_LOG "Moving unused file to archive directory: ${TMP_URL}/fullchain-" +_CHECK_ERRORLOG + # All done exit 0