mesh/delivery merged: source.main moved to novox/mesh-controller@c58b311ea774
mesh/delivery-group group feat/072-moves merged: every member is merged
mesh/check failed: shanks: the check of novox/mesh-controller#487 failed: go mod download in modules/route-proxy: go: git.novox.be/novox/mesh-controll…
The controller is being removed, so its root module goes back to origin/main's mesh-sdk pin (2da0de7) and
testdata/beside's capture; route-proxy keeps its own pins. Its one functional change stays the account issue:
- Before the grants part's take-over (its key user-list.sealed not saying FollowGrants) the bus loads the
controller's list, whose hashes come only from its store, so the controller mints as before and hands every
account it mints, covered or not, to an installed vault at once: no account waits on a node reporting its hash.
- From the take-over it forwards the issue to the vault's issue-account (d791052f) and mints nothing.
And the controller no longer declares or asserts the ASSIGNMENTS stream, which the bus module's tools delete at the
lease write and nothing may make again (research 072 row 33); the verified-sender re-issue stops once it is gone.
Research 072 piece: the gap "vault mints after the lease", the minting piece moves to the vault from the take-over.
48 lines
1.7 KiB
Go
48 lines
1.7 KiB
Go
package broker
|
|
|
|
import (
|
|
"slices"
|
|
"testing"
|
|
|
|
"git.novox.be/novox/mesh-sdk/go/catalogue"
|
|
)
|
|
|
|
// The catalogue's list of the mesh's own stream names, which a module's stream may not take, is the broker's
|
|
// own list (novox/hq ADR 0363 §1): read from MeshStreams, so a stream added there cannot be forgotten there.
|
|
//
|
|
// **The names of streams the mesh no longer asserts stay reserved** (R4g, ADR 0525 clause 6): the pull requests' two check
|
|
// queues are left on the bus until a cleanup removes them, and no module may take their names meanwhile. So the catalogue
|
|
// reserves every name of the broker's own, and may reserve these retired ones beside them.
|
|
func TestTheCataloguesReservedStreamNamesAreTheMeshsOwn(t *testing.T) {
|
|
// And ASSIGNMENTS (research 072 row 33): the bus module's tools delete it at the lease write, and the controller
|
|
// asserts it no more, so it is never made again.
|
|
retired := []string{"CHECKS_OTHER", "CHECKS_READY", "ASSIGNMENTS"}
|
|
var own []string
|
|
for _, s := range MeshStreams() {
|
|
own = append(own, s.Name)
|
|
}
|
|
reserved := append([]string(nil), catalogue.MeshStreamNames...)
|
|
slices.Sort(own)
|
|
slices.Sort(reserved)
|
|
var extra []string
|
|
for _, name := range reserved {
|
|
if !slices.Contains(own, name) {
|
|
extra = append(extra, name)
|
|
}
|
|
}
|
|
var missing []string
|
|
for _, name := range own {
|
|
if !slices.Contains(reserved, name) {
|
|
missing = append(missing, name)
|
|
}
|
|
}
|
|
for _, name := range extra {
|
|
if !slices.Contains(retired, name) {
|
|
t.Errorf("the catalogue reserves %s, which the broker neither asserts nor names retired", name)
|
|
}
|
|
}
|
|
if len(missing) > 0 {
|
|
t.Fatalf("the broker's own streams %v are not reserved by the catalogue (it reserves %v)", missing, reserved)
|
|
}
|
|
}
|