Revert: the registry seats still hold versions; the engine asks it again
The resolved definitions of oci-artifact-registry and container-image-registry
on mesh-delivery feat/47-H2 (42788501) both still hold versions, from the
registry part they include; D4a (ac99946f) only gave list a module filter and
a cursor. The validator's refusal came from a request that did not resolve
the includes, so nothing the definitions hold is changed: this reverts
845de026.
Builds: design 47 H2 §813 (7); H-A-415 (2) and its addendum
This commit is contained in:
@@ -470,8 +470,8 @@ func testTheNodeComposesItsWantsFromTheBus(t *testing.T) {
|
||||
// resolves the digests).
|
||||
e.Registry = EntryCall(func(_ context.Context, seat, _ string, args any) (json.RawMessage, error) {
|
||||
if seat == "container-image-registry" && args.(map[string]string)["name"] == "de-spiegel/site" {
|
||||
return json.RawMessage(`{"repositories":[{"name":"de-spiegel/site","manifests":[{"digest":"sha256:` +
|
||||
strings.Repeat("6", 64) + `","tags":["1"]}]}]}`), nil
|
||||
return json.RawMessage(`{"name":"de-spiegel/site","versions":[{"name":"de-spiegel/site","kind":"image","digest":"sha256:` +
|
||||
strings.Repeat("6", 64) + `","version":"1"}]}`), nil
|
||||
}
|
||||
return nil, errors.New("not held")
|
||||
})
|
||||
@@ -1119,9 +1119,9 @@ func testTheNodeComposesItsWantsFromTheBus(t *testing.T) {
|
||||
catalogEntries[artFp] = artEntry
|
||||
// art's files archive at version 1, which the candidate "art-with" names (the candidate's version, never a digest).
|
||||
senv.Registry = EntryCall(func(_ context.Context, seat, _ string, args any) (json.RawMessage, error) {
|
||||
if seat == "oci-artifact-registry" && args.(map[string]string)["module"] == "art" {
|
||||
return json.RawMessage(`{"repositories":[{"name":"art/files","manifests":[{"digest":"sha256:` + strings.Repeat("8", 64) +
|
||||
`","artifact":"sha256:` + strings.Repeat("9", 64) + `","tags":["1"]}]}]}`), nil
|
||||
if seat == "oci-artifact-registry" && args.(map[string]string)["name"] == "art/files" {
|
||||
return json.RawMessage(`{"name":"art/files","versions":[{"name":"art/files","kind":"archive","digest":"sha256:` +
|
||||
strings.Repeat("9", 64) + `","version":"1"}]}`), nil
|
||||
}
|
||||
return nil, errors.New("not held")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user