Some checks are pending
Go Benchmark / Performance Regression Check (push) Waiting to run
Cerberus Integration / Cerberus Security Stack Integration (push) Waiting to run
Upload Coverage to Codecov / Backend Codecov Upload (push) Waiting to run
Upload Coverage to Codecov / Frontend Codecov Upload (push) Waiting to run
CodeQL - Analyze / CodeQL analysis (go) (push) Waiting to run
CodeQL - Analyze / CodeQL analysis (javascript-typescript) (push) Waiting to run
CrowdSec Integration / CrowdSec Bouncer Integration (push) Waiting to run
Docker Build, Publish & Test / build-and-push (push) Waiting to run
Docker Build, Publish & Test / Security Scan PR Image (push) Blocked by required conditions
Quality Checks / Auth Route Protection Contract (push) Waiting to run
Quality Checks / Codecov Trigger/Comment Parity Guard (push) Waiting to run
Quality Checks / Backend (Go) (push) Waiting to run
Quality Checks / Frontend (React) (push) Waiting to run
Rate Limit integration / Rate Limiting Integration (push) Waiting to run
Security Scan (PR) / Trivy Binary Scan (push) Waiting to run
Supply Chain Verification (PR) / Verify Supply Chain (push) Waiting to run
WAF integration / Coraza WAF Integration (push) Waiting to run
59 lines
1.8 KiB
Markdown
Executable File
59 lines
1.8 KiB
Markdown
Executable File
# 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
|
|
|
|
1. Run security dashboard tests that toggle ACL on
|
|
2. Intentionally cancel mid-test (Ctrl+C)
|
|
3. Run any other E2E test (e.g., manual-dns-provider)
|
|
4. **Expected**: Tests should pass - global-setup.ts should reset ACL
|
|
|
|
### Scenario 2: State Restoration After Failure
|
|
|
|
1. Modify a security dashboard toggle test to throw an error after enabling ACL
|
|
2. Run the test (it will fail)
|
|
3. Run a different test file
|
|
4. **Expected**: ACL should be disabled, other tests should pass
|
|
|
|
### Scenario 3: Concurrent Test Runs
|
|
|
|
1. Run full E2E suite: `npx playwright test --project=chromium`
|
|
2. **Expected**: No tests fail due to ACL blocking (@api-tagged requests)
|
|
3. **Expected**: Security dashboard toggle tests complete without deadlock
|
|
|
|
### Scenario 4: Fresh Container State
|
|
|
|
1. Stop all containers: `docker compose -f .docker/compose/docker-compose.yml down -v`
|
|
2. Start fresh: `docker compose -f .docker/compose/docker-compose.ci.yml up -d`
|
|
3. Run security dashboard tests
|
|
4. **Expected**: Tests pass, ACL state properly managed
|
|
|
|
## Verification Commands
|
|
|
|
```bash
|
|
# 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)
|