mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-19 16:27:37 +00:00
Tests validate the error pattern matching logic added in previous commit, ensuring we correctly identify: 1. **Standalone Node Patterns** (should trigger fallback): - Classic: 'Corosync config does not exist' - LXC ipcc errors: 'ipcc_send_rec[1] failed: Unknown error -1' - Access control errors: 'Unable to load access control list' - All patterns from GitHub issue #571 2. **Genuine Errors** (should NOT trigger fallback): - Network timeouts - Permission denied - Command not found Tests use real error messages from production GitHub issues to prevent regressions. All 9 test cases pass. Coverage: - 6 standalone/LXC error patterns - 3 genuine error cases (negative testing) - References issue #571 for traceability Related to #571 |
||
|---|---|---|
| .. | ||
| audit.go | ||
| audit_test.go | ||
| auth.go | ||
| auth_test.go | ||
| capabilities.go | ||
| cleanup.go | ||
| config.example.yaml | ||
| config.go | ||
| main.go | ||
| main_test.go | ||
| metrics.go | ||
| ssh.go | ||
| ssh_test.go | ||
| throttle.go | ||
| throttle_test.go | ||
| validation.go | ||
| validation_fuzz_test.go | ||
| validation_test.go | ||