diff --git a/tests/ui/docker-compose.yml b/tests/ui/docker-compose.yml index 1e9b59155..a39d95534 100644 --- a/tests/ui/docker-compose.yml +++ b/tests/ui/docker-compose.yml @@ -78,6 +78,17 @@ services: bw-services: ipv4_address: 192.168.0.4 + ui-tests: + build: . + environment: + - PYTHONUNBUFFERED=1 + extra_hosts: + - "www.example.com:192.168.0.2" + - "app1.example.com:192.168.0.2" + networks: + bw-services: + ipv4_address: 192.168.0.3 + volumes: bw-data: diff --git a/tests/ui/tests.sh b/tests/ui/tests.sh index 9c30e5860..9cfdae627 100755 --- a/tests/ui/tests.sh +++ b/tests/ui/tests.sh @@ -19,6 +19,9 @@ if [ $? -ne 0 ] ; then echo "❌ Up failed" exit 1 fi + +docker-compose stop ui-tests + i=0 while [ $i -lt 120 ] ; do containers=("ui_bw_1" "ui_bw-scheduler_1" "ui_bw-ui_1") @@ -44,12 +47,7 @@ if [ $i -ge 120 ] ; then fi # Start tests -docker-compose -f docker-compose.tests.yml build -if [ $? -ne 0 ] ; then - echo "❌ Build failed" - exit 1 -fi -docker-compose -f docker-compose.tests.yml up --abort-on-container-exit --exit-code-from ui-tests +docker-compose start ui-tests # Exit exit $? \ No newline at end of file