Skip to content

(MODULES-9997) - Removing extra unwrap on Sensitive value #490

New issue

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

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

Already on GitHub? # to your account

Merged

Conversation

pmcmaw
Copy link

@pmcmaw pmcmaw commented Feb 15, 2021

Removing unwrap. When it is called, unwrap is a puppet method, therefore not available in Ruby and throws an error. Also the value is unwrapped earlier, therefore it is pretty much trying to unwrap the value twice.

Adding an acceptance test to confirm the Sensitive value works.

The following PR is adding the same test as added here, and all acceptance tests are failing which proves this fix is needed.
#492

@pmcmaw pmcmaw added the bugfix label Feb 15, 2021
@pmcmaw pmcmaw force-pushed the MODULES-9997/main/removing-sensitive-wrap branch from c35b6b0 to 48626bf Compare February 15, 2021 14:57
@codecov-io
Copy link

codecov-io commented Feb 15, 2021

Codecov Report

Merging #490 (48626bf) into main (cb1543a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #490   +/-   ##
=======================================
  Coverage   72.88%   72.88%           
=======================================
  Files          10       10           
  Lines        1088     1088           
=======================================
  Hits          793      793           
  Misses        295      295           
Impacted Files Coverage Δ
lib/puppet/provider/vcsrepo/svn.rb 73.33% <100.00%> (ø)

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 cb1543a...48626bf. Read the comment docs.

@pmcmaw pmcmaw force-pushed the MODULES-9997/main/removing-sensitive-wrap branch 2 times, most recently from 2f69fb2 to e738139 Compare February 15, 2021 15:16
@pmcmaw pmcmaw force-pushed the MODULES-9997/main/removing-sensitive-wrap branch from e738139 to d39fe15 Compare February 15, 2021 19:22
@pmcmaw pmcmaw force-pushed the MODULES-9997/main/removing-sensitive-wrap branch from 9f40273 to df0142d Compare February 15, 2021 19:28
@pmcmaw pmcmaw marked this pull request as ready for review February 15, 2021 20:56
@pmcmaw pmcmaw requested a review from a team as a code owner February 15, 2021 20:56
@pmcmaw pmcmaw requested a review from sanfrancrisko February 15, 2021 20:56
@DavidS DavidS merged commit 9276874 into puppetlabs:main Feb 16, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants