commit 41abce2: [Test] Fix selectors test

Vsevolod Stakhov vsevolod at highsecure.ru
Sun Sep 13 22:56:09 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-09-13 23:51:58 +0100
URL: https://github.com/rspamd/rspamd/commit/41abce28637af1df5a4d28b0d97490bead0c3b92

[Test] Fix selectors test

---
 test/lua/unit/selectors.lua | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/lua/unit/selectors.lua b/test/lua/unit/selectors.lua
index 498c1e852..e65b046c2 100644
--- a/test/lua/unit/selectors.lua
+++ b/test/lua/unit/selectors.lua
@@ -69,7 +69,7 @@ context("Selectors test", function()
 
     ["digest"] = {
                 selector = "digest",
-                expect = {"f46ccafe448fe4d7b46076938749695e"}
+                expect = {"1ac109c58a7d0f5f532100ac14e9f4d9"}
     },
 
     ["user"] = {
@@ -184,7 +184,7 @@ context("Selectors test", function()
 
     ["urls"] = {
                 selector = "urls",
-                expect = {{"http://example.net"}}},
+                expect = {{"http://subdomain.example.net"}}},
 
     ["emails"] = {
                 selector = "emails",
@@ -192,11 +192,11 @@ context("Selectors test", function()
 
     ["specific_urls"] = {
       selector = "specific_urls({limit = 1})",
-      expect = {{"http://example.net"}}},
+      expect = {{"http://subdomain.example.net"}}},
 
     ["specific_urls + emails"] = {
       selector = "specific_urls({need_emails = true, limit = 2})",
-      expect = {{"test at example.net", "http://example.net"}}},
+      expect = {{"test at example.net", "http://subdomain.example.net"}}},
 
     ["specific_urls + emails limit"] = {
       selector = "specific_urls({need_emails = true, limit = 1})",
@@ -224,7 +224,7 @@ context("Selectors test", function()
 
     ["get_host"] = {
                 selector = "urls:get_host",
-                expect = {{"example.net"}}},
+                expect = {{"subdomain.example.net"}}},
 
     ["get_tld"] = {
                 selector = "urls:get_tld",
@@ -398,7 +398,7 @@ Hello world
 Content-Type: text/html; charset="utf-8"
 
 <html><body>
-<a href="http://example.net">http://example.net</a>
+<a href="http://subdomain.example.net">http://subdomain.example.net</a>
 <a href="mailto:test at example.net">mail me</a>
 </html>
 


More information about the Commits mailing list