summaryrefslogtreecommitdiffstats
path: root/test/functional/cases/108_settings.robot
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/cases/108_settings.robot')
-rw-r--r--test/functional/cases/108_settings.robot25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/functional/cases/108_settings.robot b/test/functional/cases/108_settings.robot
index d9301e2fa..76f224653 100644
--- a/test/functional/cases/108_settings.robot
+++ b/test/functional/cases/108_settings.robot
@@ -18,6 +18,15 @@ ${HAM_MESSAGE} ${TESTDIR}/messages/ham.eml
${RSPAMD_SCOPE} Suite
${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
+*** Keywords ***
+Check Everything Disabled
+ [Arguments] ${result}
+ Check Rspamc ${result} Action: no action
+ Should Not Contain ${result.stdout} SIMPLE_VIRTUAL
+ Should Not Contain ${result.stdout} SIMPLE_PRE
+ Should Not Contain ${result.stdout} SIMPLE_POST
+ Should Not Contain ${result.stdout} BAYES_SPAM
+
*** Test Cases ***
NO SETTINGS SPAM
${result} = Scan Message With Rspamc ${SPAM_MESSAGE}
@@ -35,6 +44,22 @@ NO SETTINGS HAM
Should Contain ${result.stdout} SIMPLE_POST
Should Contain ${result.stdout} BAYES_HAM
+EMPTY SYMBOLS ENABLED - STATIC
+ ${result} = Scan Message With Rspamc ${SPAM_MESSAGE} -i 5.5.5.5
+ Check Everything Disabled ${result}
+
+EMPTY GROUPS ENABLED - STATIC
+ ${result} = Scan Message With Rspamc ${SPAM_MESSAGE} -i 5.5.5.6
+ Check Everything Disabled ${result}
+
+EMPTY SYMBOLS ENABLED - SETTINGS-ID
+ ${result} = Scan Message With Rspamc ${SPAM_MESSAGE} --header Settings-Id=empty_symbols_enabled
+ Check Everything Disabled ${result}
+
+EMPTY GROUPS ENABLED - SETTINGS-ID
+ ${result} = Scan Message With Rspamc ${SPAM_MESSAGE} --header Settings-Id=empty_groups_enabled
+ Check Everything Disabled ${result}
+
ENABLE SYMBOL - NORMAL
${result} = Scan Message With Rspamc ${HAM_MESSAGE} --header Settings={symbols_enabled = ["SIMPLE_TEST"]}
Check Rspamc ${result} SIMPLE_TEST