*** 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
${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 ***
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
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 = ''
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