diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-28 18:35:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-28 18:35:09 +0100 |
commit | 0ea6d39d57cd6147409e4b6ab8375fbbd4e77680 (patch) | |
tree | 82d75d5dddbcf9e38115e320393243f8c8820898 /test/functional/configs/password.conf | |
parent | 50ef807416b4f3b0ed8bca72b1b5643406d365ca (diff) | |
download | rspamd-0ea6d39d57cd6147409e4b6ab8375fbbd4e77680.tar.gz rspamd-0ea6d39d57cd6147409e4b6ab8375fbbd4e77680.zip |
[Test] Add tests for controller passwords
Diffstat (limited to 'test/functional/configs/password.conf')
-rw-r--r-- | test/functional/configs/password.conf | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/functional/configs/password.conf b/test/functional/configs/password.conf new file mode 100644 index 000000000..96688e996 --- /dev/null +++ b/test/functional/configs/password.conf @@ -0,0 +1,38 @@ +options = { + filters = ["spf", "dkim", "regexp"] + url_tld = "${TESTDIR}/../lua/unit/test_tld.dat" + pidfile = "${TMPDIR}/rspamd.pid" +} +logging = { + type = "file", + level = "debug" + filename = "${TMPDIR}/rspamd.log" +} +metric = { + name = "default", + actions = { + reject = 100500, + } + unknown_weight = 1 +} + +worker { + type = normal + bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL} + count = 1 + keypair { + pubkey = "${KEY_PUB1}"; + privkey = "${KEY_PVT1}"; + } +} +worker { + type = controller + bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER} + count = 1 + keypair { + pubkey = "${KEY_PUB1}"; + privkey = "${KEY_PVT1}"; + } + password = ${PASSWORD}; + enable_password = ${ENABLE_PASSWORD}; +}
\ No newline at end of file |