summaryrefslogtreecommitdiff
path: root/test/e2e/trust_test.go
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-12-01 08:19:55 -0700
committerEd Santiago <santiago@redhat.com>2021-12-02 07:54:53 -0700
commit478f2da5d6bedf6390be1c0f3928f9ec13894d6d (patch)
tree03b762f70d3ba918d378da0552e720a55731d2fa /test/e2e/trust_test.go
parent6b5ecde76ebb177b1ab1dd9e9555fc198ad90858 (diff)
downloadpodman-478f2da5d6bedf6390be1c0f3928f9ec13894d6d.tar.gz
podman-478f2da5d6bedf6390be1c0f3928f9ec13894d6d.tar.bz2
podman-478f2da5d6bedf6390be1c0f3928f9ec13894d6d.zip
e2e tests: a little more minor cleanup
sed -i -e 's/Expect(\(.*\)\[\(\".*\"\)\])\.To(Equal(/Expect(\1).To(HaveKeyWithValue(\2, /' test/e2e/*_test.go ...with two manual tweaks, because this converted: Expect(foo["bar"]).To(Equal("")) -> Expect(foo).To(HaveKeyWithValue("bar","")) It looks like the intention of the test was, instead: ...To(Not(HaveKey("bar"))) Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/e2e/trust_test.go')
-rw-r--r--test/e2e/trust_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/trust_test.go b/test/e2e/trust_test.go
index 9a0d57d7a..e02bfa7f2 100644
--- a/test/e2e/trust_test.go
+++ b/test/e2e/trust_test.go
@@ -69,7 +69,7 @@ var _ = Describe("Podman trust", func() {
if err != nil {
os.Exit(1)
}
- Expect(teststruct["default"][0]["type"]).To(Equal("insecureAcceptAnything"))
+ Expect(teststruct["default"][0]).To(HaveKeyWithValue("type", "insecureAcceptAnything"))
})
It("podman image trust show --json", func() {