diff options
author | Tad Fisher <tad@simple.com> | 2017-03-19 22:01:42 -0700 |
---|---|---|
committer | Tad Fisher <tad@simple.com> | 2017-03-19 22:02:02 -0700 |
commit | 318febc9ec78ab35ae4021472bd8ce29a5389c4b (patch) | |
tree | 0f2b4828428c54b5c714ff4cfe5a515022f01438 /test | |
parent | 045214ea388939021967a0524b49b6e1539f3d19 (diff) | |
download | pass-otp-318febc9ec78ab35ae4021472bd8ce29a5389c4b.tar.gz pass-otp-318febc9ec78ab35ae4021472bd8ce29a5389c4b.zip |
Remove otp_insert_spec and related insert commands
Diffstat (limited to 'test')
-rwxr-xr-x | test/insert.t | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/test/insert.t b/test/insert.t index 228a8ec..da6477c 100755 --- a/test/insert.t +++ b/test/insert.t @@ -32,42 +32,4 @@ test_expect_success 'Force overwrites key URI' ' [[ $("$PASS" show passfile) == "$uri2" ]] ' -test_expect_success 'Inserts a basic TOTP key' ' - uri="otpauth://totp/passfile?secret=AAAAAAAAAAAAAAAAAAAAA" - - test_pass_init && - "$PASS" otp insert totp -s AAAAAAAAAAAAAAAAAAAAA passfile && - [[ $("$PASS" show passfile) == "$uri" ]] -' - -test_expect_success 'Inserts a TOTP key with issuer in path' ' - uri="otpauth://totp/example.com:passfile?secret=AAAAAAAAAAAAAAAAAAAAA&issuer=example.com" - - test_pass_init && - "$PASS" otp insert totp -s AAAAAAAAAAAAAAAAAAAAA example.com/passfile && - [[ $("$PASS" show example.com/passfile) == "$uri" ]] -' - -test_expect_success 'Inserts a TOTP key with issuer in nested path' ' - uri="otpauth://totp/foo:passfile?secret=AAAAAAAAAAAAAAAAAAAAA&issuer=foo" - - test_pass_init && - "$PASS" otp insert totp -s AAAAAAAAAAAAAAAAAAAAA example.com/foo/passfile && - [[ $("$PASS" show example.com/foo/passfile) == "$uri" ]] -' - -test_expect_success 'Inserts a TOTP key with spaces in path' ' - uri="otpauth://totp/example%20dot%20com:pass%20file?secret=AAAAAAAAAAAAAAAAAAAAA&issuer=example%20dot%20com" - test_pass_init && - "$PASS" otp insert totp -s AAAAAAAAAAAAAAAAAAAAA "example dot com/pass file" && - [[ $("$PASS" show "example dot com/pass file") == "$uri" ]] -' - -test_expect_success 'Commits insert to git' ' - test_pass_init && - pass git init && - "$PASS" otp insert totp -s AAAAAAAAAAAAAAAAAAAAA passfile && - git log --no-decorate -1 | grep "Add OTP secret for passfile to store." -' - test_done |