diff --git a/node-tools/internal/provide/provide_test.go b/node-tools/internal/provide/provide_test.go index 89fd480..216e1ef 100644 --- a/node-tools/internal/provide/provide_test.go +++ b/node-tools/internal/provide/provide_test.go @@ -194,3 +194,19 @@ func TestOnlyTheMachinesRuntimeStartsTheHelper(t *testing.T) { Start(nil, c.module, c.node, time.Second, said.Logf)() } } + +// 774/S33 (ADR 0571 clause 13): this manifest, read as the lease write's check reads it, is not refused at the write: it +// reads and invokes nothing of the controller and consumes nothing of it. +func TestTheManifestIsNotRefusedAtTheLeaseWrite(t *testing.T) { + raw, err := os.ReadFile("../../module.json") + if err != nil { + t.Fatal(err) + } + m, err := catalogue.Decode(raw) + if err != nil { + t.Fatal(err) + } + if refused := catalogue.ManifestRefusals(map[string]catalogue.Manifest{Module: m}, catalogue.PhaseWrite); len(refused) != 0 { + t.Errorf("the lease write's check refuses node-tools' manifest: %v", refused) + } +}