mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Tests for soft-deprecating passwords in config
This commit is contained in:
parent
30275492d4
commit
49a540dbbf
2 changed files with 20 additions and 1 deletions
14
features/data/configs/encrypted_with_pw.json
Normal file
14
features/data/configs/encrypted_with_pw.json
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"default_hour": 9,
|
||||||
|
"timeformat": "%Y-%m-%d %H:%M",
|
||||||
|
"linewrap": 80,
|
||||||
|
"encrypt": true,
|
||||||
|
"editor": "",
|
||||||
|
"default_minute": 0,
|
||||||
|
"highlight": true,
|
||||||
|
"password": "bad doggie no biscuit",
|
||||||
|
"journals": {
|
||||||
|
"default": "features/journals/encrypted.journal"
|
||||||
|
},
|
||||||
|
"tagsymbols": "@"
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
Feature: Multiple journals
|
Feature: Encrypted journals
|
||||||
|
|
||||||
Scenario: Loading an encrypted journal
|
Scenario: Loading an encrypted journal
|
||||||
Given we use the config "encrypted.json"
|
Given we use the config "encrypted.json"
|
||||||
|
@ -22,6 +22,11 @@
|
||||||
Then we should see the message "Password"
|
Then we should see the message "Password"
|
||||||
and the output should contain "2013-06-10 15:40 Life is good"
|
and the output should contain "2013-06-10 15:40 Life is good"
|
||||||
|
|
||||||
|
Scenario: Loading an encrypted journal with password in config
|
||||||
|
Given we use the config "encrypted_with_pw.json"
|
||||||
|
When we run "jrnl -n 1"
|
||||||
|
Then the output should contain "2013-06-10 15:40 Life is good"
|
||||||
|
|
||||||
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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue