summaryrefslogtreecommitdiff
path: root/test/e2e/info_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-22 19:30:18 +0200
committerGitHub <noreply@github.com>2020-04-22 19:30:18 +0200
commit7d8875f8e57c36a0294520a0e33218826f871641 (patch)
tree9fb11a0ff2f15c1352a1838800c8cc55e6c3b7a0 /test/e2e/info_test.go
parent7f1d00108e441b012785fa9d6e75317bad7ce239 (diff)
parent6e33c328b9b6878a788aef55c7baf1d7705a0430 (diff)
downloadpodman-7d8875f8e57c36a0294520a0e33218826f871641.tar.gz
podman-7d8875f8e57c36a0294520a0e33218826f871641.tar.bz2
podman-7d8875f8e57c36a0294520a0e33218826f871641.zip
Merge pull request #5929 from QiWang19/v2test-info
Fix v2 test podman info
Diffstat (limited to 'test/e2e/info_test.go')
-rw-r--r--test/e2e/info_test.go14
1 files changed, 4 insertions, 10 deletions
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"))
})
})