2017-05-01 20:21:25 +00:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
export test_description="Testing changing tomb password"
|
|
|
|
|
|
|
|
source ./setup
|
|
|
|
|
|
|
|
test_export "test" # Using already generated tomb
|
|
|
|
test_expect_success 'Testing tomb with GnuPG keys: passwd' '
|
2024-05-12 20:09:46 +00:00
|
|
|
tt passwd -f -k $tomb_key --unsafe \
|
2017-05-01 20:21:25 +00:00
|
|
|
--tomb-old-pwd $DUMMYPASS --tomb-pwd $DUMMYPASSNEW &&
|
2024-05-12 20:09:46 +00:00
|
|
|
tt passwd -f -k $tomb_key --unsafe \
|
2017-05-01 20:21:25 +00:00
|
|
|
--tomb-old-pwd $DUMMYPASSNEW --tomb-pwd $DUMMYPASS
|
|
|
|
'
|
|
|
|
|
2022-04-13 14:12:11 +00:00
|
|
|
if test_have_prereq GPGRCPT; then
|
|
|
|
|
2017-05-01 20:21:25 +00:00
|
|
|
test_export "recipient" # Using already generated tomb
|
|
|
|
test_expect_success 'Testing tomb with GnuPG keys: passwd' '
|
2024-05-12 20:09:46 +00:00
|
|
|
tt passwd -f -k $tomb_key -g -r $KEY2
|
2017-05-01 20:21:25 +00:00
|
|
|
'
|
|
|
|
|
2022-04-13 14:12:11 +00:00
|
|
|
fi
|
|
|
|
|
2017-05-01 20:21:25 +00:00
|
|
|
test_done
|