mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
[Test] Add classifier symbols to the tests
This commit is contained in:
parent
2964a12af4
commit
d21591455e
@ -30,22 +30,32 @@ NO SETTINGS HAM
|
||||
Should Contain ${result.stdout} BAYES_HAM
|
||||
|
||||
ENABLE SYMBOL - NORMAL
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SIMPLE_TEST"]}
|
||||
${result} = Scan Message With Rspamc ${HAM_MESSAGE} --header Settings={symbols_enabled = ["SIMPLE_TEST"]}
|
||||
Check Rspamc ${result} SIMPLE_TEST
|
||||
Should Not Contain ${result.stdout} SIMPLE_PRE
|
||||
Should Not Contain ${result.stdout} SIMPLE_POST
|
||||
Should Not Contain ${result.stdout} BAYES_HAM
|
||||
|
||||
ENABLE SYMBOL - POSTFILTER
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SIMPLE_TEST", "SIMPLE_POST"]}
|
||||
${result} = Scan Message With Rspamc ${HAM_MESSAGE} --header Settings={symbols_enabled = ["SIMPLE_TEST", "SIMPLE_POST"]}
|
||||
Check Rspamc ${result} SIMPLE_TEST
|
||||
Should Contain ${result.stdout} SIMPLE_POST
|
||||
Should Not Contain ${result.stdout} SIMPLE_PRE
|
||||
Should Not Contain ${result.stdout} BAYES_HAM
|
||||
|
||||
ENABLE SYMBOL - PREFILTER
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_enabled = ["SIMPLE_PRE"]}
|
||||
${result} = Scan Message With Rspamc ${HAM_MESSAGE} --header Settings={symbols_enabled = ["SIMPLE_PRE"]}
|
||||
Check Rspamc ${result} SIMPLE_PRE
|
||||
Should Not Contain ${result.stdout} SIMPLE_POST
|
||||
Should Not Contain ${result.stdout} SIMPLE_TEST
|
||||
Should Not Contain ${result.stdout} BAYES_HAM
|
||||
|
||||
ENABLE SYMBOL - CLASSIFIER
|
||||
${result} = Scan Message With Rspamc ${HAM_MESSAGE} --header Settings={symbols_enabled = ["BAYES_HAM", "BAYES_SPAM"]}
|
||||
Check Rspamc ${result} BAYES_HAM
|
||||
Should Not Contain ${result.stdout} SIMPLE_PRE
|
||||
Should Not Contain ${result.stdout} SIMPLE_POST
|
||||
Should Not Contain ${result.stdout} SIMPLE_TEST
|
||||
|
||||
DISABLE SYMBOL - NORMAL
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --header Settings={symbols_disabled = ["SIMPLE_TEST"]}
|
||||
|
Loading…
Reference in New Issue
Block a user