aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-10 11:54:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-06-10 11:54:07 +0100
commitec7eeb63326cdd8b0b9b02e12b9191735fad40ef (patch)
tree4bf8da239918a482419b1650a998ed4024bfa4fa /test/functional/cases
parent2cd0ba298343a82ca09456f3b056d8a8d3a25fac (diff)
downloadrspamd-ec7eeb63326cdd8b0b9b02e12b9191735fad40ef.tar.gz
rspamd-ec7eeb63326cdd8b0b9b02e12b9191735fad40ef.zip
[Test] Add settings id tests
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/108_settings.robot12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/cases/108_settings.robot b/test/functional/cases/108_settings.robot
index 4ed2b53f5..44d9b8b4d 100644
--- a/test/functional/cases/108_settings.robot
+++ b/test/functional/cases/108_settings.robot
@@ -63,6 +63,18 @@ ENABLE GROUP - NORMAL
Should Not Contain ${result.stdout} SIMPLE_PRE
Should Not Contain ${result.stdout} SIMPLE_POST
+SETTINGS ID - NORMAL
+ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings-Id=id_test
+ Check Rspamc ${result} SIMPLE_TEST
+ Should Not Contain ${result.stdout} SIMPLE_PRE
+ Should Not Contain ${result.stdout} SIMPLE_POST
+
+SETTINGS ID - PRE
+ ${result} = Scan Message With Rspamc ${MESSAGE} --header Settings-Id=id_pre
+ Check Rspamc ${result} SIMPLE_PRE
+ Should Not Contain ${result.stdout} SIMPLE_TEST
+ Should Not Contain ${result.stdout} SIMPLE_POST
+
*** Keywords ***
Settings Setup
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/settings.conf