Files
aitbc/tests/cli-test-service-health.sh
aitbc 83ca64f7b8
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Has been cancelled
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Production Tests / Production Integration Tests (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
CLI Tests / test-cli (push) Failing after 3s
feat: add /v1 API prefix to all business logic endpoints and create CLI test suite
- Added /v1 prefix to all business logic routers in coordinator-api (analytics, portfolio, reputation, rewards, staking)
- Updated agent-coordinator to include /v1 prefix for all routers
- Changed agent-management API prefix from /api/v1 to /v1
- Updated api-gateway service prefixes to include /v1 for all proxied services
- Fixed coordinator-api routers to use correct service imports (AgentServiceMarketplace instead
2026-05-19 12:46:59 +02:00

38 lines
815 B
Bash
Executable File

#!/bin/bash
# Service Health Check Script
# Check all required services are running before CLI testing
echo "=== AITBC Service Health Check ==="
echo "Testing required services for CLI testing..."
echo ""
services=(
"coordinator-api"
"agent-coordinator"
"blockchain-node"
"marketplace-service"
"governance-service"
"trading-service"
)
failed_services=()
for service in "${services[@]}"; do
echo -n "Checking $service... "
if systemctl is-active --quiet "aitbc-$service.service"; then
echo "✓ Active"
else
echo "✗ Not active"
failed_services+=("$service")
fi
done
echo ""
if [ ${#failed_services[@]} -eq 0 ]; then
echo "All required services are running ✓"
exit 0
else
echo "Failed services: ${failed_services[*]}"
exit 1
fi