]> source.dussan.org Git - rspamd.git/commitdiff
[Test] WHITELIST_SURBL
authorkorgoth1 <vladislav.stakhov@gmail.com>
Sun, 8 Sep 2019 16:40:00 +0000 (19:40 +0300)
committerkorgoth1 <vladislav.stakhov@gmail.com>
Sun, 8 Sep 2019 16:40:00 +0000 (19:40 +0300)
1  2 
test/functional/cases/340_surbl.robot
test/functional/configs/plugins.conf
test/functional/messages/whitelist.eml

index 232914932461d0fa401214fbfaecd971417bf680,a0cc4f9432ae68895293db112f271127be0ad2d9..ee80577cf219822fc5e263f921d927ef51b03f1f
@@@ -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 (
  
-   Should Contain  ${result.stdout}  RSPAMD_URIBL (
 +WHITELIST
 +  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/whitelist.eml
++  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
index ac68ec5cbc3f477be0af760376c850fc0816f4a2,ac68ec5cbc3f477be0af760376c850fc0816f4a2..839e142570bcbb499934b0fcfc19d25f351ee9ac
@@@ -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;
index 24686a24710385dbc6c91b37a5f9d3a3b1f8922a,0000000000000000000000000000000000000000..aa19512a105b8394e39604747f46f36b43b4e42c
mode 100644,000000..100644
--- /dev/null
@@@ -1,5 -1,0 +1,3 @@@
- http://rspamd.com
- http://test.rspamd.example.com
 +Content-Type: text/plain
 +
 +http://rspamd-test.com