Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only prompt for key passwords on CLI if the pwd is not already given #937

Merged
merged 1 commit into from
Dec 2, 2019

Conversation

chris-j-h
Copy link
Collaborator

@chris-j-h chris-j-h commented Dec 2, 2019

This fixes a bug in the current 0.11-SNAPSHOT master, introduced during refactoring, which caused the password CLI prompt to occur regardless of whether pwds had already been provided in the configfile.

  • Add test verifying CLI pwd resolver is not used if pwd already provided
  • Update an existing test that was a false positive before the bugfix. After the fix, mock encryptor behaviour must be added.

Resolves #938

@codecov-io
Copy link

codecov-io commented Dec 2, 2019

Codecov Report

Merging #937 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##             master    #937      +/-   ##
===========================================
+ Coverage      99.3%   99.3%   +<.01%     
  Complexity     2077    2077              
===========================================
  Files           311     311              
  Lines          5786    5787       +1     
  Branches        327     328       +1     
===========================================
+ Hits           5746    5747       +1     
  Misses            5       5              
  Partials         35      35
Impacted Files Coverage Δ Complexity Δ
...ra/cli/keypassresolver/CliKeyPasswordResolver.java 97.87% <100%> (+0.04%) 20 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 534d63b...5567045. Read the comment docs.

This fixes a bug introduced during refactoring which caused the CLI prompt to occur regardless of whether pwds had already been provided in the configfile.
* Add test verifying CLI pwd resolver is not used if pwd already provided
* Update an existing test that was a false positive before the bugfix.  After the fix, mock encryptor behaviour must be added.
@Krish1979 Krish1979 merged commit b536ae7 into master Dec 2, 2019
@chris-j-h chris-j-h deleted the bugfix/unlock-keys branch December 2, 2019 17:39
@Krish1979 Krish1979 added 0.10.2 0.10.2 and removed 0.11 labels Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.10.2 0.10.2 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Password CLI prompt occuring even when passwords are provided
4 participants