summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndy Librian <andylibrian@gmail.com>2020-11-07 12:44:30 +0700
committerAndy Librian <andylibrian@gmail.com>2020-11-08 08:59:18 +0700
commitf3355d9697119a1fd44abea1981d5ab6337ab67a (patch)
treee26da379377ab005f65e656f5f78856d5f2efd7a /test
parente2b82e6245ed9459a37dc004a2b1d593d2835cb7 (diff)
downloadpodman-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')
-rw-r--r--test/e2e/play_kube_test.go16
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"))
+ })
})