aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-28 17:20:04 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-28 17:20:50 +0100
commit1bd6eb011a50b0d57781850db9b8fd7150300133 (patch)
tree70c0e810158d6c0a4aa2565dd2816321b54af9bd /test
parent398332ccb20dc9ead073e297cc540512a38c98df (diff)
downloadrspamd-1bd6eb011a50b0d57781850db9b8fd7150300133.tar.gz
rspamd-1bd6eb011a50b0d57781850db9b8fd7150300133.zip
[Feature] Implement dependencies for maps
Issue: #765
Diffstat (limited to 'test')
-rw-r--r--test/functional/cases/102_maps.robot6
-rw-r--r--test/functional/configs/maps.conf7
2 files changed, 12 insertions, 1 deletions
diff --git a/test/functional/cases/102_maps.robot b/test/functional/cases/102_maps.robot
index 0f89a6ff8..0a83283f6 100644
--- a/test/functional/cases/102_maps.robot
+++ b/test/functional/cases/102_maps.robot
@@ -59,4 +59,8 @@ MAP - FROM REGEXP
MAP - FROM REGEXP MISS
${result} = Scan Message With Rspamc ${MESSAGE} --from user@other.org
- Check Rspamc ${result} REGEXP_MAP inverse=1 rc_nocheck=1 \ No newline at end of file
+ Check Rspamc ${result} REGEXP_MAP inverse=1 rc_nocheck=1
+
+MAP - DEPENDS HIT
+ ${result} = Scan Message With Rspamc ${MESSAGE} -i 147.243.1.47 --from user123@microsoft.com
+ Check Rspamc ${result} DEPS_MAP \ No newline at end of file
diff --git a/test/functional/configs/maps.conf b/test/functional/configs/maps.conf
index df568c22d..d90440384 100644
--- a/test/functional/configs/maps.conf
+++ b/test/functional/configs/maps.conf
@@ -48,4 +48,11 @@ multimap {
regexp = true;
map = "${TESTDIR}/configs/maps/regexp.list";
}
+ DEPS_MAP {
+ type = "from";
+ filter = "email:addr";
+ regexp = true;
+ map = "${TESTDIR}/configs/maps/regexp.list";
+ require_symbols = "R_SPF_ALLOW & DNSBL_MAP & !FROM_MAP";
+ }
}