commit 392294a: [Test] Add testing for the augmentations logic
Vsevolod Stakhov
vsevolod at rspamd.com
Sat May 14 19:21:05 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-05-14 14:52:08 +0100
URL: https://github.com/rspamd/rspamd/commit/392294a3989adc711ac07bc1f6ef51ff3571fac3
[Test] Add testing for the augmentations logic
---
test/functional/cases/001_merged/102_multimap.robot | 3 ++-
test/functional/configs/merged-override.conf | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/functional/cases/001_merged/102_multimap.robot b/test/functional/cases/001_merged/102_multimap.robot
index fcd75a8bc..0312c750b 100644
--- a/test/functional/cases/001_merged/102_multimap.robot
+++ b/test/functional/cases/001_merged/102_multimap.robot
@@ -73,7 +73,8 @@ MAP - COMBINED IP MASK FROM
Scan File ${MESSAGE} IP=10.1.0.10 From=user at example.com
... Settings={symbols_enabled = [COMBINED_MAP_AND, COMBINED_MAP_OR]}
Expect Symbol With Score COMBINED_MAP_AND 10
- Expect Symbol COMBINED_MAP_OR
+ Do Not Expect Symbol COMBINED_MAP_OR
+ Expect Action no action
MAP - COMBINED IP MASK ONLY
Scan File ${MESSAGE} IP=10.1.0.10
diff --git a/test/functional/configs/merged-override.conf b/test/functional/configs/merged-override.conf
index ab0779fdf..d25cce27b 100644
--- a/test/functional/configs/merged-override.conf
+++ b/test/functional/configs/merged-override.conf
@@ -220,7 +220,7 @@ multimap {
}
expression = "from & ip";
score = 10;
- prefilter = true;
+ action = "no action"
}
COMBINED_MAP_OR {
type = "combined";
More information about the Commits
mailing list