diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-26 10:53:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 10:53:26 +0000 |
commit | 4d75df8be380cff4df082bd6fc2f05aa2c433723 (patch) | |
tree | 99ef73a78541017921848d11729384e019d2f1ff /test/e2e | |
parent | f82f93c9bdaca49765019966df43384d34469575 (diff) | |
parent | acd8b4900058c364a660a4a01319a8d9cd097896 (diff) | |
download | podman-4d75df8be380cff4df082bd6fc2f05aa2c433723.tar.gz podman-4d75df8be380cff4df082bd6fc2f05aa2c433723.tar.bz2 podman-4d75df8be380cff4df082bd6fc2f05aa2c433723.zip |
Merge pull request #12086 from rhatdan/log
Add support to play kube for --log-opt
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/play_kube_test.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go index 8aeba9d75..d5b913743 100644 --- a/test/e2e/play_kube_test.go +++ b/test/e2e/play_kube_test.go @@ -2421,14 +2421,19 @@ MemoryReservation: {{ .HostConfig.MemoryReservation }}`}) err := generateKubeYaml("pod", pod, kubeYaml) Expect(err).To(BeNil()) - kube := podmanTest.Podman([]string{"play", "kube", "--log-driver", "journald", kubeYaml}) + kube := podmanTest.Podman([]string{"play", "kube", "--log-opt=max-size=10k", "--log-driver", "journald", kubeYaml}) kube.WaitWithDefaultTimeout() Expect(kube).Should(Exit(0)) - inspect := podmanTest.Podman([]string{"inspect", getCtrNameInPod(pod), "--format", "'{{ .HostConfig.LogConfig.Type }}'"}) + cid := getCtrNameInPod(pod) + inspect := podmanTest.Podman([]string{"inspect", cid, "--format", "'{{ .HostConfig.LogConfig.Type }}'"}) inspect.WaitWithDefaultTimeout() Expect(inspect).Should(Exit(0)) Expect(inspect.OutputToString()).To(ContainSubstring("journald")) + inspect = podmanTest.Podman([]string{"container", "inspect", "--format", "{{.HostConfig.LogConfig.Size}}", cid}) + inspect.WaitWithDefaultTimeout() + Expect(inspect).To(Exit(0)) + Expect(inspect.OutputToString()).To(Equal("10kB")) }) It("podman play kube test only creating the containers", func() { |