diff options
author | baude <bbaude@redhat.com> | 2020-10-21 11:59:35 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2020-10-23 12:07:34 -0500 |
commit | c593e49701b3a4bb48050f3d8829f2fe6ac457ef (patch) | |
tree | f69648182082c37d4416efdb5405a9431984463c /test | |
parent | 51fa8ded9ffb7924288a2728ce92af7f6cc66d34 (diff) | |
download | podman-c593e49701b3a4bb48050f3d8829f2fe6ac457ef.tar.gz podman-c593e49701b3a4bb48050f3d8829f2fe6ac457ef.tar.bz2 podman-c593e49701b3a4bb48050f3d8829f2fe6ac457ef.zip |
filter events by labels
adding the ability to filter evens by the container labels. this requires that container labels be added to the events data being recorded and subsequently read.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/system/090-events.bats | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/system/090-events.bats b/test/system/090-events.bats new file mode 100644 index 000000000..06e28ec3a --- /dev/null +++ b/test/system/090-events.bats @@ -0,0 +1,14 @@ +#!/usr/bin/env bats -*- bats -*- +# +# tests for podman events functionality +# + +load helpers + +@test "events with a filter by label" { + skip_if_remote "Need to talk to Ed on why this is failing on remote" + rand=$(random_string 30) + run_podman 0 run --label foo=bar --name test-$rand --rm $IMAGE ls + run_podman 0 events --filter type=container --filter container=test-$rand --filter label=foo=bar --filter event=start --stream=false + is "$output" ".*foo=bar" "check for label event on container with label" +} |