Verify assembled pipeline preflight workflow

This commit is contained in:
2026-11-28 04:32:40 +00:00
parent 71239b6fbb
commit 71cefdd154
3 changed files with 126 additions and 0 deletions

View File

@@ -55,6 +55,11 @@ func TestPreflightRoutesAndReports(t *testing.T) {
if err != nil || !report.Ready || report.Pipeline != "demo" || len(report.Checks) == 0 {
t.Fatalf("report=%+v error=%v output=%s", report, err, out.String())
}
for _, check := range report.Checks {
if check.ID == "reachability" || check.ID == "authentication" || check.Result == "warning" {
t.Fatalf("unavailable HTTP diagnostics created a check or warning: %+v", check)
}
}
}
if client.calls != 2 || probe.parsed != 2 {
t.Fatalf("calls=%d parses=%d", client.calls, probe.parsed)