diff options
author | Andrew Lewis <nerf@judo.za.org> | 2023-09-25 15:35:40 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2023-09-25 16:34:36 +0200 |
commit | 0059d2e216e8a43036aa1e19c6cfeff02ff8abcb (patch) | |
tree | 2630c4beeb2f3127c1f74a543ab4848953026228 /test/functional/configs | |
parent | 2d7d4ff1b1050f0b72d4f9df8326e7fd99b2cc2f (diff) | |
download | rspamd-0059d2e216e8a43036aa1e19c6cfeff02ff8abcb.tar.gz rspamd-0059d2e216e8a43036aa1e19c6cfeff02ff8abcb.zip |
[Test] Rudimentary tests for known_senders plugin
Diffstat (limited to 'test/functional/configs')
-rw-r--r-- | test/functional/configs/known_senders-local.conf | 4 | ||||
-rw-r--r-- | test/functional/configs/known_senders.conf | 7 | ||||
-rw-r--r-- | test/functional/configs/maps/known_senders_domains.map | 2 |
3 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/configs/known_senders-local.conf b/test/functional/configs/known_senders-local.conf new file mode 100644 index 000000000..40522ae47 --- /dev/null +++ b/test/functional/configs/known_senders-local.conf @@ -0,0 +1,4 @@ +known_senders { + enabled = true; + domains = "{= env.TESTDIR =}/configs/maps/known_senders_domains.map"; +} diff --git a/test/functional/configs/known_senders.conf b/test/functional/configs/known_senders.conf new file mode 100644 index 000000000..0880ceaf7 --- /dev/null +++ b/test/functional/configs/known_senders.conf @@ -0,0 +1,7 @@ +.include "{= env.TESTDIR =}/../../conf/rspamd.conf" + +lua = "{= env.TESTDIR =}/lua/test_coverage.lua" + +.include(priority=1,duplicate=merge) "{= env.TESTDIR =}/configs/known_senders-local.conf" +.include(priority=1,duplicate=merge) "{= env.TESTDIR =}/configs/merged-local.conf" +.include(priority=2,duplicate=replace) "{= env.TESTDIR =}/configs/merged-override.conf" diff --git a/test/functional/configs/maps/known_senders_domains.map b/test/functional/configs/maps/known_senders_domains.map new file mode 100644 index 000000000..8ddda0fd4 --- /dev/null +++ b/test/functional/configs/maps/known_senders_domains.map @@ -0,0 +1,2 @@ +outlook.com +example.com |