test: make portable fixtures optional and cover xigmanas
This commit is contained in:
@@ -43,11 +43,11 @@ func TestHandleChartCurrent_RendersCurrentReanimatorSnapshot(t *testing.T) {
|
||||
if !strings.Contains(body, "SYS-TEST - SN123") {
|
||||
t.Fatalf("expected chart title in body, got %q", body)
|
||||
}
|
||||
if !strings.Contains(body, `/chart/static/view.css`) {
|
||||
t.Fatalf("expected rewritten chart css path, got %q", body)
|
||||
if !strings.Contains(body, `static/view.css`) {
|
||||
t.Fatalf("expected chart css path, got %q", body)
|
||||
}
|
||||
if !strings.Contains(body, `/chart/static/view.js`) {
|
||||
t.Fatalf("expected rewritten chart js path, got %q", body)
|
||||
if !strings.Contains(body, `static/view.js`) {
|
||||
t.Fatalf("expected chart js path, got %q", body)
|
||||
}
|
||||
if !strings.Contains(body, "Snapshot Metadata") {
|
||||
t.Fatalf("expected rendered chart output, got %q", body)
|
||||
|
||||
@@ -12,6 +12,9 @@ import (
|
||||
func TestReanimatorExport_RedfishExampleDoesNotDuplicateCPUs(t *testing.T) {
|
||||
payload, err := os.ReadFile(filepath.Join("..", "..", "example", "2026-03-11 (SYS-821GE-TNHR) - A514359X5C08846.zip"))
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
t.Skip("optional example bundle is not present")
|
||||
}
|
||||
t.Fatalf("read example bundle: %v", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user