added test for connection from client to server

This commit is contained in:
Hadis-Fard 2017-07-31 16:03:50 -07:00
parent da77a1ec3c
commit 897468626f
2 changed files with 13 additions and 1 deletions

View file

@ -30,7 +30,8 @@ script:
- docker network ls
- docker inspect -f "{{ .HostConfig.Links }}" client
- docker logs client
- docker ps -a
- docker ps -a
- docker exec client bash -c ./TestSqlcmd.sh
- docker exec client python ./test/functional/setup/setup_dbs.py -dbname $SQLSRV_DBNAME
- docker exec client python ./test/functional/setup/setup_dbs.py -dbname $PDOSQLSRV_DBNAME
- docker exec client php ./test/functional/pdo_sqlsrv/*.phpt

11
TestSqlcmd.sh Normal file
View file

@ -0,0 +1,11 @@
#!bin/bash
set -e
$test = "sqlcmd -S sql -U sa -P Password123"
until $test; do
>&2 echo "SQL Server is starting up. Running initial db configuration"
sleep 1
done
echo "SQL Server is up - starting app"