commit 671e0c5: [Test] Emailbl subdomain + Emailbl Replyto subdomain

korgoth1 vladislav.stakhov at gmail.com
Tue Oct 1 17:56:06 UTC 2019


Author: korgoth1
Date: 2019-09-30 20:59:51 +0300
URL: https://github.com/rspamd/rspamd/commit/671e0c51fd8f7b6e8ef7a6579fb4e03f9b165caf

[Test] Emailbl subdomain + Emailbl Replyto subdomain

---
 test/functional/cases/340_surbl.robot                           | 9 +++++++++
 test/functional/configs/plugins.conf                            | 5 +++++
 test/functional/messages/{whitelist.eml => emailbltext2.eml}    | 2 +-
 test/functional/messages/{replyto2.eml => replytosubdomain.eml} | 2 +-
 4 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/test/functional/cases/340_surbl.robot b/test/functional/cases/340_surbl.robot
index 87d02dd29..9fb4f4d78 100644
--- a/test/functional/cases/340_surbl.robot
+++ b/test/functional/cases/340_surbl.robot
@@ -103,6 +103,10 @@ EMAILBL full adress & domain only
   Should Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
   Should Contain  ${result.stdout}  RSPAMD_EMAILBL_DOMAINONLY (
 
+EMAILBL full subdomain adress
+  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/emailbltext2.eml
+  Should Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
+
 EMAILBL REPLY TO full adress
   ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/replyto.eml
   Should Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
@@ -113,6 +117,11 @@ EMAILBL REPLY TO domain only
   Should Contain  ${result.stdout}  RSPAMD_EMAILBL_DOMAINONLY (
   Should Not Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
 
+EMAILBL REPLY TO full subdomain adress
+  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/replytosubdomain.eml
+  Should Contain  ${result.stdout}  RSPAMD_EMAILBL_FULL (
+  Should Not Contain  ${result.stdout}  RSPAMD_EMAILBL_DOMAINONLY ( 
+
 
 *** Keywords ***
 Surbl Setup
diff --git a/test/functional/configs/plugins.conf b/test/functional/configs/plugins.conf
index bb4b97e1d..983b6e94a 100644
--- a/test/functional/configs/plugins.conf
+++ b/test/functional/configs/plugins.conf
@@ -544,6 +544,11 @@ options = {
           type = a;
           replies = ["127.0.0.2"];
         },
+        {
+          name = "user.subdomain.emailbl.com.test5.uribl";
+          type = a;
+          replies = ["127.0.0.2"];
+        },
         {
           name = "baddomain.com.test6.uribl";
           type = a;
diff --git a/test/functional/messages/whitelist.eml b/test/functional/messages/emailbltext2.eml
similarity index 50%
copy from test/functional/messages/whitelist.eml
copy to test/functional/messages/emailbltext2.eml
index aa19512a1..164288b88 100644
--- a/test/functional/messages/whitelist.eml
+++ b/test/functional/messages/emailbltext2.eml
@@ -1,3 +1,3 @@
 Content-Type: text/plain
 
-http://rspamd-test.com
+user at subdomain.emailbl.com
\ No newline at end of file
diff --git a/test/functional/messages/replyto2.eml b/test/functional/messages/replytosubdomain.eml
similarity index 52%
copy from test/functional/messages/replyto2.eml
copy to test/functional/messages/replytosubdomain.eml
index 2813f03cd..a87ec9ae8 100644
--- a/test/functional/messages/replyto2.eml
+++ b/test/functional/messages/replytosubdomain.eml
@@ -1,4 +1,4 @@
-Reply-to: user at baddomain.com
+Reply-to: user at subdomain.emailbl.com
 From: xxx at abrakadabra.com
 Content-Type: text/plain
 


More information about the Commits mailing list