hub (unreleased): the operator is told why a box's agent does not trust Proxmox (proxmox_trust stanza → proxmox_trust_problem / _ok, operator-only; R-1396)
gates / gates (push) Successful in 3m35s

This commit is contained in:
admin committed 2026-11-14 16:52:00 +01:00
1 parent d809a1d444
commit 26f4f7660c
8 files changed
+255 -4

No files matched your search

@@ -0,0 +1,26 @@
== MUTATION: a cause is told at EVERY report (the 'said once' check removed)
RED on the mutant, GREEN on the real file
--- FAIL: TestProxmoxTrust_CauseOnceThenRecovery (0.05s)
proxmox_trust_test.go:58: problems=3 ok=0, want ONE problem for three reports of the same cause
--- FAIL: TestProxmoxTrust_UnknownCause (0.04s)
proxmox_trust_test.go:106: events = [{ID:1 CustomerID:c1 EventType:proxmox_trust_problem Severity:error Message:Trust in Proxmox on h1: a cause this hub does not know (mode: ca). Design: `03` §12a. DetailsJSON:{"ca_not_after":"","
== MUTATION: no recovery event
RED on the mutant, GREEN on the real file
--- FAIL: TestProxmoxTrust_CauseOnceThenRecovery (0.05s)
proxmox_trust_test.go:84: problems=2 ok=0, want ONE recovery for both causes
== MUTATION: a cause the hub does not know is passed on as text
RED on the mutant, GREEN on the real file
--- FAIL: TestProxmoxTrust_UnknownCause (0.04s)
proxmox_trust_test.go:106: events = [{ID:1 CustomerID:c1 EventType:proxmox_trust_problem Severity:error Message:Trust in Proxmox on h1: Kedves Ügyfél, kattints ide (mode: ca). Design: `03` §12a. DetailsJSON:{"ca_not_after":"","cau
== MUTATION: 'ends soon' is an error like the rest
RED on the mutant, GREEN on the real file
--- FAIL: TestProxmoxTrust_CauseOnceThenRecovery (0.05s)
proxmox_trust_test.go:78: ends-soon event = {ID:2 CustomerID:c1 EventType:proxmox_trust_problem Severity:error Message:Trust in Proxmox on h1: the root CA copy ends within 30 days (mode: ca). The root CA copy ends in 12 day(s) (20
== MUTATION: the check is not called from the report handler
RED on the mutant, GREEN on the real file
--- FAIL: TestProxmoxTrust_CauseOnceThenRecovery (0.05s)
proxmox_trust_test.go:58: problems=0 ok=0, want ONE problem for three reports of the same cause
--- FAIL: TestProxmoxTrust_UnknownCause (0.04s)
proxmox_trust_test.go:106: events = []
5 mutations, 0 not a red-proof