@@ -7,7 +7,11 @@ Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot | |||
Variables ${RSPAMD_TESTDIR}/lib/vars.py | |||
*** Variables *** | |||
${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml | |||
${CONFIG} ${RSPAMD_TESTDIR}/configs/lua_test.conf | |||
${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml | |||
${RSPAMD_LUA_SCRIPT} ${RSPAMD_TESTDIR}/lua/http.lua | |||
${RSPAMD_SCOPE} Suite | |||
${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat | |||
*** Test Cases *** | |||
Simple HTTP request | |||
@@ -61,12 +65,14 @@ SSL Large HTTP request | |||
Http Setup | |||
Run Dummy Http | |||
Run Dummy Https | |||
Rspamd Setup | |||
Http Teardown | |||
${http_pid} = Get File /tmp/dummy_http.pid | |||
Shutdown Process With Children ${http_pid} | |||
${https_pid} = Get File /tmp/dummy_https.pid | |||
Shutdown Process With Children ${https_pid} | |||
Rspamd Teardown | |||
Run Dummy Http | |||
${result} = Start Process ${RSPAMD_TESTDIR}/util/dummy_http.py |
@@ -7,8 +7,11 @@ Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot | |||
Variables ${RSPAMD_TESTDIR}/lib/vars.py | |||
*** Variables *** | |||
${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml | |||
${CONFIG} ${RSPAMD_TESTDIR}/configs/lua_test.conf | |||
${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml | |||
${RSPAMD_LUA_SCRIPT} ${RSPAMD_TESTDIR}/lua/tcp.lua | |||
${RSPAMD_SCOPE} Suite | |||
${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat | |||
*** Test Cases *** | |||
Simple TCP request | |||
@@ -48,12 +51,14 @@ Sync API TCP post request | |||
Servers Setup | |||
Run Dummy Http | |||
Run Dummy Ssl | |||
Rspamd Setup | |||
Servers Teardown | |||
${http_pid} = Get File /tmp/dummy_http.pid | |||
Shutdown Process With Children ${http_pid} | |||
${ssl_pid} = Get File /tmp/dummy_ssl.pid | |||
Shutdown Process With Children ${ssl_pid} | |||
Rspamd Teardown | |||
Run Dummy Http | |||
[Arguments] |
@@ -1,10 +1,17 @@ | |||
*** Settings *** | |||
Suite Setup Rspamd Setup | |||
Suite Teardown Rspamd Teardown | |||
Library ${RSPAMD_TESTDIR}/lib/rspamd.py | |||
Resource ${RSPAMD_TESTDIR}/lib/rspamd.robot | |||
Variables ${RSPAMD_TESTDIR}/lib/vars.py | |||
*** Variables *** | |||
${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml | |||
${CONFIG} ${RSPAMD_TESTDIR}/configs/lua_test.conf | |||
${MESSAGE} ${RSPAMD_TESTDIR}/messages/spam_message.eml | |||
${RSPAMD_LUA_SCRIPT} ${RSPAMD_TESTDIR}/lua/tcp.lua | |||
${RSPAMD_SCOPE} Suite | |||
${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat | |||
*** Test Cases *** | |||
Sync API TCP get request when server is down |
@@ -1,3 +1,19 @@ | |||
history_redis { | |||
enabled = false; | |||
} | |||
neural { | |||
enabled = false; | |||
} | |||
bayes_expiry { | |||
enabled = false; | |||
} | |||
metric_exporter { | |||
enabled = false; | |||
} | |||
emails { | |||
"whitelist" = [ | |||
"rspamd-test.com" |
@@ -13,12 +13,6 @@ lua = "{= env.TESTDIR =}/lua/tlds.lua" | |||
# 104_get_from | |||
lua = "{= env.TESTDIR =}/lua/get_from.lua" | |||
# 220_http | |||
lua = "{= env.TESTDIR =}/lua/http.lua" | |||
# 230_tcp / 231_tcp_down | |||
lua = "{= env.TESTDIR =}/lua/tcp.lua" | |||
# 240_redis | |||
lua = "{= env.TESTDIR =}/lua/redis.lua" | |||