Skip to content

Conversation

@fxpires
Copy link
Contributor

@fxpires fxpires commented Oct 11, 2022

Fix for https://tickets.puppetlabs.com/browse/FACT-3151. Allows comments on /etc/os-release file.

Fix for https://tickets.puppetlabs.com/browse/FACT-3151. Allows comments on /etc/os-release file.
@fxpires fxpires requested a review from a team as a code owner October 11, 2022 22:30
@puppetlabs-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@CLAassistant
Copy link

CLAassistant commented Oct 11, 2022

CLA assistant check
All committers have signed the CLA.

@joshcooper
Copy link
Contributor

Hi @fxpires thank you for your contribution! Could you add a test to spec/facter/resolvers/os_release_spec.rb? Also please amend your commit summary with (FACT-3151) and force push to your feature branch?

@fxpires
Copy link
Contributor Author

fxpires commented Oct 20, 2022

Hi @fxpires thank you for your contribution! Could you add a test to spec/facter/resolvers/os_release_spec.rb? Also please amend your commit summary with (FACT-3151) and force push to your feature branch?

Not sure on how to do it (sorry, SysAdmin guy here). Is there any kind of how to or guide on this subject?

@smortex
Copy link
Contributor

smortex commented Oct 21, 2022

@fxpires your tests should go into spec/facter/resolvers/os_release_spec.rb. a good start might be to add a fixture file spec/fixtures/os_release_* with some problematic content you copy from a system where the code does not work as expected. Then add tests for your use-case.

Regarding rewording your commit, from your working directory run:

git rebase -i origin/main # Interactively rewrite history

This will bring your editor listing all commits in your branch. Replace pick with reword for all commits you want to fix, then save and quit, your editor will pop again for each commit and allow you to rewrite them.

Then push your updated branch:

git push -f            # Send the changes (-f is required because we re-wrote history)

@AriaXLi
Copy link
Contributor

AriaXLi commented Apr 26, 2023

Hi @fxpires! I added a spec test for your commit in #2563 and merged both your commit and the test and made sure to credit you as a co-author so I'm going to close out this PR now. Thank you again for your contribution!

@AriaXLi AriaXLi closed this Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants