modulesync 5.4.0
This was raised in the chat and it took a while to understand what the reporter was trying to say. Adding an acceptance test was the clearest way to see what was going on. This should add 3 keys, but in practice it isn't idempotent because it rewrites each entry. It appears the part after @
is discarded and no comment is written.
<!--
Thank you for contributing to this project!
-->
This PR replaces #66 and is rebased to the latest master branch
Regex meta-characters in an sshd_config_match
name parameter cause repeated file updates at every Puppet run
Addition of test to trigger problem identified in #95
Without #95 this test fails with:
```
Failures:
1) Puppet::Type::Sshdconfigmatch::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 @@
-[]
+[#, @message="comment changed 'Host *: created by Puppet' to 'created by Puppet'", @source="/Sshdconfigmatch[Host *]/comment", @time=2024-08-06 09:17:08.781548196 +0200>]
# ./spec/fixtures/modules/augeasproviderscore/spec/lib/augeasspec/fixtures.rb:46:in apply!'
block (3 levels) in '
# ./spec/unit/puppet/provider/sshd_config_match/augeas_spec.rb:50:in
```
Fixes #95
modulesync 9.2.0