aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-15 10:46:31 +0100
committerGitHub <noreply@github.com>2016-08-15 10:46:31 +0100
commitf8718a1191753a141a63ee716aad27df17562df2 (patch)
tree1255397d6911958fb7dd3120dc088b22c5cfb4ce /test/functional/configs
parente0accce581bbc83458cf8d720801f3480e62a36b (diff)
parentf3b286c60f4f88509947be71d5d5cb8750f276b5 (diff)
downloadrspamd-f8718a1191753a141a63ee716aad27df17562df2.tar.gz
rspamd-f8718a1191753a141a63ee716aad27df17562df2.zip
Merge pull request #847 from fatalbanana/mmtest
[Test] Add test for multimap URL maps & filters
Diffstat (limited to 'test/functional/configs')
-rw-r--r--test/functional/configs/multimap.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/functional/configs/multimap.conf b/test/functional/configs/multimap.conf
index 7c75c7a91..e993b1f7d 100644
--- a/test/functional/configs/multimap.conf
+++ b/test/functional/configs/multimap.conf
@@ -62,4 +62,34 @@ multimap {
filter = "email:addr";
map = "redis://emailaddr";
}
+ REDIS_URL_TLD {
+ type = "url";
+ map = "redis://hostname";
+ filter = "tld";
+ }
+ REDIS_URL_RE_FULL {
+ type = "url";
+ map = "redis://fullurlre";
+ filter = "full:regexp:/(html)$/";
+ }
+ REDIS_URL_FULL {
+ type = "url";
+ map = "redis://fullurl";
+ filter = "full";
+ }
+ REDIS_URL_PHISHED {
+ type = "url";
+ map = "redis://phishedurl";
+ filter = "is_phished";
+ }
+ REDIS_URL_RE_TLD {
+ type = "url";
+ map = "redis://tldre";
+ filter = "tld:regexp:/(net)$/";
+ }
+ REDIS_URL_RE_PLAIN {
+ type = "url";
+ map = "redis://urlre";
+ filter = "regexp:/^(www)/";
+ }
}