diff options
Diffstat (limited to 'test/functional/cases/241_redis_is_dead.robot')
-rw-r--r-- | test/functional/cases/241_redis_is_dead.robot | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/test/functional/cases/241_redis_is_dead.robot b/test/functional/cases/241_redis_is_dead.robot index 223ada965..9a67c61e6 100644 --- a/test/functional/cases/241_redis_is_dead.robot +++ b/test/functional/cases/241_redis_is_dead.robot @@ -1,8 +1,8 @@ *** Settings *** Documentation Test the case when trying to connect to nowhere ... (i.e. redis is not running) -Test Setup Redis Setup -Test Teardown Redis Teardown +Test Setup Dead Redis Setup +Test Teardown Normal Teardown Library Process Library ${TESTDIR}/lib/rspamd.py Resource ${TESTDIR}/lib/rspamd.robot @@ -13,7 +13,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 @@ -26,16 +26,5 @@ Dead Redis client Expect Symbol With Exact Options REDIS_ASYNC_ERROR Connection refused *** 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 - -Redis Teardown - Normal Teardown -# Shutdown Process With Children ${REDIS_PID} +Dead Redis Setup + New Setup LUA_SCRIPT=${TESTDIR}/lua/redis.lua |