Explorar el Código

Merge pull request #3250 from korgoth1/master

[Test] Setting's priority
tags/2.4
Vsevolod Stakhov hace 4 años
padre
commit
ee09cae67b
No account linked to committer's email address

+ 6
- 0
test/functional/cases/108_settings.robot Ver fichero

@@ -9,6 +9,7 @@ Variables ${TESTDIR}/lib/vars.py
${CONFIG} ${TESTDIR}/configs/plugins.conf
${LUA_SCRIPT} ${TESTDIR}/lua/settings.lua
${MESSAGE} ${TESTDIR}/messages/spam_message.eml
${MESSAGE_PRIORITY} ${TESTDIR}/messages/priority.eml
${MESSAGE_7BIT} ${TESTDIR}/messages/utf.eml
${MESSAGE_CUSTOM_HDR} ${TESTDIR}/messages/empty-plain-text.eml
${MESSAGE_ABSENT_MIME} ${TESTDIR}/messages/ed25519.eml
@@ -221,6 +222,11 @@ SETTINGS ID - VIRTUAL DEP
Should Not Contain ${result.stdout} SIMPLE_POST
Should Not Contain ${result.stdout} SIMPLE_PRE

PRIORITY
${result} = Scan Message With Rspamc ${MESSAGE_PRIORITY} --header Settings-Id=id_virtual_group --from user@test.com
Should Contain ${result.stdout} PRIORITY_2


*** Keywords ***
Settings Setup
Copy File ${TESTDIR}/data/bayes.spam.sqlite3 /tmp/bayes.spam.sqlite3

+ 14
- 0
test/functional/configs/settings.conf Ver fichero

@@ -53,7 +53,21 @@ settings {
}
}
}

id_test_priority {
priority = high;
from = "user@test.com";
apply {
symbols_enabled {
PRIORITY = 10.0;
}
symbols {
PRIORITY_2 = 10.0
}
}
}
}

classifier {
backend = "sqlite3";
statfile {

+ 5
- 0
test/functional/messages/priority.eml Ver fichero

@@ -0,0 +1,5 @@
From: user@test.com
To: undisclosed-recipients;;

Content-Transfer-Encoding: base64
asdasdlsadklsad

Cargando…
Cancelar
Guardar