1
0
mirror of https://github.com/containers/skopeo.git synced 2025-05-05 22:47:06 +00:00

Fix reading the after-sync list of tags in SyncSuite.TestYamlUntagged

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač 2021-01-07 17:35:42 +01:00 committed by Valentin Rothberg
parent 81535c5244
commit c4fb93647a

View File

@ -262,7 +262,9 @@ docker.io:
sysCtx = types.SystemContext{
DockerInsecureSkipTLSVerify: types.NewOptionalBool(true),
}
localTags, err := docker.GetRepositoryTags(context.Background(), &sysCtx, imageRef)
localImageRef, err := docker.ParseReference(fmt.Sprintf("//%s/%s", v2DockerRegistryURL, imagePath))
c.Assert(err, check.IsNil)
localTags, err := docker.GetRepositoryTags(context.Background(), &sysCtx, localImageRef)
c.Assert(err, check.IsNil)
c.Check(len(localTags), check.Not(check.Equals), 0)
c.Assert(len(localTags), check.Equals, len(tags))