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
Make agent artifact guard quote agnostic
rcourtman92c567e41da5
diff --git a/internal/unifiedresources/code_standards_test.go b/internal/unifiedresources/code_standards_test.goindex 4bd4e03d00..ac09abf556 100644--- a/internal/unifiedresources/code_standards_test.go+++ b/internal/unifiedresources/code_standards_test.go@@ -1977,6 +1977,7 @@ func TestV6AgentRegistrationArtifactsStayCanonical(t *testing.T) {artifacts := []struct {path stringrequiredSnippets []string+ requiredPatterns []*regexp.RegexpbannedPatterns []*regexp.Regexp}{{@@ -1990,7 +1991,9 @@ func TestV6AgentRegistrationArtifactsStayCanonical(t *testing.T) {),requiredSnippets: []string{"state.resources",- "type: 'unified'",+ },+ requiredPatterns: []*regexp.Regexp{+ regexp.MustCompile(`type:\s*['"]unified['"]`),},bannedPatterns: []*regexp.Regexp{regexp.MustCompile(`state\.hosts\b`),@@ -2032,6 +2035,11 @@ func TestV6AgentRegistrationArtifactsStayCanonical(t *testing.T) {t.Errorf("%s: missing required canonical v6 snippet %q", normalizedPath, snippet)}}+ for _, pattern := range artifact.requiredPatterns {+ if !pattern.MatchString(content) {+ t.Errorf("%s: missing required canonical v6 pattern %q", normalizedPath, pattern.String())+ }+ }for _, pattern := range artifact.bannedPatterns {matches := pattern.FindAllStringIndex(content, -1)