commit de3ffd9: [Test] Unit: Fix hash value (due to mime parsing error)
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 27 18:28:10 UTC 2018
Author: Vsevolod Stakhov
Date: 2018-12-17 16:54:30 +0000
URL: https://github.com/rspamd/rspamd/commit/de3ffd985f04908d86de1fc55ba00179b26930b1
[Test] Unit: Fix hash value (due to mime parsing error)
---
test/lua/unit/selectors.lua | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/test/lua/unit/selectors.lua b/test/lua/unit/selectors.lua
index 8053912c0..2c2ebfb5b 100644
--- a/test/lua/unit/selectors.lua
+++ b/test/lua/unit/selectors.lua
@@ -32,43 +32,43 @@ context("Selectors test", function()
local cases = {
["ip"] = {
- selector = "ip",
+ selector = "ip",
expect = {"198.172.22.91"}},
["header Subject"] = {
- selector = "header(Subject)",
+ selector = "header(Subject)",
expect = {"Second, lower-cased header subject"}},
["header Subject lower"] = {
- selector = "header(Subject).lower",
+ selector = "header(Subject).lower",
expect = {"second, lower-cased header subject"}},
["header full Subject lower"] = {
- selector = "header(Subject, 'full').lower",
+ selector = "header(Subject, 'full').lower",
expect = {{"second, lower-cased header subject", "test subject"}}},
["header full strong Subject"] = {
- selector = "header(Subject, 'full,strong')",
+ selector = "header(Subject, 'full,strong')",
expect = {{"Test subject"}}},
["header full strong lower-cased Subject"] = {
- selector = "header(subject, 'full,strong')",
+ selector = "header(subject, 'full,strong')",
expect = {{"Second, lower-cased header subject"}}},
["digest"] = {
- selector = "digest",
- expect = {"2216397bc061bb6968e1836f3680fed0"}},
+ selector = "digest",
+ expect = {"c459a21bd1f33fb4ba035481f46ef0c7"}},
["user"] = {
- selector = "user",
+ selector = "user",
expect = {"cool user name"}},
["from"] = {
- selector = "from",
+ selector = "from",
expect = {"whoknows at nowhere.com"}},
["rcpts"] = {
- selector = "rcpts",
+ selector = "rcpts",
expect = {{"nobody at example.com", "no-one at example.com"}}},
["1st rcpts"] = {
@@ -80,7 +80,7 @@ context("Selectors test", function()
expect = {"nobody at example.com"}},
["first rcpts"] = {
- selector = "rcpts.first",
+ selector = "rcpts.first",
expect = {"nobody at example.com"}},
["first addr rcpts"] = {
@@ -88,7 +88,7 @@ context("Selectors test", function()
expect = {"nobody at example.com"}},
["to"] = {
- selector = "to",
+ selector = "to",
expect = {"nobody at example.com"}},
["attachments"] = {
@@ -106,7 +106,7 @@ context("Selectors test", function()
expect = {{"f.zip", "f2.zip"}}},
["helo"] = {
- selector = "helo",
+ selector = "helo",
expect = {"hello mail"}},
["received by hostname"] = {
@@ -114,7 +114,7 @@ context("Selectors test", function()
expect = {{"server.chat-met-vreemden.nl"}}},
["urls"] = {
- selector = "urls",
+ selector = "urls",
expect = {{"http://example.net"}}},
["emails"] = {
@@ -134,11 +134,11 @@ context("Selectors test", function()
expect = {"1"}},
["time"] = {
- selector = "time",
+ selector = "time",
expect = {"1537364211"}},
["request_header"] = {
- selector = "request_header(hdr1)",
+ selector = "request_header(hdr1)",
expect = {"value1"}},
["get_host"] = {
More information about the Commits
mailing list