summaryrefslogtreecommitdiffstats
path: root/test/functional/cases/240_redis.robot
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2021-05-04 13:48:37 +0200
committerAndrew Lewis <nerf@judo.za.org>2021-05-04 13:48:37 +0200
commitdb4da2c22d159d1a6450b9447ad90e1795e5c535 (patch)
treee2c05c4e4d0668e02a7a5e2b279c5d76d1403b90 /test/functional/cases/240_redis.robot
parent6244d64b43baa240d63528849a7a47b3f32eccc3 (diff)
downloadrspamd-db4da2c22d159d1a6450b9447ad90e1795e5c535.tar.gz
rspamd-db4da2c22d159d1a6450b9447ad90e1795e5c535.zip
[Test] Use lupa for templating rspamd configs
Diffstat (limited to 'test/functional/cases/240_redis.robot')
-rw-r--r--test/functional/cases/240_redis.robot17
1 files changed, 3 insertions, 14 deletions
diff --git a/test/functional/cases/240_redis.robot b/test/functional/cases/240_redis.robot
index 169523330..307a6cdb0 100644
--- a/test/functional/cases/240_redis.robot
+++ b/test/functional/cases/240_redis.robot
@@ -1,6 +1,6 @@
*** Settings ***
Test Setup Redis Setup
-Test Teardown Redis Teardown
+Test Teardown Normal Teardown
Library Process
Library ${TESTDIR}/lib/rspamd.py
Resource ${TESTDIR}/lib/rspamd.robot
@@ -11,7 +11,7 @@ Suite Teardown Terminate All Processes kill=True
*** Variables ***
${REDIS_SCOPE} Test
${RSPAMD_SCOPE} Test
-${CONFIG} ${TESTDIR}/configs/plugins.conf
+${CONFIG} ${TESTDIR}/configs/redis.conf
${URL_TLD} ${TESTDIR}/../lua/unit/test_tld.dat
${MESSAGE} ${TESTDIR}/messages/spam_message.eml
@@ -25,17 +25,6 @@ Redis client
Expect Symbol With Exact Options REDIS_ASYNC201809 test value
*** Keywords ***
-Lua Setup
- [Arguments] ${LUA_SCRIPT}
- Set Suite Variable ${LUA_SCRIPT}
- ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/redis.conf
- Set Suite Variable ${PLUGIN_CONFIG}
- Generic Setup PLUGIN_CONFIG
-
Redis Setup
- Lua Setup ${TESTDIR}/lua/redis.lua
+ New Setup LUA_SCRIPT=${TESTDIR}/lua/redis.lua
Run Redis
-
-Redis Teardown
- Normal Teardown
- Shutdown Process With Children ${REDIS_PID}