]> source.dussan.org Git - rspamd.git/commitdiff
[Test] fix uribl in mail address 3027/head
authorkorgoth1 <vladislav.stakhov@gmail.com>
Sun, 1 Sep 2019 16:44:00 +0000 (19:44 +0300)
committerkorgoth1 <vladislav.stakhov@gmail.com>
Sun, 1 Sep 2019 16:44:00 +0000 (19:44 +0300)
test/functional/cases/340_surbl.robot
test/functional/configs/surbl.conf

index d4bbc2848f94340a3fa43099c075c7fa2f22fd34..8ed5222b9a8c49b3e66c9e393a8530558f04d00b 100644 (file)
@@ -62,22 +62,23 @@ SURBL Example.com domain image false
 
 SURBL @example.com mail html
   ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/mailadr.eml
-  Should Contain  ${result.stdout}  URIBL_IN_MAIL (
-  Should Not Contain  ${result.stdout}  RSPAMD_URIBL
-  Should Not Contain  ${result.stdout}  DBL_SPAM (
-  Should Not Contain  ${result.stdout}  RSPAMD_URIBL (
+  Should Contain  ${result.stdout}  RSPAMD_URIBL (
+  Should Contain  ${result.stdout}  DBL_SPAM (
+  Should Contain  ${result.stdout}  example.com:email
+  Should Not Contain  ${result.stdout}  RSPAMD_URIBL_IMAGES (
   Should Not Contain  ${result.stdout}  DBL_PHISH (
   Should Not Contain  ${result.stdout}  URIBL_BLACK (
 
 SURBL @example.com mail text
   ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/mailadr2.eml
-  Should Contain  ${result.stdout}  URIBL_IN_MAIL (
-  Should Not Contain  ${result.stdout}  RSPAMD_URIBL
-  Should Not Contain  ${result.stdout}  DBL_SPAM (
-  Should Not Contain  ${result.stdout}  RSPAMD_URIBL (
+  Should Contain  ${result.stdout}  RSPAMD_URIBL (
+  Should Contain  ${result.stdout}  DBL_SPAM (
+  Should Contain  ${result.stdout}  example.com:email
+  Should Not Contain  ${result.stdout}  RSPAMD_URIBL_IMAGES (
   Should Not Contain  ${result.stdout}  DBL_PHISH (
   Should Not Contain  ${result.stdout}  URIBL_BLACK (
 
+
 *** Keywords ***
 Surbl Setup
   ${PLUGIN_CONFIG} =  Get File  ${TESTDIR}/configs/surbl.conf
index 6acf73275f10d02f3e7eb7aad75b30518716c537..9752dcd1f7cbec23ba146356d18d12ca2696df2b 100644 (file)
@@ -53,7 +53,7 @@ EOD;
     "RSPAMD_URIBL_IMAGES" {
       suffix = "test.uribl";
       check_dkim = true;
-      check_emails = true;
+      check_emails = false;
       images = true;
       process_script =<<EOD
   function(url, suffix)
@@ -63,14 +63,5 @@ EOD;
 end
 EOD;
     }
-    "URIBL_IN_MAIL" {
-      suffix = "test2.uribl";
-      no_ip = true;
-      check_emails = true;
-
-      ips = {
-      URIBL_IN_MAIL = "127.0.1.5";
-      }
-      }
   }
 }
\ No newline at end of file