/claim #677
Complete End-to-End testing framework using PyTest for OPAL Server and Client:
/healthcheck, /)/statistics, /stats)pytest tests/e2e -qAll 11 tests pass successfully: ======================== 11 passed, 1 warning in 5.61s =========================
tests/e2e/conftest.py - Docker fixtures and helperstests/e2e/test_health.py - Health endpoint teststests/e2e/test_stats.py - Statistics API teststests/e2e/test_logs.py - Log validation teststests/e2e/README.md - Documentationrun_e2e_tests.py - Test runner scriptpytest.ini - Updated configurationrequirements.txt - Added dependencies[Upload your demo video here showing all tests passing]
# 1. Start OPAL with statistics
cd docker
docker compose -f docker-compose-with-statistics.yml up -d
# 2. Run E2E tests
cd ..
pytest tests/e2e -q
# Expected: 11 passed
Closes #677
https://github.com/user-attachments/assets/29ce3570-66aa-4590-835e-81ed366537ba
Kartik Bhardwaj
@kartikbhardwaj1111
Permit.io
@Permitio