Self-upgrade installer: genesis pivot, rename, adopt store+broker #13
@@ -10,7 +10,12 @@ import (
|
||||
)
|
||||
|
||||
// RegistryModule is the module that provides the mesh's artifact store.
|
||||
const RegistryModule = "registry"
|
||||
//
|
||||
// **Named for the software, not the job.** The job is `artifact-store`, which is the provision this
|
||||
// module offers; the software is Distribution, the OCI reference implementation. Calling the module
|
||||
// `registry` named neither — and promised that any registry could sit there, which is the false
|
||||
// genericity the naming rule forbids (novox/hq ADR 0040).
|
||||
const RegistryModule = "distribution"
|
||||
|
||||
// registryResource is the id of the resource in that module's manifest that runs the registry.
|
||||
// What the container is CALLED is read from the manifest rather than assumed, because the name is
|
||||
|
||||
@@ -35,7 +35,7 @@ func catalogueWith(t *testing.T, module, manifest string) string {
|
||||
}
|
||||
|
||||
const upstreamRegistryManifest = `{
|
||||
"module": "registry",
|
||||
"module": "distribution",
|
||||
"version": "1",
|
||||
"provides": [{"name": "artifact-store", "scope": "mesh"}],
|
||||
"capabilities": ["container-runtime"],
|
||||
@@ -137,8 +137,8 @@ func TestARegistryThatAnswersIsAccepted(t *testing.T) {
|
||||
}
|
||||
// Registered, assigned and pushed, through the same three commands a person types.
|
||||
for _, wanted := range []string{
|
||||
"module add /registry-module.json",
|
||||
"assign anchor registry",
|
||||
"module add /distribution-module.json",
|
||||
"assign anchor distribution",
|
||||
"push anchor",
|
||||
} {
|
||||
if !runtime.ran(wanted) {
|
||||
|
||||
Reference in New Issue
Block a user