R1 binding-said-again: a created heard again with a day count or an operation more is written again

Builds: design 47 H2 H-A-685 (3); row R1 (the field comes with mesh-sdk S4)
This commit is contained in:
2026-11-25 17:13:51 +01:00
parent 14208c808c
commit 13485c371e
+16
View File
@@ -3352,6 +3352,22 @@ func TestGrants(t *testing.T) {
if !hear("mesh.seat.mesh-broker.event.created", first) || hear("mesh.seat.mesh-broker.event.created", first) {
t.Fatal("created: not kept once")
}
// H-A-685 (3): a created heard again with a day count of ended instances more, or one operation more, is another binding and
// is written again, the bindings being compared whole.
days := first
days.EndedDays = 30
if !hear("mesh.seat.mesh-broker.event.created", days) || hear("mesh.seat.mesh-broker.event.created", days) {
t.Fatal("created with ended-days more: not rewritten once")
}
more := days
more.Types = []catalogue.LedgerType{{Name: "act", Operations: []catalogue.LedgerOperation{{Name: "open"}}}}
if !hear("mesh.seat.mesh-broker.event.created", more) {
t.Fatal("created with a type: not rewritten")
}
more.Types = []catalogue.LedgerType{{Name: "act", Operations: []catalogue.LedgerOperation{{Name: "open"}, {Name: "end"}}}}
if !hear("mesh.seat.mesh-broker.event.created", more) {
t.Fatal("created with one operation more: not rewritten")
}
b.assign("b", "mod-x")
p.Compose()
for _, key := range []string{"a.mod-x", "b.mod-x"} {