mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
add encrypted to tests for change-time
This commit is contained in:
parent
33263f1b48
commit
e813ff7b3f
1 changed files with 52 additions and 35 deletions
|
@ -76,6 +76,7 @@ Feature: Change entry times in journal
|
||||||
|
|
||||||
Scenario Outline: Change time flag with nonsense input changes nothing
|
Scenario Outline: Change time flag with nonsense input changes nothing
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time now asdfasdf"
|
When we run "jrnl --change-time now asdfasdf"
|
||||||
Then the output should contain "No entries to modify"
|
Then the output should contain "No entries to modify"
|
||||||
And the error output should not contain "entries modified"
|
And the error output should not contain "entries modified"
|
||||||
|
@ -90,11 +91,13 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
| basic_dayone.yaml |
|
| basic_dayone.yaml |
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Change time flag with tag only changes tagged entries
|
Scenario Outline: Change time flag with tag only changes tagged entries
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time '2022-04-23 10:30' @ipsum" and enter
|
When we run "jrnl --change-time '2022-04-23 10:30' @ipsum" and enter
|
||||||
Y
|
Y
|
||||||
Then the error output should contain "1 entry found"
|
Then the error output should contain "1 entry found"
|
||||||
|
@ -109,11 +112,13 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
# | basic_dayone.yaml | @todo
|
# | basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Change time flag with multiple tags changes all entries matching any of the tags
|
Scenario Outline: Change time flag with multiple tags changes all entries matching any of the tags
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time '2022-04-23 10:30' @ipsum @tagthree" and enter
|
When we run "jrnl --change-time '2022-04-23 10:30' @ipsum @tagthree" and enter
|
||||||
Y
|
Y
|
||||||
Y
|
Y
|
||||||
|
@ -127,11 +132,13 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
# | basic_dayone.yaml | @todo
|
# | basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Change time flag with -and changes boolean AND of tagged entries
|
Scenario Outline: Change time flag with -and changes boolean AND of tagged entries
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time '2022-04-23 10:30' -and @tagone @tagtwo" and enter
|
When we run "jrnl --change-time '2022-04-23 10:30' -and @tagone @tagtwo" and enter
|
||||||
Y
|
Y
|
||||||
When we run "jrnl -99 --short"
|
When we run "jrnl -99 --short"
|
||||||
|
@ -144,11 +151,13 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
# | basic_dayone.yaml | @todo
|
# | basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Change time flag with -not does not change entries from given tag
|
Scenario Outline: Change time flag with -not does not change entries from given tag
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time '2022-04-23 10:30' @tagone -not @ipsum" and enter
|
When we run "jrnl --change-time '2022-04-23 10:30' @tagone -not @ipsum" and enter
|
||||||
Y
|
Y
|
||||||
When we run "jrnl -99 --short"
|
When we run "jrnl -99 --short"
|
||||||
|
@ -161,11 +170,13 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
# | basic_dayone.yaml | @todo
|
# | basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Change time flag with -from search operator only changes entries since that date
|
Scenario Outline: Change time flag with -from search operator only changes entries since that date
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time '2022-04-23 10:30' -from 2020-09-01" and enter
|
When we run "jrnl --change-time '2022-04-23 10:30' -from 2020-09-01" and enter
|
||||||
Y
|
Y
|
||||||
When we run "jrnl -99 --short"
|
When we run "jrnl -99 --short"
|
||||||
|
@ -178,11 +189,13 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
# | basic_dayone.yaml | @todo
|
# | basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Change time flag with -to only changes entries up to specified date
|
Scenario Outline: Change time flag with -to only changes entries up to specified date
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time '2022-04-23 10:30' -to 2020-08-31" and enter
|
When we run "jrnl --change-time '2022-04-23 10:30' -to 2020-08-31" and enter
|
||||||
Y
|
Y
|
||||||
Y
|
Y
|
||||||
|
@ -196,11 +209,13 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
# | basic_dayone.yaml | @todo
|
# | basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Change time flag with -starred only changes starred entries
|
Scenario Outline: Change time flag with -starred only changes starred entries
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time '2022-04-23 10:30' -starred" and enter
|
When we run "jrnl --change-time '2022-04-23 10:30' -starred" and enter
|
||||||
Y
|
Y
|
||||||
When we run "jrnl -99 --short"
|
When we run "jrnl -99 --short"
|
||||||
|
@ -213,11 +228,13 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
# | basic_dayone.yaml | @todo
|
# | basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Change time flag with -contains only changes entries containing expression
|
Scenario Outline: Change time flag with -contains only changes entries containing expression
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time '2022-04-23 10:30' -contains dignissim" and enter
|
When we run "jrnl --change-time '2022-04-23 10:30' -contains dignissim" and enter
|
||||||
Y
|
Y
|
||||||
Then the error output should contain "1 entry modified"
|
Then the error output should contain "1 entry modified"
|
||||||
|
@ -231,10 +248,11 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
# | basic_dayone.yaml | @todo
|
# | basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Change time flag with no enties specified changes nothing
|
Scenario Outline: Change time flag with no entries specified changes nothing
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
And we use the password "test" if prompted
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --change-time" and enter
|
When we run "jrnl --change-time" and enter
|
||||||
|
@ -251,6 +269,5 @@ Feature: Change entry times in journal
|
||||||
| config_file |
|
| config_file |
|
||||||
| basic_onefile.yaml |
|
| basic_onefile.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
| basic_dayone.yaml |
|
| basic_dayone.yaml |
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue