Verify assembled pipeline preflight workflow
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user