Some checks are pending
Bidi Control Character Guard / bidi-control-guard (push) Waiting to run
Circular Dependency Check / Check for new circular dependencies (push) Waiting to run
Citus Migration Smoke / Combined migrations on single-node Citus (push) Waiting to run
E2E Fresh Install Tests / fresh-install-e2e (push) Waiting to run
ext-v2 guardrails / Run ext-v2 guard and ESLint (push) Waiting to run
Integration Tests / Check for relevant changes (push) Waiting to run
Integration Tests / ${{ (github.event_name == 'schedule' || github.event.inputs.suite == 'full') && 'Full integration suite' || 'Tier-1 integration subset' }} (push) Blocked by required conditions
Mobile checks / Mobile lint + typecheck (push) Waiting to run
Mobile checks / Mobile unit tests (push) Waiting to run
Mobile checks / Mobile dependency audit (report) (push) Waiting to run
Mobile checks / Mobile reproducibility checks (push) Waiting to run
Secrets guard (env backups) / Ensure no tracked env backup files (push) Waiting to run
Temporal Readiness / fast-readiness (push) Waiting to run
Temporal Readiness / docker-parity (push) Waiting to run
TypeScript Type Check / Nx affected typecheck (push) Waiting to run
Unit Tests / Skipped-test budget (push) Waiting to run
Unit Tests / Nx affected unit tests (push) Waiting to run
Unit Tests / Server unit coverage (informational) (push) Waiting to run
Validate Tenant Management Schema / Check for relevant changes (push) Waiting to run
Validate Tenant Management Schema / Validate Tenant Management Schema (push) Blocked by required conditions
EE Workflows Build Guard / ee-workflows-build-guard (push) Waiting to run
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz Source: /opt/alga-psa on psa.joliet.tech
66 lines
1.9 KiB
Bash
Executable File
66 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Test Workflow Worker Health and Connectivity
|
|
|
|
set -e
|
|
|
|
echo "🔍 Testing Workflow Worker E2E Setup..."
|
|
|
|
# Function to test endpoint
|
|
test_endpoint() {
|
|
local name=$1
|
|
local url=$2
|
|
local expected_pattern=$3
|
|
|
|
echo -n "Testing $name... "
|
|
if response=$(curl -s --max-time 10 "$url" 2>/dev/null); then
|
|
if [[ -z "$expected_pattern" ]] || echo "$response" | grep -q "$expected_pattern"; then
|
|
echo "✅"
|
|
return 0
|
|
else
|
|
echo "❌ (unexpected response)"
|
|
echo "Response: $response" | head -3
|
|
return 1
|
|
fi
|
|
else
|
|
echo "❌ (connection failed)"
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
# Test infrastructure endpoints
|
|
echo ""
|
|
echo "📋 Testing Infrastructure:"
|
|
test_endpoint "PostgreSQL Test DB" "http://localhost:5433" "" || echo " Note: Direct HTTP test not applicable for PostgreSQL"
|
|
test_endpoint "MailHog Web UI" "http://localhost:8025" "MailHog"
|
|
test_endpoint "WireMock Health" "http://localhost:8080/__admin/health" "healthy"
|
|
|
|
# Test workflow worker
|
|
echo ""
|
|
echo "📋 Testing Workflow Worker:"
|
|
test_endpoint "Worker Health Check" "http://localhost:4001/api/health/worker" "status"
|
|
|
|
# Test database connectivity from workflow worker
|
|
echo ""
|
|
echo "📋 Testing Database Connectivity:"
|
|
if docker exec sebastian_workflow_worker_test pg_isready -h postgres-test -p 5432 -U app_user -d server_test 2>/dev/null; then
|
|
echo "Database connectivity: ✅"
|
|
else
|
|
echo "Database connectivity: ❌"
|
|
fi
|
|
|
|
# Test Redis connectivity from workflow worker
|
|
echo ""
|
|
echo "📋 Testing Redis Connectivity:"
|
|
if docker exec sebastian_workflow_worker_test redis-cli -h redis-test -p 6379 ping 2>/dev/null | grep -q "PONG"; then
|
|
echo "Redis connectivity: ✅"
|
|
else
|
|
echo "Redis connectivity: ❌ (may require auth)"
|
|
fi
|
|
|
|
echo ""
|
|
echo "📋 Container Status:"
|
|
docker ps --filter "name=sebastian" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
|
|
|
|
echo ""
|
|
echo "📊 Testing Complete!" |