From 47e827d6a4a91f40b9c0a83cf2db6e9bd46b1666 Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Thu, 16 Nov 2023 10:24:20 +0000 Subject: [PATCH] fix e2e Signed-off-by: Billy Zha --- test/e2e/suite/command/resolve.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/suite/command/resolve.go b/test/e2e/suite/command/resolve.go index b1701a736..ae76e7f9d 100644 --- a/test/e2e/suite/command/resolve.go +++ b/test/e2e/suite/command/resolve.go @@ -75,21 +75,21 @@ var _ = Describe("Common registry user", func() { var _ = Describe("OCI image layout users", func() { When("running resolve command", func() { It("should resolve with just digest", func() { - tmpRoot := GinkgoT().TempDir() + tmpRoot := PrepareTempOCI(ImageRepo) out := ORAS("resolve", Flags.Layout, LayoutRef(tmpRoot, multi_arch.Digest)).Exec().Out outString := string(out.Contents()) outString = strings.TrimSpace(outString) gomega.Expect(outString).To(gomega.Equal(multi_arch.Digest)) }) It("should resolve with a fully qualified reference", func() { - tmpRoot := GinkgoT().TempDir() + tmpRoot := PrepareTempOCI(ImageRepo) out := ORAS("resolve", Flags.Layout, "-l", LayoutRef(tmpRoot, multi_arch.Tag)).Exec().Out gomega.Expect(out).To(gbytes.Say(fmt.Sprintf("%s@%s", tmpRoot, multi_arch.Digest))) }) It("should resolve with a fully qualified reference for a platform", func() { - tmpRoot := GinkgoT().TempDir() + tmpRoot := PrepareTempOCI(ImageRepo) out := ORAS("resolve", Flags.Layout, "--full-reference", "--platform", "linux/amd64", LayoutRef(tmpRoot, multi_arch.Tag)).Exec().Out - gomega.Expect(out).To(gbytes.Say(fmt.Sprintf("%s/%s@%s", ZOTHost, ImageRepo, multi_arch.LinuxAMD64.Digest))) + gomega.Expect(out).To(gbytes.Say(fmt.Sprintf("%s@%s", tmpRoot, multi_arch.LinuxAMD64.Digest))) }) }) })