commit 90c781f: [Test] Add tests for multimap combined scores
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Sep 30 15:42:07 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-09-30 16:37:39 +0100
URL: https://github.com/rspamd/rspamd/commit/90c781f9c67b9162853d256e5e615d7196ea09b4 (HEAD -> master)
[Test] Add tests for multimap combined scores
---
test/functional/cases/102_multimap.robot | 2 +-
test/functional/configs/multimap.conf | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/functional/cases/102_multimap.robot b/test/functional/cases/102_multimap.robot
index 09bc9e205..701714264 100644
--- a/test/functional/cases/102_multimap.robot
+++ b/test/functional/cases/102_multimap.robot
@@ -67,7 +67,7 @@ MAP - FROM
MAP - COMBINED IP MASK FROM
Scan File ${MESSAGE} IP=10.1.0.10 From=user at example.com
- Expect Symbol COMBINED_MAP_AND
+ Expect Symbol With Score COMBINED_MAP_AND 10
Expect Symbol COMBINED_MAP_OR
MAP - COMBINED IP MASK ONLY
diff --git a/test/functional/configs/multimap.conf b/test/functional/configs/multimap.conf
index 36f2514e7..d4fad0e16 100644
--- a/test/functional/configs/multimap.conf
+++ b/test/functional/configs/multimap.conf
@@ -179,7 +179,9 @@ multimap {
selector = "from:domain";
}
}
- expression = "from & ip"
+ expression = "from & ip";
+ score = 10;
+ prefilter = true;
}
COMBINED_MAP_OR {
type = "combined";
More information about the Commits
mailing list