Files
mesh-contracts/seats/mesh-module-assigner/fixtures/states.json
T
jschoubben 5e95cbed59 A-316: the assigner's candidate gains added, the version and parts the want it would write carries
The state candidates' value (CandidatesByProposalNodeValue) gains `added`, by module name, each an AddedModule
with `version` and `parts` in the want's own forms. It is a copy of the two properties of the seat mesh-wants'
state wants, because the seat-definition format cannot reuse another repository's seat's forms (includes take only
parts/ of the same repository, and a part holds no state value); a fixture holds both to the want's wire.
Regenerated with seatgen. The node names the first round-2 pass left in fixtures lines equal to base lines are
role names now, the generated tests with them.

Builds: design 47 G A-316 (corrected, hq #594), §626
Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
2026-11-12 22:48:01 +01:00

176 lines
3.7 KiB
JSON

[
{
"name": "a node's key",
"of": "state:assignments/<node>.node",
"given": {
"v": 1,
"node": "ace",
"decided": {
"address": "10.0.0.2"
},
"modules": [
{
"module": "plex",
"digest": "0123456789abcdef"
}
]
}
},
{
"name": "a node that came with a tunnel",
"of": "state:assignments/<node>.node",
"given": {
"v": 1,
"node": "ace",
"decided": {
"tunnel": {
"interface": "wg0",
"port": 51820,
"public-key": "k1",
"peers": [
{
"public-key": "k2",
"address": "10.77.0.9/32"
}
]
}
},
"modules": []
}
},
{
"name": "a module's key",
"of": "state:assignments/<node>.<module>",
"given": {
"v": 1,
"node": "ace",
"placed": {
"module": "plex",
"ports": {
"32400": 32400
},
"bindings": {
"database": {
"node": "ace",
"module": "postgres"
}
}
}
}
},
{
"name": "a module's key on a watched branch and a build",
"of": "state:assignments/<node>.<module>",
"given": {
"v": 1,
"node": "home-server",
"placed": {
"module": "plex",
"branch": "beta",
"build": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
},
{
"name": "an open proposal",
"of": "state:proposals/<proposal>",
"given": {
"id": "p-20261105t120000-aabbccdd",
"by": "operator",
"why": "move plex",
"at": "2026-11-05T12:00:00Z",
"changes": [
{
"op": "place",
"node": "ace",
"module": "plex",
"ports": {
"32400": 32400
}
}
],
"base": {
"ace": 3
},
"state": "answering"
}
},
{
"name": "a proposal placing a module on a watched branch at an earlier build",
"of": "state:proposals/<proposal>",
"given": {
"id": "p-20261110t120000-aabbccdd",
"by": "operator",
"why": "run nats from beta, back one build",
"at": "2026-11-10T12:00:00Z",
"changes": [
{
"op": "place",
"node": "home-server",
"module": "nats",
"branch": "beta",
"build": "src2:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
],
"base": {
"home-server": 3
},
"state": "answering"
}
},
{
"name": "a candidate, with the modules it adds and what their wants would carry",
"of": "state:candidates/<proposal>.<node>",
"given": {
"v": 1,
"proposal": "p-20261105t120000-aabbccdd",
"added": {
"mesh-build-go": {
"version": "1.4.0",
"parts": {
"mesh-build-go:go-binary": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
}
}
},
{
"name": "the bound on an answer",
"of": "state:pulses/answer.<proposal>.<node>",
"given": {
"v": 1
}
},
{
"name": "a seat held once",
"of": "state:seat-holders/<seat>",
"given": {
"v": 1,
"seat": "mesh-module-assigner",
"scope": "mesh",
"holders": [
{
"module": "mesh-delivery-assigner",
"node": "novox"
}
]
}
},
{
"name": "a node seat on a node",
"of": "state:seat-holders/<seat>.<node>",
"given": {
"v": 1,
"seat": "node-files",
"scope": "node",
"node": "ace",
"holders": [
{
"module": "node-files",
"node": "ace"
}
]
}
}
]