From 6e33c328b9b6878a788aef55c7baf1d7705a0430 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Tue, 21 Apr 2020 17:06:51 -0400 Subject: Fix v2 test podman info Signed-off-by: Qi Wang --- test/e2e/info_test.go | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/e2e/info_test.go b/test/e2e/info_test.go index e5173e7a1..ff3615dcd 100644 --- a/test/e2e/info_test.go +++ b/test/e2e/info_test.go @@ -16,7 +16,6 @@ var _ = Describe("Podman Info", func() { ) BeforeEach(func() { - Skip(v2fail) tempdir, err = CreateTempDirInTempDir() if err != nil { os.Exit(1) @@ -38,22 +37,17 @@ var _ = Describe("Podman Info", func() { Expect(session.ExitCode()).To(Equal(0)) }) - It("podman system info json output", func() { - session := podmanTest.Podman([]string{"system", "info", "--format=json"}) - session.WaitWithDefaultTimeout() - Expect(session.ExitCode()).To(Equal(0)) - }) - It("podman info --format JSON GO template", func() { - session := podmanTest.Podman([]string{"info", "--format", "{{ json .}}"}) + It("podman info --format GO template", func() { + session := podmanTest.Podman([]string{"info", "--format", "{{.Store.GraphRoot}}"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - Expect(session.IsJSONOutputValid()).To(BeTrue()) }) It("podman info --format GO template", func() { - session := podmanTest.Podman([]string{"info", "--format", "{{ .Store.GraphRoot }}"}) + session := podmanTest.Podman([]string{"info", "--format", "{{.Registries}}"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(ContainSubstring("registry")) }) }) -- cgit v1.2.3-54-g00ecf