Feature 57 (config and provisioning): release the catalogue, the reviewed release branch merged with main, on top of main

This commit is contained in:
2026-10-16 09:42:45 +00:00
parent ee1b15d7f0
commit 0260ae92f6
646 changed files with 37611 additions and 1861 deletions
+15 -3
View File
@@ -31,10 +31,22 @@ func TestTheArchivePlacesExactlyOneFile(t *testing.T) {
if r["type"] != "archive" || r["path"] != "/usr/local/bin" {
t.Fatalf("its resource is %v", r)
}
if len(m.Build.Artifacts) != 1 {
t.Fatalf("it builds %d artifacts", len(m.Build.Artifacts))
// The build has a second artifact, the files archive the controller reads the templates back from; it
// places no file. The artifact the resource unpacks is the one that does.
var a map[string]any
for _, candidate := range m.Build.Artifacts {
if candidate["name"] == r["artifact"] {
if a != nil {
t.Fatalf("two artifacts are named %v", r["artifact"])
}
a = candidate
} else if candidate["kind"] != "archive" || candidate["from"] != "files" {
t.Fatalf("it builds %v beside the artifact that places the file", candidate)
}
}
if a == nil {
t.Fatalf("no artifact is named %v", r["artifact"])
}
a := m.Build.Artifacts[0]
if a["name"] != r["artifact"] || a["kind"] != "bundle" || a["language"] != "go" || a["binary"] != "mesh-cli" ||
a["from"] != "cmd/mesh-cli" {
t.Fatalf("its artifact is %v, unpacked as %v", a, r["artifact"])