-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Manual Testing: Security Test Helpers
Created: June 2025
Priority: Medium
Status: Open
Objective
Verify the security test helpers implementation prevents ACL deadlock during E2E test execution.
Test Scenarios
Scenario 1: ACL Toggle Isolation
- Run security dashboard tests that toggle ACL on
- Intentionally cancel mid-test (Ctrl+C)
- Run any other E2E test (e.g., manual-dns-provider)
- Expected: Tests should pass - global-setup.ts should reset ACL
Scenario 2: State Restoration After Failure
- Modify a security dashboard toggle test to throw an error after enabling ACL
- Run the test (it will fail)
- Run a different test file
- Expected: ACL should be disabled, other tests should pass
Scenario 3: Concurrent Test Runs
- Run full E2E suite:
npx playwright test --project=chromium - Expected: No tests fail due to ACL blocking (@api-tagged requests)
- Expected: Security dashboard toggle tests complete without deadlock
Scenario 4: Fresh Container State
- Stop all containers:
docker compose -f .docker/compose/docker-compose.yml down -v - Start fresh:
docker compose -f .docker/compose/docker-compose.ci.yml up -d - Run security dashboard tests
- Expected: Tests pass, ACL state properly managed
Verification Commands
# Full E2E suite
npx playwright test --project=chromium
# Security-specific tests
npx playwright test tests/security/*.spec.ts --project=chromium
# Check ACL is disabled after tests
curl -s http://localhost:8080/api/v1/security/status | jq '.acl_enabled'Acceptance Criteria
- Security dashboard toggle tests pass consistently
- No "403 Forbidden" errors in unrelated tests after security tests run
- global-setup.ts emergency reset works when ACL is stuck enabled
- afterAll cleanup creates fresh request context (no fixture reuse errors)
Auto-created from manual-test-security-helpers.md
Metadata
Metadata
Assignees
Labels
No labels
Projects
Status
Backlog