summaryrefslogtreecommitdiffstats
path: root/test/functional/cases/121_json.robot
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-08-12 17:00:56 +0100
committerAndrew Lewis <nerf@judo.za.org>2016-08-12 17:24:30 +0100
commit188725d470dc3b9bc9ea3fbc291e05cb7623f2f4 (patch)
tree9c7918261713b32c9c0ef830f5282c1f859c0abb /test/functional/cases/121_json.robot
parent34696a9cb11cbc8c0c969d52d57936f2ab2b2bf0 (diff)
downloadrspamd-188725d470dc3b9bc9ea3fbc291e05cb7623f2f4.tar.gz
rspamd-188725d470dc3b9bc9ea3fbc291e05cb7623f2f4.zip
[Test] Some minor updates for tests
- Removed horrible features from test library - Negative cases for SpamAssassin WLBLEval - Restructured JSON tests
Diffstat (limited to 'test/functional/cases/121_json.robot')
-rw-r--r--test/functional/cases/121_json.robot28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/functional/cases/121_json.robot b/test/functional/cases/121_json.robot
deleted file mode 100644
index 2bb432f5a..000000000
--- a/test/functional/cases/121_json.robot
+++ /dev/null
@@ -1,28 +0,0 @@
-*** Settings ***
-Suite Setup Generic Setup
-Suite Teardown Generic Teardown
-Library ${TESTDIR}/lib/rspamd.py
-Resource ${TESTDIR}/lib/rspamd.robot
-Variables ${TESTDIR}/lib/vars.py
-
-*** Variables ***
-${CONFIG} ${TESTDIR}/configs/lua_test.conf
-${LUA_SCRIPT} ${TESTDIR}/lua/preresult.lua
-${MESSAGE} ${TESTDIR}/messages/spam_message.eml
-${RSPAMD_SCOPE} Suite
-
-*** Test Cases ***
-Stat
- @{result} = HTTP GET ${LOCAL_ADDR} ${PORT_CONTROLLER} /stat
- Check JSON @{result}[1]
-
-History
- ${result} = Scan Message With Rspamc ${MESSAGE}
- Check Rspamc ${result} soft reject
- @{result} = HTTP GET ${LOCAL_ADDR} ${PORT_CONTROLLER} /history
- Check JSON @{result}[1]
-
-Scan
- ${content} = Get File ${MESSAGE}
- @{result} = HTTP POST ${LOCAL_ADDR} ${PORT_NORMAL} /check ${content}
- Check JSON @{result}[1]