diff --git a/modules/distribution/internal/holder/holder_test.go b/modules/distribution/internal/holder/holder_test.go index e0820d49f..c428e942b 100644 --- a/modules/distribution/internal/holder/holder_test.go +++ b/modules/distribution/internal/holder/holder_test.go @@ -223,6 +223,7 @@ const builder = "ace.mesh-build-go" // TestTheHolderOfTheTwoImageSeats holds design 51's holder cases at the unit level (CAT-D1, D2, D3, D3b, D4, D4b, D5): // one table or case per rule, the caller list and the store front's. func TestTheHolderOfTheTwoImageSeats(t *testing.T) { + t.Run("a publish is checked against the builder's reservation", reservedChecksAPublishAgainstTheReservation) blob := []byte(strings.Repeat("a", 3000)) part := Part{Digest: digestOf(blob), Size: int64(len(blob))} req := func(id string) PublishRequest { diff --git a/modules/distribution/internal/holder/reserved_test.go b/modules/distribution/internal/holder/reserved_test.go index 312bf4afc..faa32b074 100644 --- a/modules/distribution/internal/holder/reserved_test.go +++ b/modules/distribution/internal/holder/reserved_test.go @@ -9,7 +9,7 @@ import ( // A publish is checked against the builder's reservation by the seat mesh-builds' verb reserved, asked with the package's name // (design 47 §381, §478). -func TestReservedChecksAPublishAgainstTheReservation(t *testing.T) { +func reservedChecksAPublishAgainstTheReservation(t *testing.T) { for _, c := range []struct { name string answer string diff --git a/modules/gitea/internal/packageseats/holder_test.go b/modules/gitea/internal/packageseats/holder_test.go index 0495e041a..029810f47 100644 --- a/modules/gitea/internal/packageseats/holder_test.go +++ b/modules/gitea/internal/packageseats/holder_test.go @@ -119,6 +119,7 @@ const goBuild, nodeBuild = "ace.mesh-build-go", "ace.mesh-build-node" // file comes in parts, is checked against the builder's numbering and its digest, and is uploaded with the forge's own // write side; the outcome is said on the seat's events. func TestTheForgeHoldsBothPackageSeats(t *testing.T) { + t.Run("a publish is checked against the builder's reservation", reservedChecksAPublishAgainstTheReservation) file := []byte("a package's tarball") t.Run("a publish in parts is uploaded and said published", func(t *testing.T) { for _, seat := range []string{NpmSeat, GoSeat} { diff --git a/modules/gitea/internal/packageseats/reserved_test.go b/modules/gitea/internal/packageseats/reserved_test.go index b5ea18483..dff3f891f 100644 --- a/modules/gitea/internal/packageseats/reserved_test.go +++ b/modules/gitea/internal/packageseats/reserved_test.go @@ -9,7 +9,7 @@ import ( // A publish is checked against the builder's reservation by the seat mesh-builds' verb reserved, asked with the package's name // (design 47 §381, §478). -func TestReservedChecksAPublishAgainstTheReservation(t *testing.T) { +func reservedChecksAPublishAgainstTheReservation(t *testing.T) { for _, c := range []struct { name string answer string