Skip to content

Commit edfd3c9

Browse files
committed
test: add rotate self test
1 parent 0ed43e9 commit edfd3c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/sharness/t0027-rotate.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ test_rotate() {
4646
esac
4747
'
4848

49+
test_expect_success "'ipfs key rotate -o self' should fail" '
50+
echo "Error: keystore name for back up cannot be named '\''self'\''" >expected-self
51+
test_must_fail ipfs key rotate -o self 2>actual-self &&
52+
test_cmp expected-self actual-self
53+
'
54+
4955
test_expect_success "Compare second ID and key to first" '
5056
ipfs id -f="<id>" > second_id &&
5157
ipfs id -f="<pubkey>" > second_key &&

0 commit comments

Comments
 (0)