summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-12-15 09:12:57 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2020-12-15 17:22:06 -0500
commite42d920ebfa381322eb03cb27941ecb93eea3dd7 (patch)
tree4f825a579262861307a1a661fe824696105ab008 /test/e2e
parente689503fd6995fa45d990fef6ad7de425c1cbcba (diff)
downloadpodman-e42d920ebfa381322eb03cb27941ecb93eea3dd7.tar.gz
podman-e42d920ebfa381322eb03cb27941ecb93eea3dd7.tar.bz2
podman-e42d920ebfa381322eb03cb27941ecb93eea3dd7.zip
Add LogSize to container inspect
Other log options are available so we need to add ability to look up LogSize. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/logs_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/logs_test.go b/test/e2e/logs_test.go
index aae6d4f02..b370aeec1 100644
--- a/test/e2e/logs_test.go
+++ b/test/e2e/logs_test.go
@@ -332,6 +332,11 @@ var _ = Describe("Podman logs", func() {
wait.WaitWithDefaultTimeout()
Expect(wait).To(Exit(0))
+ inspect := podmanTest.Podman([]string{"container", "inspect", "--format", "{{.HostConfig.LogConfig.Size}}", cid})
+ inspect.WaitWithDefaultTimeout()
+ Expect(inspect).To(Exit(0))
+ Expect(inspect.OutputToString()).To(Equal("10kB"))
+
results := podmanTest.Podman([]string{"logs", cid})
results.WaitWithDefaultTimeout()
Expect(results).To(Exit(0))