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

Regression test for special chars in comments #112

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

traylenator
Copy link
Contributor

Pull Request (PR) description

Addition of test to trigger problem identified in #95

Without #95 this test fails with:

Failures:

  1) Puppet::Type::Sshd_config_match::ProviderAugeas with condition containing regex chars creates simple new entry
     Failure/Error: expect(againlogs).to eq([]), 'expected no change on second run (idempotence check)'
     
       expected no change on second run (idempotence check)
       Diff:
       @@ -1 +1 @@
       -[]
       +[#<Puppet::Util::Log:0x00007f2fced99f68 @level=:notice, @tags=#<Puppet::Util::TagSet: {"notice", "sshd_config_match"}>, @message="comment changed 'Host *: created by Puppet' to 'created by Puppet'", @source="/Sshd_config_match[Host *]/comment", @time=2024-08-06 09:17:08.781548196 +0200>]
       
     # ./spec/fixtures/modules/augeasproviders_core/spec/lib/augeas_spec/fixtures.rb:46:in `apply!'
     # ./spec/unit/puppet/provider/sshd_config_match/augeas_spec.rb:50:in `block (3 levels) in <top (required)>'

This Pull Request (PR) fixes the following issues

Fixes #95

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.

2 participants