${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}
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