]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Added few more fake records 2420/head
authorMikhail Galanin <mgalanin@mimecast.com>
Tue, 14 Aug 2018 15:33:23 +0000 (16:33 +0100)
committerMikhail Galanin <mgalanin@mimecast.com>
Tue, 14 Aug 2018 15:33:23 +0000 (16:33 +0100)
test/functional/cases/102_multimap.robot
test/functional/configs/plugins.conf
test/functional/configs/stats.conf

index 7aac43e4eb77898dd714765f50c0e7010e65de92..3b0995d56b71d37bf75795f13014e6f9a6193852 100644 (file)
@@ -66,7 +66,7 @@ MAP - FROM MISS
 MAP - FROM REGEXP
   ${result} =  Scan Message With Rspamc  ${MESSAGE}  --from  user123@test.com
   Check Rspamc  ${result}  REGEXP_MAP
-  ${result} =  Scan Message With Rspamc  ${MESSAGE}  --from  somebody@exAmplE.com
+  ${result} =  Scan Message With Rspamc  ${MESSAGE}  --from  somebody@example.com
   Check Rspamc  ${result}  REGEXP_MAP
 
 MAP - FROM REGEXP MISS
index 2b3e48b04e7a351a4e6c517a1929d558a07b663a..eab9543336e34ff0040dcc411c22eac11e9042b6 100644 (file)
@@ -232,6 +232,11 @@ options = {
           type = "txt";
           replies = ["$Id: example.com 4415 2015-08-24 20:12:23Z davids $", "v=spf1 -all"];
         },
+        {
+          name = "example.com",
+          type = "a";
+          replies = ["93.184.216.34"];
+        },
         {
           name = "testdkim1._domainkey.dnssec-failed.org",
           type = "txt";
@@ -391,6 +396,31 @@ options = {
           name = "114.47.228.46.asn.rspamd.com",
           type = "txt";
           replies = ["34010|46.228.40.0/21|GB|ripencc|"];
+        },
+        {
+          name = "10.0.1.10.rspamd.com",
+          type = "a";
+          rcode = 'nxdomain';
+        },
+        {
+          name = "10.0.1.11.rspamd.com",
+          type = "a";
+          rcode = 'nxdomain';
+        },
+        {
+          name = "other.org",
+          type = "txt";
+          rcode = 'norec';
+        },
+        {
+          name = "8.8.8.8.rspamd.com",
+          type = "a";
+          rcode = 'nxdomain';
+        },
+        {
+          name = "rspamd.tk",
+          type = "txt";
+          replies = ["bio=a263adeab8acdcdb8b89e127b67d696061fdfbee"];
         }];
   }
 }
index afa405baf8a632e7497d6d890b57ece9c08eb483..e770de2e8ad2b09fda617514459bbac570b0402b 100644 (file)
@@ -5,6 +5,11 @@ options = {
        dns {
                retransmits = 10;
                timeout = 2s;
+               fake_records = [{
+                       name = "example.net";
+                       type = txt;
+                       replies = ["v=spf1 -all"];
+               }]
        }
 }
 logging = {