mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
e2e tests: more cleanup of BeTrue()s
Write a BeValidJSON() matcher, and replace IsJSONOutputValid(): sed -i -e 's/Expect(\(.*\)\.IsJSONOutputValid()).To(BeTrue())/Expect(\1.OutputToString())\.To(BeValidJSON())/' test/e2e/*_test.go (Plus a few manual tweaks) Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -234,7 +234,7 @@ var _ = Describe("Podman network", func() {
|
||||
session := podmanTest.Podman(append([]string{"network", "inspect"}, expectedNetworks...))
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(0))
|
||||
Expect(session.IsJSONOutputValid()).To(BeTrue())
|
||||
Expect(session.OutputToString()).To(BeValidJSON())
|
||||
})
|
||||
|
||||
It("podman network inspect", func() {
|
||||
|
Reference in New Issue
Block a user