update security

This commit is contained in:
David Schroeder
2026-07-26 16:41:25 -05:00
parent 90b7b2c597
commit 81f65b5173
14 changed files with 869 additions and 5 deletions
+27
View File
@@ -80,6 +80,33 @@ func TestPackageAndAuditTemplatesExecute(t *testing.T) {
}
}
func TestFleetTemplateExecutes(t *testing.T) {
t.Parallel()
templates, err := parseTemplates(time.UTC)
if err != nil {
t.Fatal(err)
}
err = templates.ExecuteTemplate(io.Discard, "hosts.html", pageData{
Title: "Test",
Technician: &technician{DisplayName: "Technician"},
CurrentView: "hosts",
FleetHosts: []fleetHostRecord{{
InstallationID: "123e4567-e89b-42d3-a456-426614174000",
FirstSeenAt: time.Now(),
LastSeenAt: time.Now(),
LastEvent: "run_completed",
LastResult: "success",
ProxMenuVersion: "2026.7.26-7",
PVEVersion: "pve-manager/9.0.3",
OSVersion: "Debian GNU/Linux 13 (trixie)",
Architecture: "amd64",
}},
})
if err != nil {
t.Fatal(err)
}
}
func TestAuditTemplateUsesConfiguredTimeZone(t *testing.T) {
t.Parallel()
location, err := time.LoadLocation("America/Chicago")