diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2020-09-28 12:21:39 +0200 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2020-09-28 20:48:12 +0200 |
commit | 1db49d95b77aea8bd327e42fe89fb9ea3f8a67a1 (patch) | |
tree | 5c4e4ef95aecc73eb0401b78e933daf84ef4ce94 | |
parent | 03d01abec6d028e9d5f60615b0451e42d0611d1d (diff) | |
download | podman-1db49d95b77aea8bd327e42fe89fb9ea3f8a67a1.tar.gz podman-1db49d95b77aea8bd327e42fe89fb9ea3f8a67a1.tar.bz2 podman-1db49d95b77aea8bd327e42fe89fb9ea3f8a67a1.zip |
Journald log driver test
Test that the journald log driver writes to journald and
that we can read it with journalctl.
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
-rw-r--r-- | test/system/030-run.bats | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 11edaf11c..6430c80fb 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -387,5 +387,18 @@ json-file | f "--log-driver InvalidDriver" } +@test "podman run --log-driver journald" { + skip_if_remote "We cannot read journalctl over remote." + + msg=$(random_string 20) + pidfile="${PODMAN_TMPDIR}/$(random_string 20)" + + run_podman run --name myctr --log-driver journald --conmon-pidfile $pidfile $IMAGE echo $msg + + journalctl --output cat _PID=$(cat $pidfile) + is "$output" "$msg" "check that journalctl output equals the container output" + + run_podman rm myctr +} # vim: filetype=sh |