#!/bin/bash # Run integration tests against real gateway # Usage: # ./scripts/test-integration.sh # Test local gateway # GATEWAY_URL=https://api.riotpiao.com ./scripts/test-integration.sh # Test production set -e GATEWAY_URL=${GATEWAY_URL:-http://localhost:8080} SKIP_AUTH_TESTS=${SKIP_AUTH_TESTS:-true} TEST_TIMEOUT=${TEST_TIMEOUT:-10} echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo "Integration Tests" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo "Gateway URL: $GATEWAY_URL" echo "Skip Auth Tests: $SKIP_AUTH_TESTS" echo "Timeout: ${TEST_TIMEOUT}s" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" export GATEWAY_URL export SKIP_AUTH_TESTS export TEST_TIMEOUT go test -tags integration -v ./internal/serviceadapter -run TestIntegration