diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-17 16:54:30 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-17 16:54:30 +0000 |
commit | de3ffd985f04908d86de1fc55ba00179b26930b1 (patch) | |
tree | ff59a1582ecb8230c9a63b87a46e53e06171c8c5 | |
parent | 3c8ee165440c1afb24ffa100b5787aa04cc284ea (diff) | |
download | rspamd-de3ffd985f04908d86de1fc55ba00179b26930b1.tar.gz rspamd-de3ffd985f04908d86de1fc55ba00179b26930b1.zip |
[Test] Unit: Fix hash value (due to mime parsing error)
-rw-r--r-- | test/lua/unit/selectors.lua | 34 |
1 files 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@nowhere.com"}}, ["rcpts"] = { - selector = "rcpts", + selector = "rcpts", expect = {{"nobody@example.com", "no-one@example.com"}}}, ["1st rcpts"] = { @@ -80,7 +80,7 @@ context("Selectors test", function() expect = {"nobody@example.com"}}, ["first rcpts"] = { - selector = "rcpts.first", + selector = "rcpts.first", expect = {"nobody@example.com"}}, ["first addr rcpts"] = { @@ -88,7 +88,7 @@ context("Selectors test", function() expect = {"nobody@example.com"}}, ["to"] = { - selector = "to", + selector = "to", expect = {"nobody@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"] = { |