mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-22 08:18:27 +02:00
added test for cleanup command
This commit is contained in:
8
test.sh
8
test.sh
@@ -209,5 +209,13 @@ _CHECK_LOG "Done."
|
|||||||
_CHECK_FILE "certs/${TMP_URL}/${REAL_CERT}-revoked"
|
_CHECK_FILE "certs/${TMP_URL}/${REAL_CERT}-revoked"
|
||||||
_CHECK_ERRORLOG
|
_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
|
# All done
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user