From 888009aaa7904ad9f735922302623f5e99a108a4 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Tue, 8 Oct 2019 17:47:06 +0200 Subject: [PATCH] add tests to travis --- tests/travis.sh | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/tests/travis.sh b/tests/travis.sh index be1e8a3..3e53210 100644 --- a/tests/travis.sh +++ b/tests/travis.sh @@ -65,7 +65,7 @@ done echo -e "${CGREEN}#############################################${CEND}" echo -e ' wo site update --php73 ' echo -e "${CGREEN}#############################################${CEND}" -other_site_types='html mysql wp wpfc wpsc wpredis wpce wprocket wpsubdomain wpsubdir' +other_site_types='html mysql wp wpfc wpsc wpredis wpce wprocket wpsubdomain wpsubdir ngxblocker' for site in $other_site_types; do echo -ne " Updating site to $site php73 [..]\r" if { @@ -180,6 +180,46 @@ for stack in $stack_clean; do fi done +echo -e "${CGREEN}#############################################${CEND}" +echo -e ' wo secure ' +echo -e "${CGREEN}#############################################${CEND}" +echo -ne " wo secure --auth [..]\r" +if { + wo secure --auth wordops mypassword +} >> /var/log/wo/test.log; then + echo -ne " wo secure --auth [${CGREEN}OK${CEND}]\\r" + echo -ne '\n' +else + echo -e " wo secure --auth [${CRED}FAIL${CEND}]" + echo -ne '\n' + exit_script + +fi +echo -ne " wo secure --sshport [..]\r" +if { + wo secure --sshport 2022 +} >> /var/log/wo/test.log; then + echo -ne " wo secure --sshport [${CGREEN}OK${CEND}]\\r" + echo -ne '\n' +else + echo -e " wo secure --sshport [${CRED}FAIL${CEND}]" + echo -ne '\n' + exit_script + +fi +echo -ne " wo secure --ssh [..]\r" +if { + wo secure --ssh --force +} >> /var/log/wo/test.log; then + echo -ne " wo secure --ssh [${CGREEN}OK${CEND}]\\r" + echo -ne '\n' +else + echo -e " wo secure --ssh [${CRED}FAIL${CEND}]" + echo -ne '\n' + exit_script + +fi + echo -e "${CGREEN}#############################################${CEND}" echo -e ' various informations ' echo -e "${CGREEN}#############################################${CEND}"