From: korgoth1 Date: Sun, 8 Sep 2019 16:40:00 +0000 (+0300) Subject: [Test] WHITELIST_SURBL X-Git-Tag: 2.0~231^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b38a8298263120c857a95522decd31d09cb42504;p=rspamd.git [Test] WHITELIST_SURBL --- b38a8298263120c857a95522decd31d09cb42504 diff --cc test/functional/cases/340_surbl.robot index 232914932,a0cc4f943..ee80577cf --- a/test/functional/cases/340_surbl.robot +++ b/test/functional/cases/340_surbl.robot @@@ -92,10 -92,6 +92,11 @@@ SURBL example.com encoded url in subjec Should Not Contain ${result.stdout} DBL_PHISH ( Should Not Contain ${result.stdout} URIBL_BLACK ( +WHITELIST + ${result} = Scan Message With Rspamc ${TESTDIR}/messages/whitelist.eml - Should Contain ${result.stdout} RSPAMD_URIBL ( ++ Should Not Contain ${result.stdout} RSPAMD_URIBL ( ++ Should Not Contain ${result.stdout} DBL_SPAM ( + *** Keywords *** Surbl Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/surbl.conf diff --cc test/functional/configs/plugins.conf index ac68ec5cb,ac68ec5cb..839e14257 --- a/test/functional/configs/plugins.conf +++ b/test/functional/configs/plugins.conf @@@ -579,6 -579,6 +579,16 @@@ options = type = a; replies = ["127.0.0.4", "127.0.0.11"]; }, ++ { ++ name = "rspamd-test.com.test.uribl"; ++ type = a; ++ replies = ["127.0.0.2"]; ++ }, ++ { ++ name = "rspamd-test.com.test2.uribl"; ++ type = a; ++ replies = ["127.0.1.2"]; ++ }, { name = "9.8.8.8.test4.uribl"; type = a; diff --cc test/functional/messages/whitelist.eml index 24686a247,000000000..aa19512a1 mode 100644,000000..100644 --- a/test/functional/messages/whitelist.eml +++ b/test/functional/messages/whitelist.eml @@@ -1,5 -1,0 +1,3 @@@ +Content-Type: text/plain + - http://rspamd.com - http://test.rspamd.example.com +http://rspamd-test.com