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 Apr 10, 2024
1 parent 3cbbf9b commit 7b09792
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/suite/command/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ var _ = Describe("1.1 registry users:", func() {
fetchPath := filepath.Join(GinkgoT().TempDir(), "fetchedImage")
digest := multi_arch.LinuxAMD64.Digest.String()
ref := RegistryRef(ZOTHost, ImageRepo, digest)
out := ORAS("manifest", "fetch", ref, "--output", fetchPath, "--format", "{{.Content}}").Exec().Out.Contents()
out := ORAS("manifest", "fetch", ref, "--output", fetchPath, "--format", "{{toJson .Content}}").Exec().Out.Contents()
Expect(out).To(MatchJSON(multi_arch.LinuxAMD64Manifest))
MatchFile(fetchPath, multi_arch.LinuxAMD64Manifest, DefaultTimeout)
})
Expand All @@ -248,7 +248,7 @@ var _ = Describe("1.1 registry users:", func() {
})

It("should fetch manifest with platform validation and output json", func() {
out := ORAS("manifest", "fetch", RegistryRef(ZOTHost, ImageRepo, multi_arch.Tag), "--platform", "linux/amd64", "--format", "{{.Content}}").
out := ORAS("manifest", "fetch", RegistryRef(ZOTHost, ImageRepo, multi_arch.Tag), "--platform", "linux/amd64", "--format", "{{toJson .Content}}").
Exec().Out.Contents()
Expect(out).To(MatchJSON(multi_arch.LinuxAMD64Manifest))
})
Expand Down

0 comments on commit 7b09792

Please sign in to comment.