mesh/delivery-group group feat/sdk1 rejected: composed together: the checker's verdict at the members' heads (428d048dd50a): unit: git.novox.be/novox/mesh-sdk/…
mesh/delivery closed: a newer head of the same pull request
mesh/check failed: unit: git.novox.be/novox/mesh-sdk/go/process.TestStatePutWritesAKeyWhole: a Put through a short blackout: 0, mesh-mail's state send…
Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
30 lines
1.2 KiB
Go
30 lines
1.2 KiB
Go
package catalogue
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
// A build is recorded by what it is; where it is pushed is composed where it is used (novox/hq
|
|
// 04-ISSUES/102).
|
|
|
|
var digest = "sha256:" + strings.Repeat("d", 64)
|
|
|
|
func TestAReferenceIsRecordedWithoutTheStoresAddress(t *testing.T) {
|
|
cases := map[string]string{
|
|
"anchor.internal:5100/gitea/server@" + digest: ArtifactStoreScheme + "gitea/server@" + digest,
|
|
"localhost:5000/gitea/server@" + digest: ArtifactStoreScheme + "gitea/server@" + digest,
|
|
"http://anchor.internal:5100/v2/gitea/config/blobs/" + digest: ArtifactStoreScheme + "gitea/config/blobs/" + digest,
|
|
ArtifactStoreScheme + "gitea/server@" + digest: ArtifactStoreScheme + "gitea/server@" + digest,
|
|
digest: digest,
|
|
"@novox/sdk@1.2.3": "@novox/sdk@1.2.3",
|
|
"gitea/gitea@" + digest: "gitea/gitea@" + digest,
|
|
"https://registry.example/v2/gitea/config/blobs/" + digest: "https://registry.example/v2/gitea/config/blobs/" + digest,
|
|
}
|
|
for announced, want := range cases {
|
|
if got := Recorded(announced); got != want {
|
|
t.Errorf("Recorded(%q) = %q, want %q", announced, got, want)
|
|
}
|
|
}
|
|
}
|