Skip to content

Handle string credentials #369

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

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

Clebam
Copy link
Contributor

@Clebam Clebam commented Feb 17, 2025

Summary

Ensure Sentive[String] also accept String

(Concerns SecureString - though SecureString is never used in any resource - and PSCredential)

Additional Context

Fix this issue : #367

Related Issues (if any)

Is a requirement for : puppetlabs/Puppet.Dsc#306

#367

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

@Clebam Clebam requested a review from a team as a code owner February 17, 2025 08:39
@Clebam
Copy link
Contributor Author

Clebam commented Feb 17, 2025

Hi, unit test show an issue but I can't figure out what it is.

I lack knowledge with specs.

If anyone could help

edit:
this seems to have saved the day 😁

        allow(Puppet::Pops::Types::PSensitiveType::Sensitive).to receive(:===).with(foo_password).and_return(true)

@Clebam Clebam force-pushed the Handle-string-credentials branch from 0c8afa1 to 845eaf1 Compare February 17, 2025 15:03
@CLAassistant
Copy link

CLAassistant commented Mar 5, 2025

CLA assistant check
All committers have signed the CLA.

@danadoherty639 danadoherty639 merged commit 28a60d8 into puppetlabs:main Mar 5, 2025
5 of 6 checks passed
@flepoutre
Copy link

@danadoherty639 Hello, is it possible to create new tag with this PR ? Thanks.

@danadoherty639
Copy link
Contributor

@danadoherty639 Hello, is it possible to create new tag with this PR ? Thanks.

This PR has been merged so I'm not sure if a tag can be applied to it but I'll check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants