From 4f1f869748207d12c2deda80e12aeb206ce37fcb Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 14 Aug 2019 09:56:06 +0100 Subject: [Test] Add large https body test --- test/functional/cases/220_http.robot | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/functional/cases') 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} -- cgit v1.2.3