(CAT-1646) - Remove section if it has empty line but does not have any settings #51
Annotations
2 errors
Run tests:
spec/unit/puppet/provider/ini_setting/ruby_spec.rb#L1104
Puppet::Type::Ini_setting::ProviderRuby when ensuring that a setting is absent does not remove a section when the last uncommented setting is removed if there are comments
Failure/Error: expect(File.read(tmpfile)).to eq(expected_content)
expected: "[section1]\n; This is also a comment\nfoo=foovalue\n\nbar = barvalue\nmain = true\n[section2]\n\nfoo...ub]\nsubby=bar\n #another comment\n ; yet another comment\n\n -nonstandard-\n shoes = purple\n"
got: "[section1]\n; This is also a comment\nfoo=foovalue\n\nbar = barvalue\nmain = true\n[section2]\n\nfoo...ub]\nsubby=bar\n #another comment\n ; yet another comment\n\n -nonstandard-\n shoes = purple\n"
(compared using ==)
Diff:
@@ -9,8 +9,6 @@
foo= foovalue2
baz=bazvalue
url = http://192.168.1.1:8080
-[section3]
-# com = ment
[section4]
uncom = ment
[section:sub]
|
Run tests
Process completed with exit code 1.
|
Loading