aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/180_milter.robot
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2018-01-30 17:06:35 +0200
committerAndrew Lewis <nerf@judo.za.org>2018-01-30 17:06:35 +0200
commit77e0862c9eb71bf1aa22892235d3aaad4431d236 (patch)
tree68ea9819396c19b394dfc71755a124df2b8cbdd3 /test/functional/cases/180_milter.robot
parentb8137c5f9c9716e781d7cbae76911774603bdc09 (diff)
downloadrspamd-77e0862c9eb71bf1aa22892235d3aaad4431d236.tar.gz
rspamd-77e0862c9eb71bf1aa22892235d3aaad4431d236.zip
[Test] Beginning of tests for milter
Diffstat (limited to 'test/functional/cases/180_milter.robot')
-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