aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAnton Yuzhaninov <citrin+git@citrin.ru>2020-01-14 16:31:13 +0000
committerAnton Yuzhaninov <citrin+git@citrin.ru>2020-01-14 16:31:38 +0000
commitf40aecdce758d3dd54fee89a39090482243c415f (patch)
tree88dba110f5b0ca680041162bfad93231f5f29379 /test
parent3833eb8c8fd24d1a9d27b4c5800560cc48377bb9 (diff)
downloadrspamd-f40aecdce758d3dd54fee89a39090482243c415f.tar.gz
rspamd-f40aecdce758d3dd54fee89a39090482243c415f.zip
[Test] Add a test case for URL parsing
Currently it fails because fragment is not extracted correctly.
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/url.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lua/unit/url.lua b/test/lua/unit/url.lua
index 894c3156e..e4baf5b6d 100644
--- a/test/lua/unit/url.lua
+++ b/test/lua/unit/url.lua
@@ -56,6 +56,9 @@ context("URL check functions", function()
end
cases = {
+ {'http://example.net/?arg=%23#fragment', true, {
+ host = 'example.net', fragment = 'fragment'
+ }},
{"http:/\\[::eeee:192.168.0.1]/#test", true, {
host = '::eeee:c0a8:1', fragment = 'test'
}},