summaryrefslogtreecommitdiff
path: root/test/e2e/trust_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-30 21:03:32 +0100
committerGitHub <noreply@github.com>2021-11-30 21:03:32 +0100
commit295a6f7dd086731448a1168a349f62d3035258ca (patch)
tree30edd7597fe321c138d59f106de356f860ff14cc /test/e2e/trust_test.go
parent85101f69d8ac18dcd66e19a8a368fbcc4c5e21aa (diff)
parent8eb0be0a29a647308b3ed9eab2126e1004b6ba85 (diff)
downloadpodman-295a6f7dd086731448a1168a349f62d3035258ca.tar.gz
podman-295a6f7dd086731448a1168a349f62d3035258ca.tar.bz2
podman-295a6f7dd086731448a1168a349f62d3035258ca.zip
Merge pull request #12454 from edsantiago/remove_betrue
More BeTrue cleanup
Diffstat (limited to 'test/e2e/trust_test.go')
-rw-r--r--test/e2e/trust_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/trust_test.go b/test/e2e/trust_test.go
index b591e1c02..9a0d57d7a 100644
--- a/test/e2e/trust_test.go
+++ b/test/e2e/trust_test.go
@@ -76,7 +76,7 @@ var _ = Describe("Podman trust", func() {
session := podmanTest.Podman([]string{"image", "trust", "show", "--registrypath", filepath.Join(INTEGRATION_ROOT, "test"), "--policypath", filepath.Join(INTEGRATION_ROOT, "test/policy.json"), "--json"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
- Expect(session.IsJSONOutputValid()).To(BeTrue())
+ Expect(session.OutputToString()).To(BeValidJSON())
var teststruct []map[string]string
json.Unmarshal(session.Out.Contents(), &teststruct)
Expect(len(teststruct)).To(Equal(3))
@@ -118,7 +118,7 @@ var _ = Describe("Podman trust", func() {
Expect(session).Should(Exit(0))
contents, err := ioutil.ReadFile(filepath.Join(INTEGRATION_ROOT, "test/policy.json"))
Expect(err).ShouldNot(HaveOccurred())
- Expect(session.IsJSONOutputValid()).To(BeTrue())
+ Expect(session.OutputToString()).To(BeValidJSON())
Expect(string(session.Out.Contents())).To(Equal(string(contents) + "\n"))
})
})