Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Use a current Patrol mode in the telemetry snapshot fixture

rcourtman8051ab9f2d74
diff --git a/pkg/server/telemetry_pulse_intelligence_test.go b/pkg/server/telemetry_pulse_intelligence_test.go
index a85df7e489..c4a0721fba 100644
--- a/pkg/server/telemetry_pulse_intelligence_test.go
+++ b/pkg/server/telemetry_pulse_intelligence_test.go
@@ -134,15 +134,15 @@ func TestApplyPulseIntelligenceTelemetrySnapshot_AggregatesContentFreeLoopCounts
ApprovedActionRefusalsContract30d: 9,
ApprovedActionRefusalsOther30d: 10,
VerifiedFindingResolutions30d: 1,
- PatrolAutonomyLevel: "assisted",
+ PatrolAutonomyLevel: "approval",
}
applyPulseIntelligenceTelemetrySnapshot(&snap, persistence, cfg, actions, now)
if snap.PulseIntelligenceAssistantAICalls30d != 3 {
t.Fatalf("assistant AI calls = %d, want 3", snap.PulseIntelligenceAssistantAICalls30d)
}
- if snap.PulseIntelligencePatrolAutonomyLevel != "assisted" {
- t.Fatalf("patrol autonomy level = %q, want assisted", snap.PulseIntelligencePatrolAutonomyLevel)
+ if snap.PulseIntelligencePatrolAutonomyLevel != "approval" {
+ t.Fatalf("patrol autonomy level = %q, want approval", snap.PulseIntelligencePatrolAutonomyLevel)
}
if snap.AIProviderClass != telemetry.AIProviderClassNone {
t.Fatalf("provider class default = %q, want none", snap.AIProviderClass)