diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-28 19:14:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 19:14:00 +0000 |
commit | f0e8904e0d185e32d44496d8714fbda8e75e04f7 (patch) | |
tree | 098311c8d09c95a32c8cb78ce6c4f4f3ced60610 /test/e2e | |
parent | 60c9aeabab950be4b7b1d568c75bd3705bea17ed (diff) | |
parent | 6c4c050d3df4f4e952273891bddfeb5b5bd8be5e (diff) | |
download | podman-f0e8904e0d185e32d44496d8714fbda8e75e04f7.tar.gz podman-f0e8904e0d185e32d44496d8714fbda8e75e04f7.tar.bz2 podman-f0e8904e0d185e32d44496d8714fbda8e75e04f7.zip |
Merge pull request #14755 from cdoern/system
fix volume reporting in system df
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/system_df_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/system_df_test.go b/test/e2e/system_df_test.go index 5a23fc0bb..712d16a6a 100644 --- a/test/e2e/system_df_test.go +++ b/test/e2e/system_df_test.go @@ -70,6 +70,17 @@ var _ = Describe("podman system df", func() { Expect(containers[1]).To(Equal("2"), "total containers expected") Expect(volumes[2]).To(Equal("2"), "total volumes expected") Expect(volumes[6]).To(Equal("(50%)"), "percentage usage expected") + + session = podmanTest.Podman([]string{"rm", "container1"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + session = podmanTest.Podman([]string{"system", "df"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + volumes = strings.Fields(session.OutputToStringArray()[3]) + // percentages on volumes were being calculated incorrectly. Make sure we only report 100% and not above + Expect(volumes[6]).To(Equal("(100%)"), "percentage usage expected") + }) It("podman system df image with no tag", func() { |