Skip to content

Commit

Permalink
refine test
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
Xiaoxuan Wang committed Sep 9, 2024
1 parent 23af663 commit 8ea421d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/suite/command/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ var _ = Describe("OCI spec 1.1 registry users:", func() {
It("should show correct reference", func() {
tempDir := PrepareTempFiles()
ref := RegistryRef(ZOTHost, ArtifactRepo, foobar.Tag)
ORAS("pull", ref, "--format", "go-template={{.reference}}").WithWorkDir(tempDir).Exec()
out := ORAS("pull", ref, "--format", "go-template={{.reference}}").WithWorkDir(tempDir).Exec().Out.Contents()
Expect(out).To(Equal("localhost:7000/command/artifacts@sha256:fd6ed2f36b5465244d5dc86cb4e7df0ab8a9d24adc57825099f522fe009a22bb"))
})

It("should pull specific platform", func() {
Expand Down

0 comments on commit 8ea421d

Please sign in to comment.