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.

Align snapshot kind regressions with supported discriminators

pulse-triage[bot]25a8d023b719
diff --git a/internal/recovery/mapper/proxmox/mapper_test.go b/internal/recovery/mapper/proxmox/mapper_test.go
index bbada31d39..19c0ec702f 100644
--- a/internal/recovery/mapper/proxmox/mapper_test.go
+++ b/internal/recovery/mapper/proxmox/mapper_test.go
@@ -949,7 +949,7 @@ func TestFromPVEStorageBackupsExplicitUnknownKindCannotBorrowSubject(t *testing.
}
func TestFromPVEGuestSnapshotsRetainsExplicitGuestKind(t *testing.T) {
- for _, kind := range []string{"qemu", " VM ", "lxc", " CT ", "container"} {
+ for _, kind := range []string{"qemu", " VM ", "lxc", " CT "} {
for _, liveType := range []unifiedresources.ResourceType{"", unifiedresources.ResourceTypeVM, unifiedresources.ResourceTypeSystemContainer} {
t.Run(kind+"/"+string(liveType), func(t *testing.T) {
now := time.Date(2026, 10, 28, 12, 0, 0, 0, time.UTC)
@@ -991,7 +991,7 @@ func TestFromPVEGuestSnapshotsRetainsExplicitGuestKind(t *testing.T) {
}
func TestFromPVEGuestSnapshotsUnknownKindDoesNotBorrowSubject(t *testing.T) {
- for _, kind := range []string{"unknown", " UNKNOWN ", "unsupported", "host"} {
+ for _, kind := range []string{"unknown", " UNKNOWN ", "unsupported", "host", "container"} {
for _, liveType := range []unifiedresources.ResourceType{unifiedresources.ResourceTypeVM, unifiedresources.ResourceTypeSystemContainer} {
t.Run(kind+"/"+string(liveType), func(t *testing.T) {
now := time.Date(2026, 10, 28, 12, 0, 0, 0, time.UTC)