Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Nov 16, 2023
1 parent dd164e1 commit 47e827d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/suite/command/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
})
})
})

0 comments on commit 47e827d

Please sign in to comment.