diff options
author | Andy Librian <andylibrian@gmail.com> | 2020-11-07 12:44:30 +0700 |
---|---|---|
committer | Andy Librian <andylibrian@gmail.com> | 2020-11-08 08:59:18 +0700 |
commit | f3355d9697119a1fd44abea1981d5ab6337ab67a (patch) | |
tree | e26da379377ab005f65e656f5f78856d5f2efd7a /test/e2e | |
parent | e2b82e6245ed9459a37dc004a2b1d593d2835cb7 (diff) | |
download | podman-f3355d9697119a1fd44abea1981d5ab6337ab67a.tar.gz podman-f3355d9697119a1fd44abea1981d5ab6337ab67a.tar.bz2 podman-f3355d9697119a1fd44abea1981d5ab6337ab67a.zip |
Add --log-driver to play kube
addresses #6604
Signed-off-by: Andy Librian <andylibrian@gmail.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/play_kube_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go index 1d683e987..6db5de9d0 100644 --- a/test/e2e/play_kube_test.go +++ b/test/e2e/play_kube_test.go @@ -1466,4 +1466,20 @@ MemoryReservation: {{ .HostConfig.MemoryReservation }}`}) Expect(kube.ExitCode()).To(Equal(125)) Expect(kube.ErrorToString()).To(ContainSubstring(invalidImageName)) }) + + It("podman play kube applies log driver to containers", func() { + Skip("need to verify images have correct packages for journald") + pod := getPod() + err := generateKubeYaml("pod", pod, kubeYaml) + Expect(err).To(BeNil()) + + kube := podmanTest.Podman([]string{"play", "kube", "--log-driver", "journald", kubeYaml}) + kube.WaitWithDefaultTimeout() + Expect(kube.ExitCode()).To(Equal(0)) + + inspect := podmanTest.Podman([]string{"inspect", getCtrNameInPod(pod), "--format", "'{{ .HostConfig.LogConfig.Type }}'"}) + inspect.WaitWithDefaultTimeout() + Expect(inspect.ExitCode()).To(Equal(0)) + Expect(inspect.OutputToString()).To(ContainSubstring("journald")) + }) }) |