CAT-N1: the keeper's bus declares keeps, the one key more ADR 0626 §1 allows the bus module's keeper
Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.novox.be/novox/mesh-sdk/go/catalogue"
|
||||
"os"
|
||||
"slices"
|
||||
"strings"
|
||||
@@ -220,6 +221,14 @@ func TestTheBussManifestMountsItsProgramsIntoTheUpstreamImage(t *testing.T) {
|
||||
health["kind"] != "tool" || health["tool"] != "nats_keeper_health" {
|
||||
t.Errorf("the keeper is %v: a process of the tools bundle, run as keep, keeping asked and requests, judged by nats_keeper_health", keeper)
|
||||
}
|
||||
// Its bus declares keeps, the one key more ADR 0626 §1 allows it, read through the SDK as the grant composition reads it.
|
||||
var whole catalogue.Manifest
|
||||
if err := json.Unmarshal(raw, &whole); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if b := whole.ProcessBuses()["keeper"]; !b.Keeps {
|
||||
t.Errorf("the keeper's bus declares no keeps, so it would be composed no bus state to keep (ADR 0626 §1): %+v", b)
|
||||
}
|
||||
if h, _ := server["health"].(map[string]any); h["kind"] != "tcp" || h["endpoint"] != "bus" {
|
||||
t.Errorf("the server's health is %v: tcp on bus, the check the keeper's tool check stands beside", server["health"])
|
||||
}
|
||||
|
||||
@@ -247,6 +247,7 @@
|
||||
"requests"
|
||||
],
|
||||
"asks": true,
|
||||
"keeps": true,
|
||||
"invokes": [
|
||||
"mesh-delivery-indexer.indexer_bus_state",
|
||||
"seat:mesh-hand-acts.hand-act"
|
||||
|
||||
Reference in New Issue
Block a user