Share typed publication completion evidence
This commit is contained in:
@@ -208,11 +208,15 @@ func TestCommittedPublishOutputOutcomesRecognizesAllStates(t *testing.T) {
|
||||
for _, status := range statuses {
|
||||
items = append(items, map[string]any{"source": "source." + status, "status": status})
|
||||
}
|
||||
items = append(items, "malformed", map[string]any{"source": "invalid", "status": "unknown"})
|
||||
m := &manifest.Manifest{Stages: map[string]*manifest.StageRecord{
|
||||
"publish": {Metadata: map[string]any{"publish_output_outcomes": items}},
|
||||
}}
|
||||
|
||||
got := committedPublishOutputOutcomes(m)
|
||||
if len(got) != len(statuses) {
|
||||
t.Fatalf("unexpected outcomes = %#v", got)
|
||||
}
|
||||
for _, status := range statuses {
|
||||
if got["source."+status] != status {
|
||||
t.Fatalf("outcomes = %#v, missing %q", got, status)
|
||||
|
||||
Reference in New Issue
Block a user