tests script fix, added readme and gitignore update
This commit is contained in:
26
tests/README.md
Normal file
26
tests/README.md
Normal 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
|
||||||
|
````
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user