mirror of
https://github.com/katanemo/plano.git
synced 2026-04-28 10:26:36 +02:00
30 lines
786 B
Bash
30 lines
786 B
Bash
#!/bin/bash
|
|
set -eu
|
|
|
|
echo "docker images"
|
|
docker images
|
|
|
|
# for demo in currency_exchange hr_agent
|
|
for demo in samples_python/currency_exchange use_cases/preference_based_routing
|
|
do
|
|
echo "******************************************"
|
|
echo "Running tests for $demo ..."
|
|
echo "****************************************"
|
|
cd ../../$demo
|
|
echo "starting archgw"
|
|
archgw up arch_config.yaml
|
|
echo "starting docker containers"
|
|
docker compose up -d 2>&1 > /dev/null
|
|
echo "starting hurl tests"
|
|
hurl --test hurl_tests/*.hurl
|
|
if [ $? -ne 0 ]; then
|
|
echo "Hurl tests failed for $demo"
|
|
echo "docker logs for archgw:"
|
|
docker logs archgw
|
|
exit 1
|
|
fi
|
|
echo "stopping docker containers and archgw"
|
|
archgw down
|
|
docker compose down -v
|
|
cd ../../shared/test_runner
|
|
done
|