Rename mesh-control -> mesh-controller, substrate -> foundation
One name per thing, per the HQ glossary: the module/container/image/binary/repo becomes mesh-controller, the seat the-controller, and the store+broker pair the foundation (embedded base bundles, default template and example lock renamed with their go:embed directives). No behaviour change — a pure vocabulary rename. Claude-Session: https://claude.ai/code/session_01D6qtiYU3P9jk3pnAXyAFyx
This commit is contained in:
+10
-10
@@ -16,8 +16,8 @@ import {
|
||||
*/
|
||||
const HELD: HeldImage[] = [
|
||||
{
|
||||
requested: "mesh-control:development",
|
||||
repository: "mesh-control",
|
||||
requested: "mesh-controller:development",
|
||||
repository: "mesh-controller",
|
||||
reference: "sha256:" + "a".repeat(64),
|
||||
},
|
||||
{
|
||||
@@ -51,7 +51,7 @@ test("the repository is the reference without its tag", () => {
|
||||
*/
|
||||
test("only what is built here and published nowhere counts as ours", () => {
|
||||
for (const ours of [
|
||||
"mesh-control:development", "mesh-runtime-plex:development", "mesh-route-proxy:development",
|
||||
"mesh-controller:development", "mesh-runtime-plex:development", "mesh-route-proxy:development",
|
||||
"mesh-provision-postgres@sha256:" + "0".repeat(64),
|
||||
]) {
|
||||
assert.ok(isMeshBuilt(ours), `${ours} is one of ours and was not recognised`);
|
||||
@@ -61,7 +61,7 @@ test("only what is built here and published nowhere counts as ours", () => {
|
||||
"registry.example:5000/novox/www:latest",
|
||||
// A registry host in front of one of our names does NOT make it ours: it says somebody
|
||||
// published it, so the machine can fetch it from there like anything else.
|
||||
"registry.example:5000/mesh-control:development",
|
||||
"registry.example:5000/mesh-controller:development",
|
||||
]) {
|
||||
assert.ok(!isMeshBuilt(theirs), `${theirs} is not ours and was claimed`);
|
||||
}
|
||||
@@ -96,16 +96,16 @@ test("a third-party image is left exactly as the manifest wrote it", () => {
|
||||
});
|
||||
|
||||
test("a reference of ours that already carries a registry is still redirected", () => {
|
||||
// What the committed substrate bundle looks like: written for a target that had a registry.
|
||||
const before = `"image": "192.0.2.250:5000/mesh-control@sha256:${"e".repeat(64)}"`;
|
||||
// What the committed foundation bundle looks like: written for a target that had a registry.
|
||||
const before = `"image": "192.0.2.250:5000/mesh-controller@sha256:${"e".repeat(64)}"`;
|
||||
assert.equal(pinnedInto(before, HELD), `"image": "sha256:${"a".repeat(64)}"`);
|
||||
});
|
||||
|
||||
// A longer repository ending in a shorter one must not be half-replaced.
|
||||
test("a repository that ends in another one is not partly rewritten", () => {
|
||||
const before = `"image": "our-mesh-control@sha256:${"7".repeat(64)}"`;
|
||||
const before = `"image": "our-mesh-controller@sha256:${"7".repeat(64)}"`;
|
||||
assert.equal(pinnedInto(before, HELD), before,
|
||||
"'our-mesh-control' was rewritten because it ends in 'mesh-control'");
|
||||
"'our-mesh-controller' was rewritten because it ends in 'mesh-controller'");
|
||||
});
|
||||
|
||||
test("every image in a whole manifest is settled at once", () => {
|
||||
@@ -127,7 +127,7 @@ test("every image in a whole manifest is settled at once", () => {
|
||||
});
|
||||
|
||||
test("what a repository is held under can be asked for, and absence is not an empty string", () => {
|
||||
assert.equal(referenceFor(HELD, "mesh-control"), `sha256:${"a".repeat(64)}`);
|
||||
assert.equal(referenceFor(HELD, "mesh-controller"), `sha256:${"a".repeat(64)}`);
|
||||
assert.equal(referenceFor(HELD, "mesh-runtime-plex"), undefined);
|
||||
});
|
||||
|
||||
@@ -144,7 +144,7 @@ test("what is still a placeholder can be named", () => {
|
||||
*/
|
||||
test("an image the machine cannot fetch by itself is handed over", () => {
|
||||
for (const handed of [
|
||||
"mesh-control:development",
|
||||
"mesh-controller:development",
|
||||
"mesh-runtime-plex:development",
|
||||
`registry.example/novox/www@sha256:${"a".repeat(64)}`,
|
||||
"registry.example:5000/novox/photos-server:latest",
|
||||
|
||||
Reference in New Issue
Block a user