aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-14 14:12:51 +0100
committerGitHub <noreply@github.com>2016-10-14 14:12:51 +0100
commit551fa5f1b2a929778fa4f812b809477c0de40042 (patch)
tree4782c9333fd25fd9f2184ec52f8c8c1941e9ae1b /test/functional/configs
parent75f8a81e89c84c60573a6baf375a892f4680a92b (diff)
parentf738c01a45570cc5a82d7501b3b2974f67858007 (diff)
downloadrspamd-551fa5f1b2a929778fa4f812b809477c0de40042.tar.gz
rspamd-551fa5f1b2a929778fa4f812b809477c0de40042.zip
Merge pull request #1028 from fatalbanana/fuzzy
Test for fuzzy replication
Diffstat (limited to 'test/functional/configs')
-rw-r--r--test/functional/configs/fuzzy.conf7
-rw-r--r--test/functional/configs/fuzzy_master_worker.conf12
-rw-r--r--test/functional/configs/fuzzy_slave_worker.conf11
3 files changed, 27 insertions, 3 deletions
diff --git a/test/functional/configs/fuzzy.conf b/test/functional/configs/fuzzy.conf
index a426bb6e5..9d6a546b2 100644
--- a/test/functional/configs/fuzzy.conf
+++ b/test/functional/configs/fuzzy.conf
@@ -1,7 +1,8 @@
options = {
filters = "fuzzy_check";
- pidfile = "${TMPDIR}/rspamd.pid"
+ pidfile = "${TMPDIR}/rspamd.pid";
control_socket = "${TMPDIR}/rspamd.sock mode=0600";
+ url_tld = "${TESTDIR}/../lua/unit/test_tld.dat";
}
logging = {
type = "file",
@@ -45,7 +46,7 @@ worker {
type = "fuzzy";
hashfile = "${TMPDIR}/fuzzy.db";
allow_update = ["${LOCAL_ADDR}"];
- ${SETTINGS_FUZZY_WORKER}
+${SETTINGS_FUZZY_WORKER}
}
fuzzy_check {
@@ -59,7 +60,7 @@ fuzzy_check {
mime_types = ["application/*"];
read_only = false;
skip_unknown = true;
- ${SETTINGS_FUZZY_CHECK}
+${SETTINGS_FUZZY_CHECK}
fuzzy_map = {
${FLAG1_SYMBOL} {
max_score = 10.0;
diff --git a/test/functional/configs/fuzzy_master_worker.conf b/test/functional/configs/fuzzy_master_worker.conf
new file mode 100644
index 000000000..0424afc86
--- /dev/null
+++ b/test/functional/configs/fuzzy_master_worker.conf
@@ -0,0 +1,12 @@
+sync_keypair {
+ pubkey = "kmtnjffjzq9bq8qe14ii4gb4e1ihuq84ubfibe79ba85ob5nr3my";
+ privkey = "ea6etw8a47e66ypc38mmdnrwskx7nj86gqydwo7jrmfsxeryny1y";
+ id = "6jxoadfy8gr6dq1nyafoa5ym3391sioz3fbbq5qug7g9dchmgjr4w4kxjzqkkc9rzd7eftngyzwau9ooqe9g96bxiwq6c3xo8965gud";
+ encoding = "base32";
+ algorithm = "curve25519";
+}
+slave {
+ name = "slave1";
+ hosts = "${LOCAL_ADDR}:${PORT_FUZZY_SLAVE}";
+ key = "caen11q4eczdqgsb8u55zmmoh4z5qxd61y1rph7pz1fcubmfccdy";
+}
diff --git a/test/functional/configs/fuzzy_slave_worker.conf b/test/functional/configs/fuzzy_slave_worker.conf
new file mode 100644
index 000000000..44ed1de71
--- /dev/null
+++ b/test/functional/configs/fuzzy_slave_worker.conf
@@ -0,0 +1,11 @@
+sync_keypair {
+ pubkey = "caen11q4eczdqgsb8u55zmmoh4z5qxd61y1rph7pz1fcubmfccdy";
+ privkey = "oi4k9g9prsqmk19xio7itaobmbz7yonktren1j5qwni1t88mwfty";
+ id = "qdwzxmoxpno4ge68ba1ai35n65q7mrqdp8dpp33h8haxy61omt881mep4944w1n6izuk64ktypqymrq55zkx3qob1ayfz9hxjtxbmxb";
+ encoding = "base32";
+ algorithm = "curve25519";
+ type = "kex";
+}
+
+masters = "${LOCAL_ADDR}";
+master_key = "kmtnjffjzq9bq8qe14ii4gb4e1ihuq84ubfibe79ba85ob5nr3my";