From: Eric Bollengier Date: Thu, 25 Aug 2022 08:32:56 +0000 (+0200) Subject: regress: Add btotp -r test case X-Git-Tag: Beta-15.0.0~521 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47940c64eab5ec49da9da4093385b9ad225c3265;p=thirdparty%2Fbacula.git regress: Add btotp -r test case --- diff --git a/regress/tests/totp-auth-plugin-test b/regress/tests/totp-auth-plugin-test index e5b193d43..208948c4c 100755 --- a/regress/tests/totp-auth-plugin-test +++ b/regress/tests/totp-auth-plugin-test @@ -280,5 +280,17 @@ EOF run_bconsole +$bin/btotp -r cons1 -q > $tmp/log7.out +if [ $? != 0 ]; then + print_debug "ERROR: Unable to delete a key $tmp/log7.out" + estat=1 +fi + +$bin/btotp -n cons1 -q > $tmp/log8.out +if [ $? == 0 ]; then + print_debug "ERROR: Should not be able to display the QR code after deletion in $tmp/log8.out" + estat=1 +fi + stop_bacula end_test