(CAT-1646) - Remove section if it has empty line but does not have any settings #51
ci.yml
on: pull_request
Spec
/
Setup Test Matrix
25s
Matrix: Spec / spec
Matrix: Acceptance / acceptance
Waiting for pending jobs
Annotations
4 errors and 4 warnings
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2):
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]
|
Spec / Spec tests (Puppet: ~> 8.0, Ruby Ver: 3.2)
Process completed with exit code 1.
|
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7):
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]
|
Spec / Spec tests (Puppet: ~> 7.24, Ruby Ver: 2.7)
Process completed with exit code 1.
|
Spec / Setup Test Matrix
Cannot find image for AIX-7.1
|
Spec / Setup Test Matrix
Cannot find image for Solaris-11
|
Spec / Setup Test Matrix
Cannot find image for Windows-10
|
Spec / Setup Test Matrix
Cannot find image for Windows-2012 R2
|