diff --git a/test-integration-fixed.sh b/test-integration-fixed.sh index 516038e..17eadf9 100644 --- a/test-integration-fixed.sh +++ b/test-integration-fixed.sh @@ -11,8 +11,7 @@ NC='\033[0m' # Configuration LITTLESHOP_URL="https://admin.dark.side" -SILVERPAY_URL="http://10.0.0.1:8001" # SilverPay on internal LAN only -SILVERPAY_PUBLIC_URL="https://bank.dark.side" # Public facing URL (should not be accessible) +SILVERPAY_URL="https://bank.dark.side" # SilverPay via reverse proxy echo "================================================" echo "Integration Test Suite - Fixed Version" @@ -34,17 +33,17 @@ test_endpoint() { if [ "$method" = "POST" ]; then if [ -n "$data" ]; then - response=$(curl -s -w "\nHTTP:%{http_code}" -X POST "$url" \ + response=$(curl -k -s -w "\nHTTP:%{http_code}" -X POST "$url" \ -H "Content-Type: application/json" \ -d "$data" 2>/dev/null) else - response=$(curl -s -w "\nHTTP:%{http_code}" -X POST "$url" \ + response=$(curl -k -s -w "\nHTTP:%{http_code}" -X POST "$url" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "Username=admin&Password=admin" \ -L 2>/dev/null) fi else - response=$(curl -s -w "\nHTTP:%{http_code}" "$url" 2>/dev/null) + response=$(curl -k -s -w "\nHTTP:%{http_code}" "$url" 2>/dev/null) fi http_code=$(echo "$response" | grep "^HTTP:" | cut -d: -f2)