|
|
|
|
@@ -349,7 +349,7 @@ func TestRunUsesOneInjectedIdentityForDebugOutputAndManifest(t *testing.T) {
|
|
|
|
|
t.Fatalf("debug invocation session = %q, want %q", invocation.SessionID, wantSessionID)
|
|
|
|
|
}
|
|
|
|
|
report := readStateTestRunReport(t, debugPath)
|
|
|
|
|
if !report.Succeeded || report.RunID != runID || report.PipelineID != "sample" || report.OutputPath != outputPath || report.DebugPath != debugPath || report.OutputCount != 1 || report.RejectedCount != 0 || report.WarningCount != 0 || report.ValidationStatus != "approved" {
|
|
|
|
|
if !report.Succeeded || report.RunID != runID || report.PipelineID != "sample" || report.OutputPath != outputPath || report.DebugPath != debugPath || report.OutputCount != 1 || report.RejectedCount != 0 || report.WarningGroupCount != 0 || report.WarningOccurrenceCount != 0 || report.DiagnosticGroupCount != 0 || report.DiagnosticOccurrenceCount != 0 || report.DiagnosticsTruncated || report.ValidationStatus != "approved" {
|
|
|
|
|
t.Fatalf("success report = %#v", report)
|
|
|
|
|
}
|
|
|
|
|
if !strings.Contains(result.stdout, "outputs=1 rejected=0") {
|
|
|
|
|
@@ -431,7 +431,7 @@ func TestRunWritesTerminalArtifactsForResolutionPipelineAndOutputFailures(t *tes
|
|
|
|
|
bundlePath := onlyChildDir(t, roots.debug)
|
|
|
|
|
runID := filepath.Base(bundlePath)
|
|
|
|
|
report := readStateTestRunReport(t, bundlePath)
|
|
|
|
|
if report.Succeeded || report.RunID != runID || report.PipelineID != tc.pipelineID || report.OutputPath != filepath.Join(roots.output, runID) || report.DebugPath != bundlePath || report.OutputCount != tc.wantOutputs || report.RejectedCount != 0 || report.WarningCount != 0 || report.ValidationStatus != tc.wantValidation {
|
|
|
|
|
if report.Succeeded || report.RunID != runID || report.PipelineID != tc.pipelineID || report.OutputPath != filepath.Join(roots.output, runID) || report.DebugPath != bundlePath || report.OutputCount != tc.wantOutputs || report.RejectedCount != 0 || report.WarningGroupCount != 0 || report.WarningOccurrenceCount != 0 || report.DiagnosticGroupCount != 0 || report.DiagnosticOccurrenceCount != 0 || report.DiagnosticsTruncated || report.ValidationStatus != tc.wantValidation {
|
|
|
|
|
t.Fatalf("failure report = %#v", report)
|
|
|
|
|
}
|
|
|
|
|
errorLog, err := os.ReadFile(filepath.Join(bundlePath, "summary", "error.log"))
|
|
|
|
|
@@ -454,7 +454,7 @@ func TestRunRetainsPartialPipelineOutcomeInFailureSummary(t *testing.T) {
|
|
|
|
|
}
|
|
|
|
|
bundlePath := onlyChildDir(t, roots.debug)
|
|
|
|
|
report := readStateTestRunReport(t, bundlePath)
|
|
|
|
|
if report.Succeeded || report.OutputCount != 0 || report.RejectedCount != 0 || report.WarningCount != 1 || report.ValidationStatus != "failed" {
|
|
|
|
|
if report.Succeeded || report.OutputCount != 0 || report.RejectedCount != 0 || report.WarningGroupCount != 1 || report.WarningOccurrenceCount != 1 || report.DiagnosticGroupCount != 0 || report.DiagnosticOccurrenceCount != 0 || report.DiagnosticsTruncated || report.ValidationStatus != "failed" {
|
|
|
|
|
t.Fatalf("partial failure report = %#v", report)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|