From 445cd812e6a8e481ff8cd2ab3f56f27a69ebcc04 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Thu, 10 Sep 2020 17:07:33 -0400 Subject: [PATCH] Check system logs for errors --- tests/suites/management-users.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/suites/management-users.sh b/tests/suites/management-users.sh index 32b33aad..9a930d53 100644 --- a/tests/suites/management-users.sh +++ b/tests/suites/management-users.sh @@ -204,7 +204,7 @@ test_intl_domains() { test_totp() { test_start "totp" - # local intl alias + # alice local alice="alice@somedomain.com" local alice_pw="$(generate_password 16)" @@ -272,6 +272,13 @@ test_totp() { mgmt_assert_admin_me "$alice" "$alice_pw" "ok" 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" test_end