mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
Update encryption.feature for pw confirmation
This commit is contained in:
parent
1272e1395d
commit
4bfe4d9ddc
1 changed files with 5 additions and 1 deletions
|
@ -16,6 +16,8 @@
|
||||||
Scenario: Encrypting a journal
|
Scenario: Encrypting a journal
|
||||||
Given we use the config "basic.json"
|
Given we use the config "basic.json"
|
||||||
When we run "jrnl --encrypt" and enter "swordfish"
|
When we run "jrnl --encrypt" and enter "swordfish"
|
||||||
|
Then we should see the message "Confirm Password:"
|
||||||
|
When we enter "swordfish" again
|
||||||
Then we should see the message "Journal encrypted"
|
Then we should see the message "Journal encrypted"
|
||||||
and the config for journal "default" should have "encrypt" set to "bool:True"
|
and the config for journal "default" should have "encrypt" set to "bool:True"
|
||||||
When we run "jrnl -n 1" and enter "swordfish"
|
When we run "jrnl -n 1" and enter "swordfish"
|
||||||
|
@ -30,7 +32,9 @@
|
||||||
Scenario: Storing a password in Keychain
|
Scenario: Storing a password in Keychain
|
||||||
Given we use the config "multiple.json"
|
Given we use the config "multiple.json"
|
||||||
When we run "jrnl simple --encrypt" and enter "sabertooth"
|
When we run "jrnl simple --encrypt" and enter "sabertooth"
|
||||||
When we set the keychain password of "simple" to "sabertooth"
|
Then we should see the message "Confirm Password:"
|
||||||
|
When we enter "sabertooh" again
|
||||||
|
and we set the keychain password of "simple" to "sabertooth"
|
||||||
Then the config for journal "simple" should have "encrypt" set to "bool:True"
|
Then the config for journal "simple" should have "encrypt" set to "bool:True"
|
||||||
When we run "jrnl simple -n 1"
|
When we run "jrnl simple -n 1"
|
||||||
Then we should not see the message "Password"
|
Then we should not see the message "Password"
|
||||||
|
|
Loading…
Add table
Reference in a new issue