clean routes
This commit is contained in:
38
test-docker-fix.sh
Executable file
38
test-docker-fix.sh
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Test script to verify docker auth/session fixes
|
||||
|
||||
echo "=== Testing Docker Auth/Session Fixes ==="
|
||||
|
||||
# Clean up any existing containers
|
||||
echo "1. Cleaning up existing containers..."
|
||||
docker-compose -f docker-compose.test.yml down -v 2>/dev/null || true
|
||||
|
||||
# Start services
|
||||
echo "2. Starting services..."
|
||||
docker-compose -f docker-compose.test.yml up -d
|
||||
|
||||
# Wait for services to be ready
|
||||
echo "3. Waiting for services to be ready..."
|
||||
sleep 30
|
||||
|
||||
# Check service status
|
||||
echo "4. Checking service status..."
|
||||
docker-compose -f docker-compose.test.yml ps
|
||||
|
||||
# Check website logs for any errors
|
||||
echo "5. Checking website logs..."
|
||||
docker-compose -f docker-compose.test.yml logs --tail=10 website
|
||||
|
||||
# Check API health
|
||||
echo "6. Testing API health..."
|
||||
curl -f http://localhost:3101/health && echo " ✓ API is healthy" || echo " ✗ API health check failed"
|
||||
|
||||
# Test website accessibility
|
||||
echo "7. Testing website accessibility..."
|
||||
curl -f http://localhost:3100/ && echo " ✓ Website is accessible" || echo " ✗ Website accessibility failed"
|
||||
|
||||
echo ""
|
||||
echo "=== Setup Complete ==="
|
||||
echo "To run tests: DOCKER_SMOKE=true npx playwright test --config=playwright.website.config.ts"
|
||||
echo "To stop: docker-compose -f docker-compose.test.yml down"
|
||||
Reference in New Issue
Block a user