diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-07-05 13:34:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 13:34:45 +0000 |
commit | 6315936f9a73733d2dbebdd42a2f6e590fdeee6e (patch) | |
tree | 829c92ebea84c4a60dabc0a291d2eb9c41aaf4b1 /test/e2e | |
parent | 1fb1cab21c6b49c5ba389d659083662e1b69832b (diff) | |
parent | 4fe7b8baf2a7f7916653adb0784f5ef15a112ec2 (diff) | |
download | podman-6315936f9a73733d2dbebdd42a2f6e590fdeee6e.tar.gz podman-6315936f9a73733d2dbebdd42a2f6e590fdeee6e.tar.bz2 podman-6315936f9a73733d2dbebdd42a2f6e590fdeee6e.zip |
Merge pull request #14805 from jakecorrenti/df-format-output
Podman system df JSON format outputs `Size` and `Reclaimable`
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/system_df_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/system_df_test.go b/test/e2e/system_df_test.go index 712d16a6a..998fa8b59 100644 --- a/test/e2e/system_df_test.go +++ b/test/e2e/system_df_test.go @@ -97,4 +97,17 @@ var _ = Describe("podman system df", func() { session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) }) + + It("podman system df --format \"{{ json . }}\"", func() { + session := podmanTest.Podman([]string{"create", ALPINE}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + + session = podmanTest.Podman([]string{"system", "df", "--format", "{{ json . }}"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + Expect(session.LineInOutputContains("Size")) + Expect(session.LineInOutputContains("Reclaimable")) + Expect(session.IsJSONOutputValid()) + }) }) |