]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Add btotp -r test case
authorEric Bollengier <eric@baculasystems.com>
Thu, 25 Aug 2022 08:32:56 +0000 (10:32 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:58 +0000 (13:56 +0200)
regress/tests/totp-auth-plugin-test

index e5b193d4362a0d7879c67d1dd11b819d3599c323..208948c4c0eb20b66ab957f1f16bd9c6a9be6fe1 100755 (executable)
@@ -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