commit 69765c8: [Test] Add symbols injection tests
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Jul 4 14:42:05 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-07-04 15:37:52 +0100
URL: https://github.com/rspamd/rspamd/commit/69765c8a37040bd70e8b473fd392feee011aeb71
[Test] Add symbols injection tests
---
test/functional/cases/108_settings.robot | 5 +++++
1 file changed, 5 insertions(+)
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
More information about the Commits
mailing list