wiregui/tests
Stefano Bertelli c5b66349d6
Some checks failed
Dev / test (push) Failing after 2m43s
Dev / docker (push) Has been skipped
feat: WireGuard metrics collector + integration test stack
Metrics collector (wiregui/collector.py):
- Standalone process spawned by web app when WG_METRICS_ENABLED=true
- Polls wg show dump every WG_METRICS_POLL_INTERVAL seconds (default 5)
- Updates device stats in PostgreSQL
- Pushes Prometheus-format metrics to VictoriaMetrics (if configured)
- Graceful shutdown on SIGTERM

Integration test stack (compose.yml):
- Unified compose file for dev, test, and integration modes
- VictoriaMetrics single-node TSDB for metrics storage
- 3 mock WireGuard client containers generating ping traffic
- Automated setup script seeds server keypair, admin user, client devices
- make test-stack-up: one command to start everything
- make test-stack-verify: validates metrics flowing end-to-end

Infrastructure:
- Makefile with targets for dev, test, integration, and production
- Integration tests verify VictoriaMetrics has data for all 3 clients
- Fix Dockerfile to include img/ directory
- Separate TESTS.md for test tracking, clean TODO.md for features only
2026-03-31 18:30:15 -05:00
..
e2e feat: comprehensive test suite + SAML auth fixes + mock SAML IdP 2026-03-31 16:52:29 -05:00
integration feat: WireGuard metrics collector + integration test stack 2026-03-31 18:30:15 -05:00
__init__.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
conftest.py fix: CI test DB — use main DB in CI, skip test DB creation 2026-03-30 18:55:09 -05:00
test_account.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_admin.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_api.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_api_deps.py feat: comprehensive test suite + SAML auth fixes + mock SAML IdP 2026-03-31 16:52:29 -05:00
test_api_routes.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_auth.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_auth_extended.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_firewall.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_firewall_extended.py feat: comprehensive test suite + SAML auth fixes + mock SAML IdP 2026-03-31 16:52:29 -05:00
test_integration_mfa.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_integration_oidc.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_magic_link.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_mfa.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_models.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_notifications.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_server_key.py fix: run migrations before unit tests in CI 2026-03-31 17:02:49 -05:00
test_services.py fix: CI runner containers for Forgejo actions 2026-03-30 18:22:42 -05:00
test_services_extended.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_tasks.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_tasks_extended.py feat: initial WireGUI implementation — full VPN management platform 2026-03-30 16:53:46 -05:00
test_utils.py fix: pure Python keypair generation, no wg CLI dependency 2026-03-30 23:11:58 -05:00
test_wireguard_extended.py feat: comprehensive test suite + SAML auth fixes + mock SAML IdP 2026-03-31 16:52:29 -05:00