Files
mesh-sdk/go/catalogue/test_seats_test.go
T
jschoubben 0d3a10ff20 catalogue: the registry reference forms and ArtifactSweepSeat leave for the registry clients and the sweep seat's contract; seat-names keeps one rule's seat (S-8; issue 1966)
Resolve keeps its own address strip (kept, ADR 0155), which needs no seat name. The one seat name left is
ManifestNeeds' store holder (ADR 0632 §2), beside its rule in manifest_reads.go.

Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
2026-11-05 17:38:04 +01:00

39 lines
1.6 KiB
Go

package catalogue
import "git.novox.be/novox/mesh-sdk/go/seatlist/seatlisttest"
// defaultSeats is the list the tests start from (seatlisttest: the contracts modules' definitions, read as a host reads
// them from the bus, ADR 0635 §1), and DefaultSeats gives a copy of it for a test to restore.
var defaultSeats = func() []Seat {
list := SeatsFromDefinitions(seatlisttest.Definitions())
UseSeats(list)
return list
}()
// DefaultSeats is the tests' seat list.
func DefaultSeats() []Seat { return append([]Seat(nil), defaultSeats...) }
// The whole seats' names, which the tests use and the package does not (ADR 0634 §4; ADR 0613 §5 refuses them in
// non-test code).
const (
CatalogSeat = "mesh-catalog"
CheckerSeat = "mesh-delivery-checker"
EnrolmentSeat = "mesh-node-enroller"
PlacementSeat = "mesh-module-assigner"
DeliverySeat = "mesh-delivery"
WantsSeat = "mesh-wants"
HandActsSeat = "mesh-hand-acts"
ConditionsSeat = "mesh-conditions"
WatchdogsSeat = "mesh-watchdogs"
SelfCheckSeat = "mesh-self-check"
HealersSeat = "mesh-healers"
VaultSeat = "mesh-vault"
ProvisionerSeat = "mesh-provisioner"
BrokerSeat = "mesh-broker"
EngineSeat = "node-engine"
NpmPackageRegistrySeat = "npm-package-registry"
GoPackageRegistrySeat = "go-package-registry"
ContainerImageRegistrySeat = "container-image-registry"
OciArtifactRegistrySeat = "oci-artifact-registry"
)