diff options
Diffstat (limited to 'test/insert.t')
-rwxr-xr-x | test/insert.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/insert.t b/test/insert.t index 938a6dd..b9a3009 100755 --- a/test/insert.t +++ b/test/insert.t @@ -157,4 +157,12 @@ test_expect_success 'Allow multiple levels in path prefix' ' echo [[ $("$PASS" show totp/pass-test/Example/alice@google.com) == "$uri" ]] ' +test_expect_success 'Insert TOTP URI with port number' ' + uri="otpauth://totp/Example:alice@google.com:443?secret=JBSWY3DPEHPK3PXP&issuer=Example" + + test_pass_init && + "$PASS" otp insert passfile <<< "$uri" && + [[ $("$PASS" show passfile) == "$uri" ]] +' + test_done |