2024-12-20 13:25:01 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -eu
|
|
|
|
|
|
2025-05-19 09:59:22 -07:00
|
|
|
echo "docker images"
|
|
|
|
|
docker images
|
|
|
|
|
|
2024-12-21 11:33:08 -08:00
|
|
|
# for demo in currency_exchange hr_agent
|
2025-05-19 09:59:22 -07:00
|
|
|
for demo in samples_python/currency_exchange use_cases/preference_based_routing
|
2024-12-20 13:25:01 -08:00
|
|
|
do
|
|
|
|
|
echo "******************************************"
|
|
|
|
|
echo "Running tests for $demo ..."
|
|
|
|
|
echo "****************************************"
|
2025-05-19 09:59:22 -07:00
|
|
|
cd ../../$demo
|
2025-03-17 14:21:41 -07:00
|
|
|
echo "starting archgw"
|
2024-12-20 13:25:01 -08:00
|
|
|
archgw up arch_config.yaml
|
2025-03-17 14:21:41 -07:00
|
|
|
echo "starting docker containers"
|
|
|
|
|
docker compose up -d 2>&1 > /dev/null
|
|
|
|
|
echo "starting hurl tests"
|
|
|
|
|
hurl --test hurl_tests/*.hurl
|
2025-05-22 22:55:46 -07:00
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
|
echo "Hurl tests failed for $demo"
|
|
|
|
|
echo "docker logs for archgw:"
|
|
|
|
|
docker logs archgw
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
2025-03-17 14:21:41 -07:00
|
|
|
echo "stopping docker containers and archgw"
|
2024-12-20 13:25:01 -08:00
|
|
|
archgw down
|
2024-12-21 11:33:08 -08:00
|
|
|
docker compose down -v
|
2025-02-07 18:45:42 -08:00
|
|
|
cd ../../shared/test_runner
|
2024-12-20 13:25:01 -08:00
|
|
|
done
|