aboutsummaryrefslogtreecommitdiff
path: root/test/insert.t
diff options
context:
space:
mode:
authorTad Fisher <tadfisher@gmail.com>2018-06-28 15:51:29 -0700
committerTad Fisher <tadfisher@gmail.com>2018-06-28 15:51:29 -0700
commit7d7a9afc48562ac292e6847ebe834ed673e83ebd (patch)
tree94ceab018dfbe48cbf4f0de452e3766d94d32242 /test/insert.t
parent9edb479405156f5712dd101661b86bd599904e8d (diff)
parent5fb4620b087a34c93b8f67874992dcc6409f7fcc (diff)
Merge branch 'develop' into master
Diffstat (limited to 'test/insert.t')
-rwxr-xr-xtest/insert.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/insert.t b/test/insert.t
index 1c8ddb2..a8c6458 100755
--- a/test/insert.t
+++ b/test/insert.t
@@ -130,4 +130,13 @@ test_expect_success 'Insert from secret without passfile' '
echo [[ $("$PASS" show Example/alice@google.com) == "$uri" ]]
'
+test_expect_success 'Tolerates padding in secret' '
+ secret="JBSWY3DPEHPK3PXP=="
+ uri="otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example"
+
+ test_pass_init &&
+ "$PASS" otp insert -s -i Example -a alice@google.com <<< "$secret" &&
+ echo [[ $("$PASS" show Example/alice@google.com) == "$uri" ]]
+'
+
test_done