node-tools follows memberships from the grants part's state alone (issue 774) #54
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user