| The failure is caused by the ./spec/unit/provider/service/systemd_spec.rb test in puppet (specifically line 334). The failure seems to be related to the platform the tests are run on, they show up on Mac machines but not on Linux based machines. It does not seem to be related to the Ruby version since the failure popped up on both Ruby 2.7.3 and 3.1.2. Output from systemd_spec.rb test (for both Ruby 3.1.2 & 2.7.3) on macOS 12.6:
❯ bundle exec rspec ./spec/unit/provider/service/systemd_spec.rb:334 |
Failures: |
|
1) Puppet::Type::Service::Provider::Systemd #enabled? should consider nonexistent services to be disabled |
Failure/Error: |
expect(provider).to receive(:execute).with(["/usr/sbin/invoke-rc.d", "--quiet", "--query", "doesnotexist", "start"], :failonfail => false) |
.and_return(Puppet::Util::Execution::ProcessOutput.new("", 1)) |
|
(Service[doesnotexist](provider=systemd)).execute(["/usr/sbin/invoke-rc.d", "--quiet", "--query", "doesnotexist", "start"], {:failonfail=>false}) |
expected: 1 time with arguments: (["/usr/sbin/invoke-rc.d", "--quiet", "--query", "doesnotexist", "start"], {:failonfail=>false}) |
received: 0 times |
# ./spec/unit/provider/service/systemd_spec.rb:338:in `block (3 levels) in <top (required)>' |
# ./spec/spec_helper.rb:180:in `block (2 levels) in <top (required)>' |
# ./.bundle/ruby/3.1.0/gems/webmock-3.18.1/lib/webmock/rspec.rb:37:in `block (2 levels) in <top (required)>' |
|
Finished in 1.55 seconds (files took 1.87 seconds to load) |
1 example, 1 failure |
|
Failed examples: |
|
rspec ./spec/unit/provider/service/systemd_spec.rb:334 # Puppet::Type::Service::Provider::Systemd #enabled? should consider nonexistent services to be disabled
|
|