summaryrefslogtreecommitdiffstats
path: root/test/functional/cases
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-01-30 18:38:00 +0000
committerGitHub <noreply@github.com>2018-01-30 18:38:00 +0000
commitfc32c386a278852134b5986ca0d7687b40bbf36c (patch)
treef07bd694b090b2a4c66375a85e30ac4fba26160c /test/functional/cases
parentecb4f1bb448c5342a77daec3f6936fb0ae9701a9 (diff)
parent77e0862c9eb71bf1aa22892235d3aaad4431d236 (diff)
downloadrspamd-fc32c386a278852134b5986ca0d7687b40bbf36c.tar.gz
rspamd-fc32c386a278852134b5986ca0d7687b40bbf36c.zip
Merge pull request #2007 from fatalbanana/miltertest
Beginnings of tests for milter
Diffstat (limited to 'test/functional/cases')
-rw-r--r--test/functional/cases/180_milter.robot23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/functional/cases/180_milter.robot b/test/functional/cases/180_milter.robot
new file mode 100644
index 000000000..b597914ab
--- /dev/null
+++ b/test/functional/cases/180_milter.robot
@@ -0,0 +1,23 @@
+*** Settings ***
+Suite Setup Milter Setup
+Suite Teardown Generic Teardown
+Library Process
+Library ${TESTDIR}/lib/rspamd.py
+Resource ${TESTDIR}/lib/rspamd.robot
+Variables ${TESTDIR}/lib/vars.py
+
+*** Variables ***
+${RSPAMD_SCOPE} Suite
+${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
+
+*** Test Cases ***
+SIMPLE MILTER TEST
+ ${result} = Run Process miltertest -Dport\=${PORT_PROXY} -Dhost\=${LOCAL_ADDR} -s ${TESTDIR}/lua/miltertest/mt1.lua
+ Follow Rspamd Log
+ Should Match Regexp ${result.stderr} ^$
+ Should Match Regexp ${result.stdout} ^$
+ Should Be Equal As Integers ${result.rc} 0 msg=${result.stdout} values=false
+
+*** Keywords ***
+Milter Setup
+ Generic Setup CONFIG=${TESTDIR}/configs/milter.conf