]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add symbols injection tests
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Jul 2019 14:37:52 +0000 (15:37 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 4 Jul 2019 14:37:52 +0000 (15:37 +0100)
test/functional/cases/108_settings.robot

index bc20261c63d1c568ddc2329da03c5897b18c1bb9..63985f883541666286e22ae508a7a98b54dc44c9 100644 (file)
@@ -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