This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
# Phase 1 Test Results
|
||||
|
||||
Validation run from `/data/code/log-guardian` after Phase 1 implementation.
|
||||
|
||||
Passed:
|
||||
|
||||
```sh
|
||||
gofmt -w cmd internal
|
||||
go test ./...
|
||||
make validate-structure
|
||||
make go-fmt
|
||||
make go-test
|
||||
make docker-build
|
||||
```
|
||||
|
||||
Docker image built successfully as:
|
||||
|
||||
```text
|
||||
gitea.wayfinderak.com/wayfinderak/log-guardian:local
|
||||
```
|
||||
|
||||
Unit/integration-style tests added:
|
||||
|
||||
- Basic auth middleware protects UI routes and leaves `/healthz` unauthenticated.
|
||||
- Store defaults include rule cooldown and alert channel secret-preserving updates.
|
||||
- Loki client label, label-value, and query-range behavior uses `httptest` fixtures.
|
||||
- ntfy dispatcher delivery uses an `httptest` fixture.
|
||||
- Rule engine suppresses duplicate incidents during cooldown.
|
||||
|
||||
Pending live production validation before Phase 1 can be called operationally complete:
|
||||
|
||||
- Remote Loki connectivity and label discovery.
|
||||
- Remote Loki LogQL query validation.
|
||||
- Self-hosted ntfy test notification received.
|
||||
- Rule-generated ntfy alert received.
|
||||
- Remediation dry-run evidence captured from a real rule.
|
||||
- Security/privacy review of logs, prompts, secrets, alert tokens, and action permissions.
|
||||
Reference in New Issue
Block a user