1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-21 15:17:01 +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

@@ -12,12 +12,6 @@ if ! chasquid --version > /dev/null; then
fail "chasquid --version failed"
fi
# This should fail, as it has no certificates.
rm -f config/certs/testserver/*.pem
if chasquid -v=2 --logfile=.logs/chasquid.log --config_dir=config; then
fail "chasquid should not start without certificates"
fi
generate_certs_for testserver
chasquid-util-user-add user@testserver secretpassword
chasquid-util-user-add someone@testserver secretpassword