Skip to content

(CAT-1646) - Remove section if it has empty line but does not have any settings #51

(CAT-1646) - Remove section if it has empty line but does not have any settings

(CAT-1646) - Remove section if it has empty line but does not have any settings #51

Triggered via pull request March 7, 2024 09:09
Status Failure
Total duration 1m 28s
Artifacts

ci.yml

on: pull_request
Spec  /  Setup Test Matrix
25s
Spec / Setup Test Matrix
Matrix: Spec / spec
Acceptance  /  Setup Test Matrix
Acceptance / Setup Test Matrix
Matrix: Acceptance / acceptance
Waiting for pending jobs
Fit to window
Zoom out
Zoom in

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