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:
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
// catalogueWith writes a fake catalogue checkout holding one module's manifest.
|
||||
//
|
||||
// A fixture here rather than the real catalogue, unlike the substrate example the rewrite tests
|
||||
// A fixture here rather than the real catalogue, unlike the foundation example the rewrite tests
|
||||
// use: the catalogue is a different repository on a different branch, and a test that read it
|
||||
// would pass or fail according to what somebody else had checked out.
|
||||
func catalogueWith(t *testing.T, module, manifest string) string {
|
||||
@@ -100,7 +100,7 @@ func TestARegistryContainerThatIsUpIsNotARegistryThatServes(t *testing.T) {
|
||||
|
||||
_, err := InstallRegistry(context.Background(),
|
||||
installing(t, catalogueWith(t, RegistryModule, upstreamRegistryManifest)),
|
||||
deps, controlPlane{container: "temp-mesh-control", run: runtime.run, timeout: time.Second},
|
||||
deps, controlPlane{container: "temp-mesh-controller", run: runtime.run, timeout: time.Second},
|
||||
func(string) {})
|
||||
if err == nil {
|
||||
t.Fatal("a registry whose container is up and which answers 500 was accepted")
|
||||
@@ -124,7 +124,7 @@ func TestARegistryThatAnswersIsAccepted(t *testing.T) {
|
||||
|
||||
out, err := InstallRegistry(context.Background(),
|
||||
installing(t, catalogueWith(t, RegistryModule, upstreamRegistryManifest)),
|
||||
deps, controlPlane{container: "temp-mesh-control", run: runtime.run, timeout: time.Second},
|
||||
deps, controlPlane{container: "temp-mesh-controller", run: runtime.run, timeout: time.Second},
|
||||
func(string) {})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -159,7 +159,7 @@ func TestARegistryManifestThatWantsBuildingIsRefused(t *testing.T) {
|
||||
runtime := &asked{answer: aMeshThatAgrees(nil)}
|
||||
_, err := InstallRegistry(context.Background(),
|
||||
installing(t, catalogueWith(t, RegistryModule, wants)),
|
||||
Deps{Run: runtime.run}, controlPlane{container: "temp-mesh-control", run: runtime.run},
|
||||
Deps{Run: runtime.run}, controlPlane{container: "temp-mesh-controller", run: runtime.run},
|
||||
func(string) {})
|
||||
if err == nil {
|
||||
t.Fatal("a registry manifest naming an image the mesh would have to build was accepted")
|
||||
@@ -178,7 +178,7 @@ func TestACatalogueThatIsNotThereIsSaidPlainly(t *testing.T) {
|
||||
runtime := &asked{answer: aMeshThatAgrees(nil)}
|
||||
_, err := InstallRegistry(context.Background(),
|
||||
installing(t, filepath.Join(t.TempDir(), "nowhere")),
|
||||
Deps{Run: runtime.run}, controlPlane{container: "temp-mesh-control", run: runtime.run},
|
||||
Deps{Run: runtime.run}, controlPlane{container: "temp-mesh-controller", run: runtime.run},
|
||||
func(string) {})
|
||||
if err == nil {
|
||||
t.Fatal("a catalogue that does not exist was accepted")
|
||||
@@ -188,7 +188,7 @@ func TestACatalogueThatIsNotThereIsSaidPlainly(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// A refusal from the control plane is repeated verbatim. mesh-control refuses in paragraphs —
|
||||
// A refusal from the control plane is repeated verbatim. mesh-controller refuses in paragraphs —
|
||||
// "nothing provides route, wanted by registry" — and an installer that reported "exit status 1"
|
||||
// would throw away the only thing a person can act on.
|
||||
func TestWhatTheMeshRefusedIsRepeated(t *testing.T) {
|
||||
@@ -202,7 +202,7 @@ func TestWhatTheMeshRefusedIsRepeated(t *testing.T) {
|
||||
|
||||
_, err := InstallRegistry(context.Background(),
|
||||
installing(t, catalogueWith(t, RegistryModule, upstreamRegistryManifest)),
|
||||
Deps{Run: runtime.run}, controlPlane{container: "temp-mesh-control", run: runtime.run,
|
||||
Deps{Run: runtime.run}, controlPlane{container: "temp-mesh-controller", run: runtime.run,
|
||||
timeout: time.Second}, func(string) {})
|
||||
if err == nil {
|
||||
t.Fatal("a push the mesh refused was reported as successful")
|
||||
|
||||
Reference in New Issue
Block a user