diff --git a/modules/mesh-delivery-indexer/judge/judge_test.go b/modules/mesh-delivery-indexer/judge/judge_test.go index ab91afb90..73649c782 100644 --- a/modules/mesh-delivery-indexer/judge/judge_test.go +++ b/modules/mesh-delivery-indexer/judge/judge_test.go @@ -27,9 +27,10 @@ func TestTheJudge(t *testing.T) { want: map[string]string{"a": `secret-`}}, {name: "an unknown field", raws: map[string]string{"a": `{"module":"a","version":"1.0","a-field-from-later":1}`}, want: map[string]string{"a": `"a-field-from-later"`}}, - // H-A-465: the take-in sets a top-level word it does not know aside (ForInputs); the judgement still refuses it. - {name: "a word a newer SDK adds", raws: map[string]string{"a": `{"module":"a","version":"1.0","class":"core"}`}, - want: map[string]string{"a": `"class"`}}, + // H-A-465: the take-in sets a top-level word it does not know aside (ForInputs); the judgement still refuses it. The + // word is one no SDK knows: class, the word of H-A-465's night, is known since H2. + {name: "a word a newer SDK adds", raws: map[string]string{"a": `{"module":"a","version":"1.0","zzz-unknown-word":"core"}`}, + want: map[string]string{"a": `"zzz-unknown-word"`}}, // Design 47 G §23, §28: a step's status is kept in the registration and never in a manifest. {name: "a manifest naming a step's status", raws: map[string]string{"a": `{"module":"a","version":"1.0","policy":{"lint":"bypass"}}`}, want: map[string]string{"a": `"policy"`}},