summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-01-13 15:54:53 +0100
committerGitHub <noreply@github.com>2022-01-13 15:54:53 +0100
commite98058a3cf4f5ba4cd2d37dfdb2a0951b9aa9730 (patch)
tree52468f57df071aee5e731cce14115dc65679c94a /test
parent1b970e8598bd414dc2e84fbb1334f42065ed8233 (diff)
parentfa6405c3c39c2f054d71323256c65bef34d7aed0 (diff)
downloadpodman-e98058a3cf4f5ba4cd2d37dfdb2a0951b9aa9730.tar.gz
podman-e98058a3cf4f5ba4cd2d37dfdb2a0951b9aa9730.tar.bz2
podman-e98058a3cf4f5ba4cd2d37dfdb2a0951b9aa9730.zip
Merge pull request #12837 from rhatdan/events
use events_logfile_path from containers.conf for events log.
Diffstat (limited to 'test')
-rw-r--r--test/system/090-events.bats13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/system/090-events.bats b/test/system/090-events.bats
index 5af6a3793..a0b0380a2 100644
--- a/test/system/090-events.bats
+++ b/test/system/090-events.bats
@@ -116,3 +116,16 @@ function _events_disjunctive_filters() {
@test "events with disjunctive filters - default" {
_events_disjunctive_filters ""
}
+
+@test "events with events_logfile_path in containers.conf" {
+ skip_if_remote "remote does not support --events-backend"
+ events_file=$PODMAN_TMPDIR/events.log
+ containersconf=$PODMAN_TMPDIR/containers.conf
+ cat >$containersconf <<EOF
+[engine]
+events_logfile_path="$events_file"
+EOF
+ CONTAINERS_CONF="$containersconf" run_podman --events-backend=file pull $IMAGE
+ run cat $events_file
+ is "$output" ".*\"Name\":\"$IMAGE" "test"
+}