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.

Initialize the connection outcome map in namespace poll regressions

pulse-triage[bot]11d1620807ac
diff --git a/internal/monitoring/monitor_pbs_coverage_test.go b/internal/monitoring/monitor_pbs_coverage_test.go
index c362f7c6f4..140dabdf89 100644
--- a/internal/monitoring/monitor_pbs_coverage_test.go
+++ b/internal/monitoring/monitor_pbs_coverage_test.go
@@ -4,7 +4,6 @@ import (
"context"
"encoding/json"
"fmt"
- "github.com/rcourtman/pulse-go-rewrite/internal/recovery"
"net/http"
"net/http/httptest"
"os"
@@ -17,6 +16,7 @@ import (
"github.com/rcourtman/pulse-go-rewrite/internal/alerts"
"github.com/rcourtman/pulse-go-rewrite/internal/config"
"github.com/rcourtman/pulse-go-rewrite/internal/models"
+ "github.com/rcourtman/pulse-go-rewrite/internal/recovery"
"github.com/rcourtman/pulse-go-rewrite/internal/unifiedresources"
"github.com/rcourtman/pulse-go-rewrite/pkg/metrics"
"github.com/rcourtman/pulse-go-rewrite/pkg/pbs"
diff --git a/internal/monitoring/pbs_protection_observation_test.go b/internal/monitoring/pbs_protection_observation_test.go
index 93719797a1..679e991837 100644
--- a/internal/monitoring/pbs_protection_observation_test.go
+++ b/internal/monitoring/pbs_protection_observation_test.go
@@ -375,6 +375,7 @@ func newPBSNamespacePollFixture(t *testing.T) *pbsNamespacePollFixture {
{Name: "pbs-other", Host: server.URL, MonitorDatastores: true, MonitorBackups: true},
}}
m.lastPBSBackupPoll = make(map[string]time.Time)
+ m.pollStatusMap = make(map[string]*pollStatus)
return f
}