aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs/stats.conf
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-07-02 17:48:58 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-07-02 18:36:15 +0200
commitad797afed513439cb2cd81de185b75880ea9f8aa (patch)
treed3826459a27b101b0051abde7681ad752760f03c /test/functional/configs/stats.conf
parente3a301a85d355a7f559173b88613fb4da5fbd016 (diff)
downloadrspamd-ad797afed513439cb2cd81de185b75880ea9f8aa.tar.gz
rspamd-ad797afed513439cb2cd81de185b75880ea9f8aa.zip
[Test] Add & rework functional tests
- Machine formatted test data - More idiomatic use of test framework - Added tests for fuzzy & redis statistics
Diffstat (limited to 'test/functional/configs/stats.conf')
-rw-r--r--test/functional/configs/stats.conf24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/functional/configs/stats.conf b/test/functional/configs/stats.conf
index 144b7a886..216d7d8f3 100644
--- a/test/functional/configs/stats.conf
+++ b/test/functional/configs/stats.conf
@@ -21,8 +21,8 @@ worker {
bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL}
count = 1
keypair {
- pubkey = "${KEY_PUBLIC}";
- privkey = "${KEY_PRIVATE}";
+ pubkey = "${KEY_PUB1}";
+ privkey = "${KEY_PVT1}";
}
}
worker {
@@ -30,8 +30,8 @@ worker {
bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
count = 1
keypair {
- pubkey = "${KEY_PUBLIC}";
- privkey = "${KEY_PRIVATE}";
+ pubkey = "${KEY_PUB1}";
+ privkey = "${KEY_PVT1}";
}
secure_ip = ["127.0.0.1", "::1"];
}
@@ -40,26 +40,26 @@ classifier {
languages_enabled = true;
tokenizer {
name = "osb";
- hash = ${STATS_HASH}
- key = ${STATS_KEY}
+ ${STATS_HASH}
+ ${STATS_KEY}
}
backend = ${STATS_BACKEND}
statfile {
symbol = BAYES_SPAM;
- path = ${STATSDIR}/rspamd-bats-bayes.spam;
+ ${STATS_PATH_SPAM}
size = 1M;
- write_servers = ${REDIS_SERVER}
+ ${REDIS_SERVER}
}
statfile {
symbol = BAYES_HAM;
- path = ${STATSDIR}/rspamd-bats-bayes.ham;
+ ${STATS_PATH_HAM}
size = 1M;
- write_servers = ${REDIS_SERVER}
+ ${REDIS_SERVER}
}
cache {
- path = ${STATSDIR}/rspamd-bats-cache.sqlite;
- write_servers = ${REDIS_SERVER}
+ ${STATS_PATH_CACHE}
+ ${REDIS_SERVER}
}
}