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
>2012-09-20Quit if pwgen returns nothing.Jason A. Donenfeld1-0/+1 2012-09-20Prompt before overwriting password in generate, unless --force is provided.Jason A. Donenfeld2-25/+28 2012-09-19Make qdbus ugliness more segmented.Jason A. Donenfeld1-3/+8 2012-09-19Delete debian directory.Jason A. Donenfeld6-51/+0 2012-09-19No more push/pull in zsh script, either.Jason A. Donenfeld1-3/+1 2012-09-19Since we're using batch mode, we can read directly.Jason A. Donenfeld1-1/+1 2012-09-19Clean up git handling.Jason A. Donenfeld2-42/+28 2012-09-19Fix git regression.Jason A. Donenfeld1-1/+1 2012-09-18Add additional information from KeepassX xmlJuhamatti Niemelä1-3/+15 2012-09-18Copyright and licensing info to keepassx2pass scriptJuhamatti Niemelä1-0/+4 2012-09-18Quote the template.Jason A. Donenfeld1-1/+1 2012-09-18Better dependency list.Jason A. Donenfeld1-1/+10 2012-09-18Make recursive make silent.Jason A. Donenfeld1-1/+1 2012-09-18Quote the program name.Jason A. Donenfeld1-4/+4 2012-09-17Abstract potentially platform specific commands into their own commands.Jason A. Donenfeld4-72/+97 2012-09-16Support recursive and forced removal.Jason A. Donenfeld2-12/+28 2012-09-16Small stylistic things.Jason A. Donenfeld1-9/+9 2012-09-15Use --force flag in keepassx import.Jason A. Donenfeld1-1/+1