From 39047bb22e66bf46f2e8919ffabec0108e8049b0 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 31 Dec 2022 16:46:20 +0000 Subject: [PATCH] [Test] Fix more tests --- test/functional/cases/116_dkim.robot | 2 +- test/functional/cases/162_url_redirector.robot | 2 +- test/functional/lua/tcp.lua | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/test/functional/cases/116_dkim.robot b/test/functional/cases/116_dkim.robot index 369358838..e710f659d 100644 --- a/test/functional/cases/116_dkim.robot +++ b/test/functional/cases/116_dkim.robot @@ -8,7 +8,7 @@ Variables ${RSPAMD_TESTDIR}/lib/vars.py *** Variables *** ${CONFIG} ${RSPAMD_TESTDIR}/configs/dkim.conf ${RSPAMD_SCOPE} Suite -${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../../contrib/publicsuffix/effective_tld_names.dat +${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat *** Test Cases *** DKIM PERMFAIL NXDOMAIN diff --git a/test/functional/cases/162_url_redirector.robot b/test/functional/cases/162_url_redirector.robot index 0519fafa0..10b712dff 100644 --- a/test/functional/cases/162_url_redirector.robot +++ b/test/functional/cases/162_url_redirector.robot @@ -11,7 +11,7 @@ ${CONFIG} ${RSPAMD_TESTDIR}/configs/url_redirector.conf ${MESSAGE} ${RSPAMD_TESTDIR}/messages/redir.eml ${REDIS_SCOPE} Suite ${RSPAMD_SCOPE} Suite -${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../../contrib/publicsuffix/effective_tld_names.dat +${RSPAMD_URL_TLD} ${RSPAMD_TESTDIR}/../lua/unit/test_tld.dat ${SETTINGS} {symbols_enabled=[URL_REDIRECTOR_CHECK]} *** Test Cases *** diff --git a/test/functional/lua/tcp.lua b/test/functional/lua/tcp.lua index 8068003e8..e5c765ba0 100644 --- a/test/functional/lua/tcp.lua +++ b/test/functional/lua/tcp.lua @@ -122,7 +122,7 @@ local function http_simple_tcp_symbol(task) logger.errx(task, 'connect_sync %1, %2', is_ok, tostring(connection)) - is_ok, err = connection:write('GET /request_sync HTTP/1.1\r\nConnection: keep-alive\r\n\r\n') + is_ok, err = connection:write('GET /request HTTP/1.1\r\nConnection: keep-alive\r\n\r\n') logger.errx(task, 'write %1, %2', is_ok, err) if not is_ok then @@ -149,7 +149,7 @@ local function http_simple_tcp_symbol(task) task:insert_result('HTTP_SYNC_RESPONSE', 1.0, got_content) - is_ok, err = connection:write("POST /request2 HTTP/1.1\r\n\r\n") + is_ok, err = connection:write("POST /request HTTP/1.1\r\n\r\n") logger.errx(task, 'write[2] %1, %2', is_ok, err) got_content = '' @@ -163,7 +163,6 @@ local function http_simple_tcp_symbol(task) got_content = got_content .. data end if got_content:find('hello') then - -- dummy_http.py responds with either hello world or hello post break end until false -- 2.39.5