mirror of
https://github.com/containers/podman.git
synced 2025-06-26 04:46:57 +08:00
Merge pull request #14805 from jakecorrenti/df-format-output
Podman system df JSON format outputs `Size` and `Reclaimable`
This commit is contained in:
@ -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())
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user