summaryrefslogtreecommitdiff
path: root/test/system/035-logs.bats
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2020-10-02 08:54:16 -0400
committerAshley Cui <acui@redhat.com>2020-10-02 10:05:19 -0400
commitc0d1954663fbf56076d1e75da396aa78016d623b (patch)
tree8631531487441574cf3984c16fd6c89c90b74b4d /test/system/035-logs.bats
parentb0e70a6411d70d7ee7f1e9d6abedc2524b903609 (diff)
downloadpodman-c0d1954663fbf56076d1e75da396aa78016d623b.tar.gz
podman-c0d1954663fbf56076d1e75da396aa78016d623b.tar.bz2
podman-c0d1954663fbf56076d1e75da396aa78016d623b.zip
Fix Podman logs reading journald
A podman could not read logs written to journald properly, due to a tail config bug. Added a system test to check this - since e2e tests don't like journald Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'test/system/035-logs.bats')
-rw-r--r--test/system/035-logs.bats11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/system/035-logs.bats b/test/system/035-logs.bats
index cbb2091e5..130bc5243 100644
--- a/test/system/035-logs.bats
+++ b/test/system/035-logs.bats
@@ -50,4 +50,15 @@ ${cid[1]} c
${cid[0]} d" "Sequential output from logs"
}
+@test "podman logs over journald" {
+ msg=$(random_string 20)
+
+ run_podman run --name myctr --log-driver journald $IMAGE echo $msg
+
+ run_podman logs myctr
+ is "$output" "$msg" "check that log output equals the container output"
+
+ run_podman rm myctr
+}
+
# vim: filetype=sh