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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Keep atomic CORE fixture counters behind scenario pointers
pulse-triage[bot]9b20754e40b4
diff --git a/internal/truenas/core_realtime_memory_test.go b/internal/truenas/core_realtime_memory_test.goindex c82c50b5d7..185a5e710e 100644--- a/internal/truenas/core_realtime_memory_test.go+++ b/internal/truenas/core_realtime_memory_test.go@@ -345,21 +345,21 @@ func TestCORE13RealtimeMemoryFieldBoundaries(t *testing.T) {func TestCORE13RealtimeMemoryFailureKeepsReporting(t *testing.T) {for _, tc := range []struct {name string- scenario coreMemoryScenario+ scenario *coreMemoryScenarioauth, sub int32}{- {"authentication refusal", coreMemoryScenario{rejectAuth: true}, 1, 0},- {"subscription refusal", coreMemoryScenario{rejectSub: true}, 1, 1},- {"silent peer", coreMemoryScenario{silent: true}, 0, 0},- {"malformed handshake", coreMemoryScenario{malformed: true}, 0, 0},- {"message flood", coreMemoryScenario{flood: true}, 0, 0},- {"missing endpoint", coreMemoryScenario{noEndpoint: true}, 0, 0},- {"incomplete native frame", coreMemoryScenario{frame: []byte(`{"msg":"added","collection":"reporting.realtime","fields":{"zfs":{"arc_size":25668261968}}}`)}, 1, 1},+ {"authentication refusal", &coreMemoryScenario{rejectAuth: true}, 1, 0},+ {"subscription refusal", &coreMemoryScenario{rejectSub: true}, 1, 1},+ {"silent peer", &coreMemoryScenario{silent: true}, 0, 0},+ {"malformed handshake", &coreMemoryScenario{malformed: true}, 0, 0},+ {"message flood", &coreMemoryScenario{flood: true}, 0, 0},+ {"missing endpoint", &coreMemoryScenario{noEndpoint: true}, 0, 0},+ {"incomplete native frame", &coreMemoryScenario{frame: []byte(`{"msg":"added","collection":"reporting.realtime","fields":{"zfs":{"arc_size":25668261968}}}`)}, 1, 1},} {t.Run(tc.name, func(t *testing.T) {scenario := tc.scenarioscenario.restARC = 8 << 30- client := coreMemoryClient(t, &scenario, ClientConfig{APIKey: "synthetic-key", Username: "unused-user", Password: "unused-password", Timeout: 200 * time.Millisecond})+ client := coreMemoryClient(t, scenario, ClientConfig{APIKey: "synthetic-key", Username: "unused-user", Password: "unused-password", Timeout: 200 * time.Millisecond})start := time.Now()system, err := client.GetSystemTelemetry(context.Background())if err != nil || system == nil {