aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/configs/trivial.conf7
-rw-r--r--test/functional/test_helper.bash1
2 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/configs/trivial.conf b/test/functional/configs/trivial.conf
index 0750d5834..896f2b4ff 100644
--- a/test/functional/configs/trivial.conf
+++ b/test/functional/configs/trivial.conf
@@ -7,8 +7,9 @@ options = {
pidfile = "/tmp/rspamd-bats.pid"
}
logging = {
- type = "console",
+ type = "file",
level = "debug"
+ filename = "/tmp/rspamd-bats.log"
}
metric = {
name = "default",
@@ -22,4 +23,8 @@ worker {
type = normal
bind_socket = localhost:56789
count = 1
+ keypair {
+ pubkey = "y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty";
+ privkey = "oswsyqndpj3swqa4yqm4yzoyih83otqkeoxpo9km95o46ixh6quy";
+ }
}
diff --git a/test/functional/test_helper.bash b/test/functional/test_helper.bash
index bccacf057..b8ff9a557 100644
--- a/test/functional/test_helper.bash
+++ b/test/functional/test_helper.bash
@@ -3,6 +3,7 @@ function run_rspamd() {
RSPAMD_GROUP=${RSPAMD_GROUP:-"nogroup"}
RSPAMD=${RSPAMD:-"$BATS_TEST_DIRNAME/../../src/rspamd"}
+ if [ -f /tmp/rspamd-bats.log ] ; then rm -f /tmp/rspamd-bats.log ; fi
${RSPAMD} -c ${RSPAMD_CONFIG} -u ${RSPAMD_USER} -g ${RSPAMD_GROUP}
}