Skip to content

Commit

Permalink
test: update test to contain long label
Browse files Browse the repository at this point in the history
Signed-off-by: Matej Vasek <mvasek@redhat.com>
  • Loading branch information
matejvasek committed Dec 8, 2022
1 parent 04ea8ea commit 49b7689
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/system/090-events.bats
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ load helpers
labelname=$(random_string 10)
labelvalue=$(random_string 15)

run_podman run --label $labelname=$labelvalue --name $cname --rm $IMAGE ls
# too-long-label is used to ensure no syslog entry is truncated
run_podman run --label $labelname=$labelvalue --label "too-long-label=$(random_string 150000)" --name $cname --rm $IMAGE ls

expect=".* container start [0-9a-f]\+ (image=$IMAGE, name=$cname,.* ${labelname}=${labelvalue}"
run_podman events --filter type=container -f container=$cname --filter label=${labelname}=${labelvalue} --filter event=start --stream=false
Expand Down

0 comments on commit 49b7689

Please sign in to comment.