diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-06 05:18:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-06 05:18:04 +0200 |
commit | f584d47a9d0c050c3b39793a73b0aba17b45e8ba (patch) | |
tree | 56f996fdefdfa8a83f6aba9eb98e6395364f8b60 /test | |
parent | ea02d9c2668207523611efac67a1699f776c9147 (diff) | |
parent | 348f2df0c09e2e3b517add5271e6eee583800be3 (diff) | |
download | podman-f584d47a9d0c050c3b39793a73b0aba17b45e8ba.tar.gz podman-f584d47a9d0c050c3b39793a73b0aba17b45e8ba.tar.bz2 podman-f584d47a9d0c050c3b39793a73b0aba17b45e8ba.zip |
Merge pull request #7931 from rhatdan/size
Support max_size logoptions
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/logs_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/e2e/logs_test.go b/test/e2e/logs_test.go index 67ab71d20..9b3163856 100644 --- a/test/e2e/logs_test.go +++ b/test/e2e/logs_test.go @@ -321,4 +321,20 @@ var _ = Describe("Podman logs", func() { results.WaitWithDefaultTimeout() Expect(results).To(Exit(0)) }) + + It("using container with container log-size", func() { + logc := podmanTest.Podman([]string{"run", "--log-opt=max-size=10k", "-d", ALPINE, "sh", "-c", "echo podman podman podman"}) + logc.WaitWithDefaultTimeout() + Expect(logc).To(Exit(0)) + cid := logc.OutputToString() + + wait := podmanTest.Podman([]string{"wait", cid}) + wait.WaitWithDefaultTimeout() + Expect(wait).To(Exit(0)) + + results := podmanTest.Podman([]string{"logs", cid}) + results.WaitWithDefaultTimeout() + Expect(results).To(Exit(0)) + Expect(results.OutputToString()).To(Equal("podman podman podman")) + }) }) |