Improve reliability test for fluentd forward-aggregator test (#19176)

Signed-off-by: Beltran Rueda Borrego <beltranrueda@vmware.com>
This commit is contained in:
Beltran
2023-09-07 16:51:23 +02:00
committed by GitHub
parent 27fea24667
commit 1541a61ef5

View File

@@ -23,7 +23,7 @@ command:
# we check that the Aggregator is aware of the newly created file.
{{ with (printf "test-%s.log" (randAlpha 5)) }}
forward-aggregator-integration:
exec: "cd /var/log/containers && echo '{\"time\": \"2022-07-29T11:33:47.408955753Z\", \"data\": \"zwiebel\"}' > {{.}} && sleep 65 && find . -name \"*fluentd-0*\" -exec tail {} \\;"
exec: "cd /var/log/containers && echo '{\"time\": \"2022-07-29T11:33:47.408955753Z\", \"data\": \"zwiebel\"}' > {{.}} && sleep 90 && find . -name \"*fluentd-0*\" -exec tail -n 500 {} \\;"
exit-status: 0
stdout:
- {{.}}