mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-10 01:17:19 +00:00
Check system logs for errors
This commit is contained in:
parent
c6816d5641
commit
445cd812e6
@ -204,7 +204,7 @@ test_intl_domains() {
|
|||||||
test_totp() {
|
test_totp() {
|
||||||
test_start "totp"
|
test_start "totp"
|
||||||
|
|
||||||
# local intl alias
|
# alice
|
||||||
local alice="alice@somedomain.com"
|
local alice="alice@somedomain.com"
|
||||||
local alice_pw="$(generate_password 16)"
|
local alice_pw="$(generate_password 16)"
|
||||||
|
|
||||||
@ -272,6 +272,13 @@ test_totp() {
|
|||||||
mgmt_assert_admin_me "$alice" "$alice_pw" "ok"
|
mgmt_assert_admin_me "$alice" "$alice_pw" "ok"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check for errors in system logs
|
||||||
|
if ! have_test_failures; then
|
||||||
|
assert_check_logs
|
||||||
|
else
|
||||||
|
check_logs
|
||||||
|
fi
|
||||||
|
|
||||||
mgmt_assert_delete_user "$alice"
|
mgmt_assert_delete_user "$alice"
|
||||||
test_end
|
test_end
|
||||||
|
Loading…
Reference in New Issue
Block a user