Grants: every module is granted its own takeins durable on the events stream
A module that hears take-in.taken behind a long run of other events hears it late; it now hears it on a durable of its own, <node>_<module>_takeins, which it makes itself. Every module principal, on its own account or carried by a tool runner, is granted the create, information, pull and acknowledgement of that one name on EVENTS, none special-cased. Builds: design 47 H2 H-A-500 (b) and its addenda (2), third addendum (Q1)
This commit is contained in:
@@ -1546,7 +1546,9 @@ func theToolRunnerHearsEveryEvent(t *testing.T) {
|
||||
}
|
||||
}
|
||||
for _, s := range p.Publish {
|
||||
if strings.Contains(s, "LEDGER") || strings.HasPrefix(s, "$JS.ACK.") {
|
||||
// A module's own takeins durable on the shared events stream is no restricted stream (H-A-500 (b)).
|
||||
takeIns := strings.HasPrefix(s, "$JS.ACK."+EventsStream+".") && strings.HasSuffix(s, TakeInsSuffix+".>")
|
||||
if strings.Contains(s, "LEDGER") || (strings.HasPrefix(s, "$JS.ACK.") && !takeIns) {
|
||||
t.Errorf("the tool runner's runtime may %s on the restricted stream", s)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user