mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-06 05:17:59 +00:00
21 lines
582 B
Bash
21 lines
582 B
Bash
#!/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' '
|
|
tt passwd -k $tomb_key --unsafe \
|
|
--tomb-old-pwd $DUMMYPASS --tomb-pwd $DUMMYPASSNEW &&
|
|
tt passwd -k $tomb_key --unsafe \
|
|
--tomb-old-pwd $DUMMYPASSNEW --tomb-pwd $DUMMYPASS
|
|
'
|
|
|
|
test_export "recipient" # Using already generated tomb
|
|
test_expect_success 'Testing tomb with GnuPG keys: passwd' '
|
|
tt passwd -k $tomb_key -g -r $KEY2
|
|
'
|
|
|
|
test_done
|