aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/cases/231_tcp_down.robot
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2021-05-04 21:43:55 +0200
committerAndrew Lewis <nerf@judo.za.org>2021-05-04 21:52:33 +0200
commita84cecac6bef1211cf8ab245d997b6ac64b6686a (patch)
tree6df6518a5cc60411967a513fa8e5bc418316a1d5 /test/functional/cases/231_tcp_down.robot
parentdb4da2c22d159d1a6450b9447ad90e1795e5c535 (diff)
downloadrspamd-a84cecac6bef1211cf8ab245d997b6ac64b6686a.tar.gz
rspamd-a84cecac6bef1211cf8ab245d997b6ac64b6686a.zip
[Test] Use automatically exported variables
Diffstat (limited to 'test/functional/cases/231_tcp_down.robot')
-rw-r--r--test/functional/cases/231_tcp_down.robot24
1 files changed, 9 insertions, 15 deletions
diff --git a/test/functional/cases/231_tcp_down.robot b/test/functional/cases/231_tcp_down.robot
index 25a55dd2d..710698ef1 100644
--- a/test/functional/cases/231_tcp_down.robot
+++ b/test/functional/cases/231_tcp_down.robot
@@ -1,16 +1,16 @@
*** Settings ***
-Test Setup Http Setup
-Test Teardown Http Teardown
+Test Setup New Setup
+Test Teardown Normal Teardown
Library Process
-Library ${TESTDIR}/lib/rspamd.py
-Resource ${TESTDIR}/lib/rspamd.robot
-Variables ${TESTDIR}/lib/vars.py
+Library ${RSPAMD_TESTDIR}/lib/rspamd.py
+Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot
+Variables ${RSPAMD_TESTDIR}/lib/vars.py
*** Variables ***
-# ${CONFIG} ${TESTDIR}/configs/http.conf
-${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
-${CONFIG} ${TESTDIR}/configs/lua_test.conf
-${MESSAGE} ${TESTDIR}/messages/spam_message.eml
+${RSPAMD_LUA_SCRIPT} ${RSPAMD_TESTDIR}/lua/tcp.lua
+${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat
+${CONFIG} ${RSPAMD_TESTDIR}/configs/lua_test.conf
+${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml
${RSPAMD_SCOPE} Test
*** Test Cases ***
@@ -23,12 +23,6 @@ Sync API TCP get request when server is down
*** Keywords ***
-Http Setup
- New Setup LUA_SCRIPT=${TESTDIR}/lua/tcp.lua URL_TLD=${URL_TLD}
-
-Http Teardown
- Normal Teardown
-
Check url
[Arguments] ${url} ${method} @{expect_results}
${result} = Scan Message With Rspamc --header=url:${url} --header=method:${method} ${MESSAGE}