summaryrefslogtreecommitdiffstats
path: root/test/functional/cases/220_http.robot
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-14 09:56:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-14 09:56:06 +0100
commit4f1f869748207d12c2deda80e12aeb206ce37fcb (patch)
tree352b8b6acfb90d1b073226e8c866ebf578710c5e /test/functional/cases/220_http.robot
parent5a5e892a64a1d23964010620c529d0947d692237 (diff)
downloadrspamd-4f1f869748207d12c2deda80e12aeb206ce37fcb.tar.gz
rspamd-4f1f869748207d12c2deda80e12aeb206ce37fcb.zip
[Test] Add large https body test
Diffstat (limited to 'test/functional/cases/220_http.robot')
-rw-r--r--test/functional/cases/220_http.robot9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/cases/220_http.robot b/test/functional/cases/220_http.robot
index b4292897e..acdb75431 100644
--- a/test/functional/cases/220_http.robot
+++ b/test/functional/cases/220_http.robot
@@ -35,6 +35,9 @@ HTTP empty response
Check url /empty get HTTP_ERROR HTTP_ERROR HTTP_CORO_DNS_ERROR HTTP_CORO_ERROR method_get IO read error: unexpected EOF
Check url /empty post HTTP_DNS_ERROR HTTP_ERROR HTTP_CORO_DNS_ERROR HTTP_CORO_ERROR method_post IO read error: unexpected EOF
+SSL Large HTTP request
+ ${result} = Scan Message With Rspamc ${MESSAGE}
+ Check Rspamc ${result} HTTP_SSL_LARGE
*** Keywords ***
Lua Setup
@@ -44,17 +47,23 @@ Lua Setup
Http Setup
Run Dummy Http
+ Run Dummy Https
Lua Setup ${TESTDIR}/lua/http.lua
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}
Normal Teardown
Run Dummy Http
${result} = Start Process ${TESTDIR}/util/dummy_http.py
Wait Until Created /tmp/dummy_http.pid
+Run Dummy Https
+ ${result} = Start Process ${TESTDIR}/util/dummy_https.py ${TESTDIR}/util/server.pem
+ Wait Until Created /tmp/dummy_https.pid
Check url
[Arguments] ${url} ${method} @{expect_results}