aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-04 15:37:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-04 15:37:52 +0100
commit69765c8a37040bd70e8b473fd392feee011aeb71 (patch)
tree692eb47a0314f6bc4ce7d72e45205447e58a9cdc
parent4fb70ed76f6afd6bc93c56712bc3db9915e43409 (diff)
downloadrspamd-69765c8a37040bd70e8b473fd392feee011aeb71.tar.gz
rspamd-69765c8a37040bd70e8b473fd392feee011aeb71.zip
[Test] Add symbols injection tests
-rw-r--r--test/functional/cases/108_settings.robot5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/cases/108_settings.robot b/test/functional/cases/108_settings.robot
index bc20261c6..63985f883 100644
--- a/test/functional/cases/108_settings.robot
+++ b/test/functional/cases/108_settings.robot
@@ -72,6 +72,11 @@ RESCORE SYMBOL - NORMAL
${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={SIMPLE_TEST = 3.33}
Check Rspamc ${result} SIMPLE_TEST (3.33)
+INJECT SYMBOL - NORMAL
+ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols = ["INJECTED_SYMBOL1", "INJECTED_SYMBOL2"]}
+ Check Rspamc ${result} INJECTED_SYMBOL1
+ Should Contain ${result.stdout} INJECTED_SYMBOL2
+
RESCORE ACTION
${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={actions { reject = 1234.5; } }
Check Rspamc ${result} ${SPACE}/ 1234.50