update security
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user