Initial microservices setup from artifacts

This commit is contained in:
Urtzi Alfaro
2025-07-17 13:09:24 +02:00
commit 347ff51bd7
200 changed files with 9559 additions and 0 deletions

15
scripts/test.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
echo "🧪 Running tests for all services..."
# Run tests for each service
for service in auth training forecasting data tenant notification; do
echo "Testing $service service..."
if docker-compose ps | grep -q "${service}-service.*Up"; then
docker-compose exec -T ${service}-service python -m pytest tests/ -v || echo "Tests failed for $service"
else
echo "Service $service is not running, skipping tests"
fi
done
echo "✅ Test run completed"