summaryrefslogtreecommitdiff
path: root/tests/t0060-rm-tests.sh
blob: f434794d6966542e3cf2466dde22aa15fdd1a892 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

test_description='Test rm'
. ./setup.sh

test_expect_success 'Test "rm" command' '
	pass init $KEY1 &&
	pass generate cred1 43 &&
	echo "y" | pass rm cred1 &&
	[[ ! -e $PASSWORD_STORE_DIR/cred1.gpg ]]
'

test_expect_success 'Test "rm" of non-existent password' '
	test_must_fail pass rm does-not-exist
'

test_done
commit/src/password-store.sh?h=1.7.2&id=85c48b6ac41d58abc5fae1c24b0f9616f2ea0cbf&follow=1'>Version bump ahead of release.Jason A. Donenfeld1-1/+1 2014-03-22Makefile: do not use recursion and organizeJason A. Donenfeld12-9/+7 2014-03-22clip: suppress kill errorJason A. Donenfeld2-3/+3 2014-03-22clip: do not race on osxJason A. Donenfeld1-5/+5 2014-03-22clip: use pkill instead of procJason A. Donenfeld1-1/+1 2014-03-20Keepass import should include root-level entriesErik Mackdanz1-0/+1 2014-03-20keepassx2pass: friendly title fieldPhilip Chase1-1/+24