tests script fix, added readme and gitignore update

This commit is contained in:
ronivay
2018-07-26 16:47:18 +03:00
parent bef3113b61
commit b864fee714
2 changed files with 27 additions and 0 deletions

26
tests/README.md Normal file
View File

@@ -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
````

View File

@@ -7,6 +7,7 @@ function RunTestsSingle {
vagrant up &> $LOGFILE vagrant up &> $LOGFILE
sleep 5 sleep 5
echo "" >> $LOGFILE echo "" >> $LOGFILE
echo "Curl output:" >> $LOGFILE
curl -s -L 192.168.33.101 >> $LOGFILE 2>&1 || false curl -s -L 192.168.33.101 >> $LOGFILE 2>&1 || false
if [[ $? == "1" ]]; then if [[ $? == "1" ]]; then