Debian Codegraph @

test/functional/cases/241_redis_is_dead.robot

raw
1 *** Settings ***
2 Documentation Test the case when trying to connect to nowhere
3 ... (i.e. redis is not running)
4 Test Setup Rspamd Setup
5 Test Teardown Rspamd Teardown
6 Library Process
7 Library ${RSPAMD_TESTDIR}/lib/rspamd.py
8 Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot
9 Variables ${RSPAMD_TESTDIR}/lib/vars.py
10
11
12 *** Variables ***
13 ${CONFIG} ${RSPAMD_TESTDIR}/configs/redis.conf
14 ${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml
15 ${REDIS_SCOPE} Test
16 ${RSPAMD_LUA_SCRIPT} ${RSPAMD_TESTDIR}/lua/redis.lua
17 ${RSPAMD_SCOPE} Test
18 ${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat
19
20
21 *** Test Cases ***
22 Dead Redis client
23 Scan File ${MESSAGE}
24 Expect Symbol With Exact Options REDIS_ERROR_3 Connection refused
25 Expect Symbol With Exact Options REDIS_ASYNC201809_ERROR Connection refused
26 Expect Symbol With Exact Options REDIS_ASYNC_ERROR Connection refused