Update raw output files and manifests
This commit is contained in:
@@ -1034,6 +1034,12 @@ func TestRunStopsRetryAfterConfiguredAttemptsAndRecordsAttemptCount(t *testing.T
|
||||
if len(modules.extractors["extract-alpha"].requests) != 4 {
|
||||
t.Fatalf("extract requests = %d, want two attempts per chunk", len(modules.extractors["extract-alpha"].requests))
|
||||
}
|
||||
if len(output.Manifest.RejectedOutputs) != 2 {
|
||||
t.Fatalf("manifest rejected outputs = %#v, want rejected records", output.Manifest.RejectedOutputs)
|
||||
}
|
||||
if output.Manifest.RejectedOutputs[0].AttemptCount != 2 || output.Manifest.RejectedOutputs[0].ChunkID != "chunk-0" {
|
||||
t.Fatalf("manifest rejected output = %#v, want final attempt count and chunk provenance", output.Manifest.RejectedOutputs[0])
|
||||
}
|
||||
}
|
||||
|
||||
func TestRunContextCancellationStopsRetries(t *testing.T) {
|
||||
@@ -1292,6 +1298,13 @@ func TestRunManifestIncludesPipelineAndLaneDetails(t *testing.T) {
|
||||
if manifest.ValidationStatus != "approved" {
|
||||
t.Fatalf("ValidationStatus = %q, want approved", manifest.ValidationStatus)
|
||||
}
|
||||
if len(manifest.NormalizedOutputs) != 1 {
|
||||
t.Fatalf("NormalizedOutputs = %#v, want one raw output manifest", manifest.NormalizedOutputs)
|
||||
}
|
||||
normalized := manifest.NormalizedOutputs[0]
|
||||
if normalized.LaneID != "alpha" || normalized.ModuleKey != "normalize" || normalized.MediaType != "application/json" || normalized.Schema.ID != "runner.raw" {
|
||||
t.Fatalf("normalized output manifest = %#v, want lane/module/media/schema provenance", normalized)
|
||||
}
|
||||
if len(manifest.ArtifactLanes) != 1 {
|
||||
t.Fatalf("len(ArtifactLanes) = %d, want 1", len(manifest.ArtifactLanes))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user