mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
Add diagnostics to integration test workflow
Add diagnostic checks before running tests to verify: - Environment variables reach the container (PULSE_AUTH_USER/PASS) - Security status endpoint returns correct hasAuthentication value - Startup logs contain auth configuration messages This will help identify where authentication configuration is failing. Related to #695
This commit is contained in:
@@ -125,6 +125,14 @@ jobs:
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Diagnosing authentication configuration..."
|
||||
echo "Environment variables in container:"
|
||||
docker exec pulse-test-server env | grep PULSE_AUTH || echo "No PULSE_AUTH variables found"
|
||||
echo "Security status endpoint:"
|
||||
curl -s http://localhost:7655/api/security/status | jq . || echo "Failed to query security status"
|
||||
echo "Container startup logs (looking for auth messages):"
|
||||
docker logs pulse-test-server 2>&1 | grep -i "auth\|overriding\|hashed" || echo "No auth-related messages in logs"
|
||||
|
||||
echo "Running integration tests..."
|
||||
npx playwright test tests/01-happy-path.spec.ts tests/02-bad-checksums.spec.ts --reporter=list
|
||||
docker-compose -f docker-compose.test.yml down -v
|
||||
|
||||
Reference in New Issue
Block a user