forked from TrueCloudLab/distribution
Change URLBuilder methods to use references for tags and digests
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
parent
4441333912
commit
2b20b0167a
8 changed files with 150 additions and 62 deletions
|
@ -100,7 +100,8 @@ func checkCommonManifest(t *testing.T, action string, events ...Event) {
|
|||
}
|
||||
|
||||
repoRef, _ := reference.ParseNamed(repo)
|
||||
u, err := ub.BuildManifestURL(repoRef, dgst.String())
|
||||
ref, _ := reference.WithDigest(repoRef, dgst)
|
||||
u, err := ub.BuildManifestURL(ref)
|
||||
if err != nil {
|
||||
t.Fatalf("error building expected url: %v", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue