summaryrefslogtreecommitdiffstats
path: root/test/functional/cases/120_fuzzy
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2018-01-29 11:27:46 +0200
committerAndrew Lewis <nerf@judo.za.org>2018-01-29 11:27:46 +0200
commit4a070b96c05f1750f49077bd05ac5e3b394db1cf (patch)
treebc1d6dbebf5125c042a43c48a392c166289f330a /test/functional/cases/120_fuzzy
parent034f835adde059fe777ee9fc3d42fa7b2193d3bc (diff)
downloadrspamd-4a070b96c05f1750f49077bd05ac5e3b394db1cf.tar.gz
rspamd-4a070b96c05f1750f49077bd05ac5e3b394db1cf.zip
[Test] Try really improve test stability
- Drop tests involving sqlite - Also drop tests for old mmap stats backend - Relax relearn test - Wait longer for fuzzy sync
Diffstat (limited to 'test/functional/cases/120_fuzzy')
-rw-r--r--test/functional/cases/120_fuzzy/lib.robot17
-rw-r--r--test/functional/cases/120_fuzzy/redis-general.robot31
2 files changed, 8 insertions, 40 deletions
diff --git a/test/functional/cases/120_fuzzy/lib.robot b/test/functional/cases/120_fuzzy/lib.robot
index c71618b22..0f285e866 100644
--- a/test/functional/cases/120_fuzzy/lib.robot
+++ b/test/functional/cases/120_fuzzy/lib.robot
@@ -13,6 +13,7 @@ ${FLAG2_NUMBER} 51
${FLAG2_SYMBOL} R_TEST_FUZZY_WHITE
@{MESSAGES} ${TESTDIR}/messages/spam_message.eml ${TESTDIR}/messages/zip.eml
@{RANDOM_MESSAGES} ${TESTDIR}/messages/bad_message.eml ${TESTDIR}/messages/zip-doublebad.eml
+${REDIS_SCOPE} Suite
${RSPAMD_SCOPE} Suite
${SETTINGS_FUZZY_WORKER} ${EMPTY}
${SETTINGS_FUZZY_CHECK} ${EMPTY}
@@ -92,12 +93,13 @@ Fuzzy Setup Keyed
Fuzzy Setup Generic
[Arguments] ${algorithm} ${worker_settings} ${check_settings} &{kwargs}
- ${has_TMPDIR} = Evaluate 'TMPDIR' in $kwargs
+ ${worker_settings} = Set Variable backend \= "redis"; ${worker_settings}
+ ${tmpdir} = Make Temporary Directory
+ Set Suite Variable ${TMPDIR} ${tmpdir}
Set Suite Variable ${SETTINGS_FUZZY_WORKER} ${worker_settings}
Set Suite Variable ${SETTINGS_FUZZY_CHECK} ${check_settings}
- Set Suite Variable ${ALGORITHM} ${algorithm}
- Run Keyword If '${has_TMPDIR}' == 'True' Generic Setup TMPDIR=&{kwargs}[TMPDIR]
- ... ELSE Generic Setup
+ Run Redis
+ Generic Setup TMPDIR=${TMPDIR}
Fuzzy Setup Plain Fasthash
Fuzzy Setup Plain fasthash
@@ -147,8 +149,5 @@ Fuzzy Multimessage Overwrite Test
\ Fuzzy Overwrite Test ${i}
Fuzzy Teardown
- ${port_normal} = Create List ${SOCK_STREAM} ${LOCAL_ADDR} ${PORT_NORMAL}
- ${port_fuzzy} = Create List ${SOCK_DGRAM} ${LOCAL_ADDR} ${PORT_FUZZY}
- ${port_controller} = Create List ${SOCK_STREAM} ${LOCAL_ADDR} ${PORT_CONTROLLER}
- ${ports} = Create List ${port_normal} ${port_fuzzy} ${port_controller}
- Generic Teardown @{ports}
+ Normal Teardown
+ Shutdown Process With Children ${REDIS_PID}
diff --git a/test/functional/cases/120_fuzzy/redis-general.robot b/test/functional/cases/120_fuzzy/redis-general.robot
deleted file mode 100644
index 056b177c8..000000000
--- a/test/functional/cases/120_fuzzy/redis-general.robot
+++ /dev/null
@@ -1,31 +0,0 @@
-*** Settings ***
-Suite Setup Fuzzy Redis General Setup
-Suite Teardown Fuzzy Redis General Teardown
-Resource lib.robot
-
-*** Variables ***
-${REDIS_SCOPE} Suite
-
-*** Test Cases ***
-Fuzzy Add
- Fuzzy Multimessage Add Test
-
-Fuzzy Fuzzy
- Fuzzy Multimessage Fuzzy Test
-
-Fuzzy Delete
- Fuzzy Multimessage Delete Test
-
-Fuzzy Overwrite
- Fuzzy Multimessage Overwrite Test
-
-*** Keywords ***
-Fuzzy Redis General Setup
- ${tmpdir} = Make Temporary Directory
- Set Suite Variable ${TMPDIR} ${tmpdir}
- Run Redis
- Fuzzy Setup Generic siphash backend \= "redis"; ${EMPTY} TMPDIR=${TMPDIR}
-
-Fuzzy Redis General Teardown
- Normal Teardown
- Shutdown Process With Children ${REDIS_PID}