feat: add comprehensive E2E test suite (Playwright + WireGuard + API)
Adds tests/e2e/ with three layers of E2E coverage: - API layer (tests/e2e/api/): unauthenticated access, admin endpoints, peer endpoints, access control enforcement — 24 tests - Playwright UI (tests/e2e/ui/): login flows, admin navigation, peer dashboard/services, role-based ACL, password change — 60+ tests - WireGuard connectivity (tests/e2e/wg/): tunnel up/down, DNS resolution through VPN, service ACL enforcement via iptables, full-tunnel routing Shared helpers: PicAPIClient, WGInterface, playwright_login, cleanup. Makefile targets: test-e2e-api, test-e2e-ui, test-e2e-wg, test-e2e. Adds scripts/reset_admin_password.py for test bootstrap. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
[pytest]
|
||||
markers =
|
||||
ui: Playwright browser tests (requires Chromium)
|
||||
wg: WireGuard VPN tests (requires wireguard-tools and sudo)
|
||||
cell_link: PIC-to-PIC cell link tests (requires PIC1_HOST)
|
||||
requires_internet: Tests that make outbound internet connections
|
||||
addopts = -v
|
||||
Reference in New Issue
Block a user