diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-05-20 18:56:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-05-20 18:56:38 +0100 |
commit | 18d74e11199d876a14b9aa9520871c3d3a96dccc (patch) | |
tree | 3c01d7ec6ba464c72af6265896379dc811e11751 /test | |
parent | d3b7e175511d4637c1e82412b0bece8c1b3acc57 (diff) | |
download | rspamd-18d74e11199d876a14b9aa9520871c3d3a96dccc.tar.gz rspamd-18d74e11199d876a14b9aa9520871c3d3a96dccc.zip |
[Test] Properly test symbols registration
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/001_merged/102_multimap.robot | 4 | ||||
-rw-r--r-- | test/functional/configs/maps/dynamic_symbols.map | 4 | ||||
-rw-r--r-- | test/functional/configs/merged-override.conf | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/test/functional/cases/001_merged/102_multimap.robot b/test/functional/cases/001_merged/102_multimap.robot index 135f5ce34..8e9d83d42 100644 --- a/test/functional/cases/001_merged/102_multimap.robot +++ b/test/functional/cases/001_merged/102_multimap.robot @@ -420,13 +420,13 @@ MAP - EXTERNAL MISS MAP - DYNAMIC SYMBOLS - SYM1 Scan File ${MESSAGE} IP=127.0.0.1 Hostname=foo ... Settings={symbols_enabled = [DYN_TEST1,DYN_TEST2,DYN_MULTIMAP]} - Expect Symbol DYN_TEST1 + Expect Symbol With Score DYN_TEST1 10 Do Not Expect Symbol DYN_TEST2 MAP - DYNAMIC SYMBOLS - SYM2 Scan File ${MESSAGE} IP=127.0.0.1 Hostname=bar ... Settings={symbols_enabled = [DYN_TEST1,DYN_TEST2,DYN_MULTIMAP]} - Expect Symbol DYN_TEST2 + Expect Symbol With Score DYN_TEST2 20 Do Not Expect Symbol DYN_TEST1 MAP - DYNAMIC SYMBOLS - MISS diff --git a/test/functional/configs/maps/dynamic_symbols.map b/test/functional/configs/maps/dynamic_symbols.map index ec92c74af..e517d5638 100644 --- a/test/functional/configs/maps/dynamic_symbols.map +++ b/test/functional/configs/maps/dynamic_symbols.map @@ -1,2 +1,2 @@ -foo DYN_TEST1:10:opt1,opt2 -bar DYN_TEST2:20:opt3,opt4 +/foo/ DYN_TEST1:10:opt1,opt2 +/bar/ DYN_TEST2:20:opt3,opt4 diff --git a/test/functional/configs/merged-override.conf b/test/functional/configs/merged-override.conf index 09ac00584..35f22630f 100644 --- a/test/functional/configs/merged-override.conf +++ b/test/functional/configs/merged-override.conf @@ -252,6 +252,7 @@ multimap { type = "hostname"; map = "{= env.TESTDIR =}/configs/maps/dynamic_symbols.map"; dynamic_symbols = true; + regexp = true; } } |