summaryrefslogtreecommitdiffstats
path: root/test/functional/configs/regexp.conf
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2021-05-04 13:48:37 +0200
committerAndrew Lewis <nerf@judo.za.org>2021-05-04 13:48:37 +0200
commitdb4da2c22d159d1a6450b9447ad90e1795e5c535 (patch)
treee2c05c4e4d0668e02a7a5e2b279c5d76d1403b90 /test/functional/configs/regexp.conf
parent6244d64b43baa240d63528849a7a47b3f32eccc3 (diff)
downloadrspamd-db4da2c22d159d1a6450b9447ad90e1795e5c535.tar.gz
rspamd-db4da2c22d159d1a6450b9447ad90e1795e5c535.zip
[Test] Use lupa for templating rspamd configs
Diffstat (limited to 'test/functional/configs/regexp.conf')
-rw-r--r--test/functional/configs/regexp.conf18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/functional/configs/regexp.conf b/test/functional/configs/regexp.conf
index 5b4047b5b..06f22c998 100644
--- a/test/functional/configs/regexp.conf
+++ b/test/functional/configs/regexp.conf
@@ -1,6 +1,8 @@
+.include(duplicate=append,priority=0) "{= env.TESTDIR =}/configs/plugins.conf"
+
regexp {
SA_BODY_WORD_BOUNDARY_ON_NEWLINE {
- re = '/\\bhello\\s/{sa_body}',
+ re = '/\bhello\s/{sa_body}',
score = 0.0,
description = 'Test if word boundary works correctly on sa_body regexes',
group = 'body',
@@ -24,25 +26,25 @@ regexp {
group = 'body',
}
SA_BODY_WORD_WITH_SPACE_BOUNDARIES {
- re = '/\\bhello world\\b/{sa_body}',
+ re = '/\bhello world\b/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
group = 'body',
}
SA_BODY_WORD_WITH_SPACE_BOUNDARIES_2 {
- re = '/\\shello\\sworld\\s/{sa_body}',
+ re = '/\shello\sworld\s/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
group = 'body',
}
SA_BODY_WORD_WITH_SPACE_BOUNDARIES_3 {
- re = '/\\shello\\sworld\\sthis\\s/{sa_body}',
+ re = '/\shello\sworld\sthis\s/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
group = 'body',
}
SA_BODY_WORD_WITH_SPACE_AND_DOT {
- re = '/\\bword\\.\\sagain\\b/{sa_body}',
+ re = '/\bword\.\sagain\b/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
group = 'body',
@@ -50,13 +52,13 @@ regexp {
}
options {
- dynamic_conf = "${TESTDIR}/configs/dynamic.conf";
+ dynamic_conf = "{= env.TESTDIR =}/configs/dynamic.conf";
}
dmarc { }
spf { }
dkim { }
modules {
- path = "${TESTDIR}/../../src/plugins/lua/"
+ path = "{= env.TESTDIR =}/../../src/plugins/lua/"
}
-lua = "${TESTDIR}/lua/regex_test.lua"
+lua = "{= env.TESTDIR =}/lua/regex_test.lua"