diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-04 13:18:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-04 13:18:43 +0000 |
commit | d8a0164440b870622636184076a73e679ce52d3d (patch) | |
tree | fb77332b83d7f18adf8953d857c6cd5b2e2ad027 /test | |
parent | 788ca58f26cee86c985ef45a53b78d81cb13fcdc (diff) | |
download | rspamd-d8a0164440b870622636184076a73e679ce52d3d.tar.gz rspamd-d8a0164440b870622636184076a73e679ce52d3d.zip |
[Test] Fighting with windmills in robot
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/109_composites.robot | 11 | ||||
-rw-r--r-- | test/functional/configs/composites.conf | 6 |
2 files changed, 15 insertions, 2 deletions
diff --git a/test/functional/cases/109_composites.robot b/test/functional/cases/109_composites.robot index 8da18fe97..4fb3aee3d 100644 --- a/test/functional/cases/109_composites.robot +++ b/test/functional/cases/109_composites.robot @@ -51,13 +51,22 @@ Composites - Opts RE Miss one Scan File ${MESSAGE} opts=sym1,foo1 Expect Symbol With Score SYMOPTS1 5.00 Do Not Expect Symbol SYMOPTS2 + Do Not Expect Symbol SYMOPTS3 Composites - Opts RE Miss both Scan File ${MESSAGE} opts=sym2 Do Not Expect Symbol SYMOPTS1 Do Not Expect Symbol SYMOPTS2 + Do Not Expect Symbol SYMOPTS3 Composites - Opts RE Hit - Scan File ${MESSAGE} opts=sym2,foo1 + Scan File ${MESSAGE} opts=foo1,sym2 Expect Symbol With Score SYMOPTS2 6.00 Do Not Expect Symbol SYMOPTS1 + Do Not Expect Symbol SYMOPTS3 + +Composites - Opts RE Hit 2 + Scan File ${MESSAGE} opts=foo/,sym2 + Expect Symbol With Score SYMOPTS3 6.00 + Do Not Expect Symbol SYMOPTS2 + Do Not Expect Symbol SYMOPTS1 diff --git a/test/functional/configs/composites.conf b/test/functional/configs/composites.conf index 932b25fc1..d57e09818 100644 --- a/test/functional/configs/composites.conf +++ b/test/functional/configs/composites.conf @@ -73,7 +73,11 @@ composites { } SYMOPTS2 { - expression = "OPTS[/foo.*/,sym2]"; + expression = 'OPTS[/foo[0-9]/,sym2]'; + score = 6.0; + } + SYMOPTS3 { + expression = 'OPTS[sym2,/FoO\\//i]'; score = 6.0; } } |