1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-09 17:55:57 +00:00

test: Add a set of tests for handling bad/invalid configs

This patch adds a set of tests to validate chasquid's handling of bad
and invalid configurations, to make sure we fail as expected.
This commit is contained in:
Alberto Bertogli
2023-05-16 11:47:31 +01:00
parent 0c9d1536db
commit 01a6d088e2
32 changed files with 314 additions and 7 deletions

View File

@@ -0,0 +1 @@
Error opening domain info database: mkdir ../data-c-07-bad_domain_info/domaininfo: not a directory

View File

@@ -0,0 +1,9 @@
smtp_address: ":1025"
submission_address: ":1587"
submission_over_tls_address: ":1465"
mail_delivery_agent_bin: "test-mda"
mail_delivery_agent_args: "%to%"
data_dir: "../data-c-07-bad_domain_info"
mail_log_path: "../.logs/mail_log"

View File

@@ -0,0 +1,26 @@
users: {
key: "someone"
value: {
scrypt: {
logN: 14
r: 8
p: 1
keyLen: 32
salt: "J\x01\xed7]\x02\n\xe9;z[\x8d˱\x10\xc1"
encrypted: "\xa50宴\xcbb\xc1!r]K\xd1yI\xa2\x99\x8d\xdaQx\x8e69\xac\xf4$\x01\x11\x03\x8d\x10"
}
}
}
users: {
key: "user"
value: {
scrypt: {
logN: 14
r: 8
p: 1
keyLen: 32
salt: "\n\xc6\x1c\x8f\xb2\x0c\x15p\x8d\xa1\xc3\x05U6\xdb\xc4"
encrypted: "\xc3\xe6B2\x84W\x1a\nq{\x07\xe0\x9c\x854\n\xac\xbc\xb7\x9c\x86Kyk\x8dj\x16\x1a\x8c$*N"
}
}
}