aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-06-10 18:07:03 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-06-10 18:07:03 +0100
commitff0070983897a0fc2638fb526c6992619b68232a (patch)
treed9c11cc571f094875083613c29689ea1ca62c4ff /test/functional/configs
parentcbe316d09348232980a38a74650c1e93b84370fa (diff)
downloadrspamd-ff0070983897a0fc2638fb526c6992619b68232a.tar.gz
rspamd-ff0070983897a0fc2638fb526c6992619b68232a.zip
[Test] Add test cases for dynamic symbols
Diffstat (limited to 'test/functional/configs')
-rw-r--r--test/functional/configs/maps/dynamic_symbols.map2
-rw-r--r--test/functional/configs/merged-override.conf6
2 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/configs/maps/dynamic_symbols.map b/test/functional/configs/maps/dynamic_symbols.map
new file mode 100644
index 000000000..ec92c74af
--- /dev/null
+++ b/test/functional/configs/maps/dynamic_symbols.map
@@ -0,0 +1,2 @@
+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 b589e7da9..74d9b441f 100644
--- a/test/functional/configs/merged-override.conf
+++ b/test/functional/configs/merged-override.conf
@@ -247,6 +247,12 @@ multimap {
method = "query",
}
}
+
+ DYN_MULTIMAP {
+ type = "hostname";
+ map = "{= env.TESTDIR =}/configs/maps/dynamic_symbols.map";
+ dynamic_symbols = true;
+ }
}
rbl {