bloody murder.... ship or bust here we go...

This commit is contained in:
2025-11-05 15:53:19 -06:00
parent d27cf46606
commit 35b96b0e90
1810 changed files with 39 additions and 213819 deletions

View File

@@ -1,40 +0,0 @@
#!/bin/bash
# Test to ensure Mailhog appears in Homepage discovery
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
ENV_FILE="${SCRIPT_DIR}/TSYSDevStack-SupportStack-Demo-Settings"
if [ ! -f "$ENV_FILE" ]; then
echo "Error: Environment settings file not found at $ENV_FILE"
exit 1
fi
source "$ENV_FILE"
echo "Testing Mailhog discovery on homepage..."
# Validate required containers are running
if ! docker ps | grep -q "$MAILHOG_NAME"; then
echo "❌ Mailhog container is not running"
exit 1
fi
if ! docker ps | grep -q "$HOMEPAGE_NAME"; then
echo "❌ Homepage container is not running"
exit 1
fi
# Allow homepage time to refresh discovery
sleep 5
services_payload=$(curl -s "http://${BIND_ADDRESS}:${HOMEPAGE_PORT}/api/services")
if echo "$services_payload" | grep -q "\"container\":\"$MAILHOG_NAME\""; then
echo "✅ Mailhog is discoverable on homepage"
exit 0
else
echo "❌ Mailhog is NOT discoverable on homepage"
exit 1
fi