From b864fee714d3d2e0039fe7471a9ce6af1ff25a57 Mon Sep 17 00:00:00 2001 From: ronivay Date: Thu, 26 Jul 2018 16:47:18 +0300 Subject: [PATCH] tests script fix, added readme and gitignore update --- tests/README.md | 26 ++++++++++++++++++++++++++ tests/run-tests.sh | 1 + 2 files changed, 27 insertions(+) create mode 100644 tests/README.md diff --git a/tests/README.md b/tests/README.md new file mode 100644 index 0000000..5a22c84 --- /dev/null +++ b/tests/README.md @@ -0,0 +1,26 @@ +## Tests + +Automated tests to run installation on different operating systems and make sure the login page replies correctly. + +`run-tests.sh` without arguments builds up each vagrant box one by one and outputs if curl check was successful or not. + +``` +./run-tests-all.sh +CentOS HTTP Check: success +Debian HTTP Check: success +Ubuntu HTTP Check: success +``` + +Single OS can be tested by giving Ubuntu, CentOS or Debian as first argument for the script. + +``` +./run-tests.sh Ubuntu +Ubuntu HTTP Check: success +``` + +Requirements: +``` +OSX +Vagrant +Virtualbox +```` diff --git a/tests/run-tests.sh b/tests/run-tests.sh index b83b3fb..ef96e1f 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -7,6 +7,7 @@ function RunTestsSingle { vagrant up &> $LOGFILE sleep 5 echo "" >> $LOGFILE + echo "Curl output:" >> $LOGFILE curl -s -L 192.168.33.101 >> $LOGFILE 2>&1 || false if [[ $? == "1" ]]; then