mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
add more password tests
This commit is contained in:
parent
4df0aef67a
commit
1e160c5494
1 changed files with 11 additions and 6 deletions
|
@ -12,7 +12,7 @@ Feature: Using the installed keyring
|
|||
Then the config for journal "simple" should have "encrypt" set to "bool:True"
|
||||
When we run "jrnl simple -n 1"
|
||||
Then the output should contain "2013-06-10 15:40 Life is good"
|
||||
But the output should not contain "Password"
|
||||
But we should not be prompted for a password
|
||||
|
||||
Scenario: Encrypt journal with no keyring backend and do not store in keyring
|
||||
Given we use the config "simple.yaml"
|
||||
|
@ -37,6 +37,7 @@ Feature: Using the installed keyring
|
|||
y
|
||||
"""
|
||||
Then we should get no error
|
||||
# @todo add step to check contents of keyring
|
||||
|
||||
@todo
|
||||
Scenario: Open an encrypted journal with wrong password in keyring
|
||||
|
@ -46,11 +47,15 @@ Feature: Using the installed keyring
|
|||
Scenario: Open encrypted journal when keyring exists but fails
|
||||
# This should ask the user for the password after the keyring fails
|
||||
|
||||
Scenario: Loading an encrypted journal
|
||||
Given we use the config "encrypted.yaml"
|
||||
When we run "jrnl -n 1" and enter "bad doggie no biscuit"
|
||||
Then we should be prompted for a password
|
||||
And the output should contain "2013-06-10 15:40 Life is good"
|
||||
@todo
|
||||
Scenario: Decrypt journal with password in keyring
|
||||
|
||||
@todo
|
||||
Scenario: Decrypt journal without a keyring
|
||||
|
||||
@todo
|
||||
Scenario: Decrypt journal when keyring exists but fails
|
||||
# This should ask the user for the password after the keyring fails
|
||||
|
||||
Scenario: Mistyping your password
|
||||
Given we use the config "simple.yaml"
|
||||
|
|
Loading…
Add table
Reference in a new issue