From 250d40c87ae21d99e228a7bbaefcdca9f3d9bcf0 Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Thu, 25 Jan 2024 08:38:35 +0000 Subject: [PATCH] fix copy e2e Signed-off-by: Billy Zha --- test/e2e/suite/command/cp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/suite/command/cp.go b/test/e2e/suite/command/cp.go index 08ef50de3..fbb50f142 100644 --- a/test/e2e/suite/command/cp.go +++ b/test/e2e/suite/command/cp.go @@ -265,7 +265,7 @@ var _ = Describe("1.1 registry users:", func() { MatchKeyWords("Digest: " + ma.LinuxAMD64.Digest.String()). Exec() // validate - CompareRef(RegistryRef(ZOTHost, ImageRepo, ma.Digest), dst) + CompareRef(src, dst) digests := ORAS("discover", dst, "--format", "{{range .Manifests}}{{println .Digest}}{{end}}").Exec().Out.Contents() for _, digest := range strings.Split(strings.TrimSpace(string(digests)), "\n") { CompareRef(RegistryRef(ZOTHost, ArtifactRepo, digest), RegistryRef(ZOTHost, dstRepo, digest)) @@ -282,7 +282,7 @@ var _ = Describe("1.1 registry users:", func() { MatchKeyWords("Digest: " + ma.LinuxAMD64.Digest.String()). Exec() // validate - CompareRef(RegistryRef(ZOTHost, ImageRepo, ma.Digest), dst) + CompareRef(src, dst) digests := ORAS("discover", dst, "--format", "{{range .Manifests}}{{println .Digest}}{{end}}").Exec().Out.Contents() for _, digest := range strings.Split(strings.TrimSpace(string(digests)), "\n") { CompareRef(RegistryRef(ZOTHost, ArtifactRepo, digest), RegistryRef(ZOTHost, dstRepo, digest))