Commit 171bcbd6c9

171bcbd6c9eb98db96d0efdc3c4c8f3ebdd96d81

parent: b862e4a67c

Verified · cmc ci/build: success ci/test: success

cmc <hello@cleberg.net> · 2026-09-24 14:45 UTC

e2e: repo show assertions follow the field layout

Ref #254
e2e/import_test.go +2 −1
@@ -4,6 +4,7 @@ import (
44 "fmt"
55 "os"
66 "path/filepath"
7 "regexp"
78 "strings"
89 "testing"
910)
@@ -63,7 +64,7 @@ func TestRepoImport(t *testing.T) {
6364 t.Fatalf("imported HEAD = %s", head)
6465 }
6566 showOut, _, _ := inst.ssh(t, aliceKey, "", "repo", "show", "alice/mirror")
66 if !strings.Contains(showOut, "private") || !strings.Contains(showOut, "default: trunk") {
67 if !strings.Contains(showOut, "private") || !regexp.MustCompile(`default branch\s+trunk`).MatchString(showOut) {
6768 t.Fatalf("repo show after import: %s", showOut)
6869 }
6970
e2e/pages_test.go +2 −1
@@ -8,6 +8,7 @@ import (
88 "net/http"
99 "os"
1010 "path/filepath"
11 "regexp"
1112 "strings"
1213 "sync/atomic"
1314 "testing"
@@ -244,7 +245,7 @@ func TestPages(t *testing.T) {
244245 }
245246 // repo show lists it; removal stops serving.
246247 out, _, _ = inst.ssh(t, aliceKey, "", "repo", "show", "alice/site")
247 if !strings.Contains(out, "pages domains: docs.example.org") {
248 if !regexp.MustCompile(`pages domains\s+docs\.example\.org`).MatchString(out) {
248249 t.Fatalf("repo show missing domains:\n%s", out)
249250 }
250251 if _, _, code := inst.ssh(t, aliceKey, "", "repo", "domain", "remove", "alice/site", "docs.example.org"); code != 0 {