From 208de74ae07caf4d8d1cb7c74f0b10ac8ce46a5a Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Mon, 18 Apr 2022 13:27:26 +0200 Subject: [PATCH] Run import test in case1 Signed-off-by: Janos SUTO --- tests/cases/05-smtp.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/cases/05-smtp.inc b/tests/cases/05-smtp.inc index 2e5e7906..b3257da5 100644 --- a/tests/cases/05-smtp.inc +++ b/tests/cases/05-smtp.inc @@ -31,6 +31,8 @@ case1() { docker exec "piler1" su piler -c 'php /usr/libexec/piler/generate_stats.php --webui /var/piler/www --start=2015/01/01 --stop=2021/12/31' docker exec "piler1" su piler -c 'php /usr/libexec/piler/sign.php --webui /var/piler/www --mode time' + + run_import_job "piler1" } @@ -74,3 +76,12 @@ append_queries() { append_query "select * from main1,dailydelta1,delta1 WHERE MATCH('@(subject,body) New Task TSK002*')" 29 append_query "select * from main1,dailydelta1,delta1 WHERE MATCH('@subject \"virtualfax daily summary\" | \"adsl hibajegy\"')" 11 } + + +run_import_job() { + local container="$1" + + log "${FUNCNAME[0]}" + + docker exec "$container" su piler -c /usr/libexec/piler/import.sh +}