summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-15 20:55:28 +0100
committerGitHub <noreply@github.com>2021-11-15 20:55:28 +0100
commit230f0b622e391b78626f150471fce5c198048ed8 (patch)
tree3aad67474a08670ee52cd75e04136f8bf5624581 /test
parent47eaf23039d5a1352352ac1b33196b8344065632 (diff)
parent062c88771840f89482c5b16fd6dd4bad25749399 (diff)
downloadpodman-230f0b622e391b78626f150471fce5c198048ed8.tar.gz
podman-230f0b622e391b78626f150471fce5c198048ed8.tar.bz2
podman-230f0b622e391b78626f150471fce5c198048ed8.zip
Merge pull request #12130 from rhatdan/journal
Error logs --follow if events-backend != journald, event-logger=journald
Diffstat (limited to 'test')
-rw-r--r--test/system/090-events.bats11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/system/090-events.bats b/test/system/090-events.bats
index 1fb542ccd..5af6a3793 100644
--- a/test/system/090-events.bats
+++ b/test/system/090-events.bats
@@ -102,6 +102,17 @@ function _events_disjunctive_filters() {
_events_disjunctive_filters --events-backend=journald
}
+@test "events with file backend and journald logdriver with --follow failure" {
+ skip_if_remote "remote does not support --events-backend"
+ skip_if_journald_unavailable "system does not support journald events"
+ run_podman --events-backend=file run --log-driver=journald --name=test $IMAGE echo hi
+ is "$output" "hi" "Should support events-backend=file"
+
+ run_podman 125 --events-backend=file logs --follow test
+ is "$output" "Error: using --follow with the journald --log-driver but without the journald --events-backend (file) is not supported" "Should fail with reasonable error message when events-backend and events-logger do not match"
+
+}
+
@test "events with disjunctive filters - default" {
_events_disjunctive_filters ""
}