summaryrefslogtreecommitdiff
path: root/test/e2e/system_df_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-07 13:02:02 -0400
committerGitHub <noreply@github.com>2020-10-07 13:02:02 -0400
commitce93ab354234c989c52bdbf87166e117e7c97fce (patch)
tree5cd6445f92921c7015fbe0b9663983165bd58db3 /test/e2e/system_df_test.go
parenta7500e54a4646c7db477349e2530ac13df77b8fa (diff)
parentccc5bc167fa2c140e33963bb5cce99f40ff00281 (diff)
downloadpodman-ce93ab354234c989c52bdbf87166e117e7c97fce.tar.gz
podman-ce93ab354234c989c52bdbf87166e117e7c97fce.tar.bz2
podman-ce93ab354234c989c52bdbf87166e117e7c97fce.zip
Merge pull request #7845 from rhatdan/remote
Attempt to turn on some more remote tests
Diffstat (limited to 'test/e2e/system_df_test.go')
-rw-r--r--test/e2e/system_df_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/e2e/system_df_test.go b/test/e2e/system_df_test.go
index aee5dafb8..365e36fc7 100644
--- a/test/e2e/system_df_test.go
+++ b/test/e2e/system_df_test.go
@@ -3,6 +3,7 @@ package integration
import (
"fmt"
"os"
+ "strconv"
"strings"
. "github.com/containers/podman/v2/test/utils"
@@ -35,7 +36,6 @@ var _ = Describe("podman system df", func() {
})
It("podman system df", func() {
- SkipIfRemote("FIXME This should work on podman-remote")
session := podmanTest.Podman([]string{"create", ALPINE})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
@@ -48,6 +48,11 @@ var _ = Describe("podman system df", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
+ session = podmanTest.Podman([]string{"images", "-q"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ totImages := strconv.Itoa(len(session.OutputToStringArray()))
+
session = podmanTest.Podman([]string{"system", "df"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
@@ -55,7 +60,7 @@ var _ = Describe("podman system df", func() {
images := strings.Fields(session.OutputToStringArray()[1])
containers := strings.Fields(session.OutputToStringArray()[2])
volumes := strings.Fields(session.OutputToStringArray()[3])
- Expect(images[1]).To(Equal("11"))
+ Expect(images[1]).To(Equal(string(totImages)))
Expect(containers[1]).To(Equal("2"))
Expect(volumes[2]).To(Equal("1"))
})