summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-09-09 11:43:20 +0200
committerPaul Holzinger <pholzing@redhat.com>2022-09-12 18:05:17 +0200
commit138b09c7e28de336717191ec79c0b0bdf61b448a (patch)
treedc845fe7b3870b6f2be04227912e91548ba46145 /test/system
parentc5bdb6afe741d34c32f779b6ef9508b6f1d05794 (diff)
downloadpodman-138b09c7e28de336717191ec79c0b0bdf61b448a.tar.gz
podman-138b09c7e28de336717191ec79c0b0bdf61b448a.tar.bz2
podman-138b09c7e28de336717191ec79c0b0bdf61b448a.zip
event backend none: return an error when reading events
podman --events-backend none events should return with an error since it will never be able to actually list events. Fixes part three of #15688 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r--test/system/090-events.bats9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/system/090-events.bats b/test/system/090-events.bats
index 51a327865..509e7a306 100644
--- a/test/system/090-events.bats
+++ b/test/system/090-events.bats
@@ -217,3 +217,12 @@ EOF
--format="{{.Attributes.$lname}}"
assert "$output" = "$lvalue" "podman-events output includes container label"
}
+
+@test "events - backend none should error" {
+ skip_if_remote "remote does not support --events-backend"
+
+ run_podman 125 --events-backend none events
+ is "$output" "Error: cannot read events with the \"none\" backend" "correct error message"
+ run_podman 125 --events-backend none events --stream=false
+ is "$output" "Error: cannot read events with the \"none\" backend" "correct error message"
+}