Skip to content

Add loginctl_linger_users fact #488

Add loginctl_linger_users fact

Add loginctl_linger_users fact #488

Triggered via pull request February 5, 2024 20:41
Status Failure
Total duration 6m 38s
Artifacts

ci.yml

on: pull_request
Puppet  /  Static validations
17s
Puppet / Static validations
Matrix: Puppet / acceptance
Matrix: Puppet / unit
Puppet  /  Test suite
0s
Puppet / Test suite
Fit to window
Zoom out
Zoom in

Annotations

6 errors
Puppet / 8 (Ruby 3.2): spec/unit/facter/loginctl_linger_users_spec.rb#L17
["runner", "root"] loginctl_linger_users returns root when nothing is present Failure/Error: expect(Facter.value(:loginctl_linger_users)).to eq(['root']) #<Dir (class)> received :exist? with unexpected arguments expected: ("/var/lib/systemd/linger") got: ("/home/runner/.puppetlabs/opt/facter/facts.d") Please stub a default value first if message might be received with other args as well.
Puppet / 8 (Ruby 3.2): spec/unit/facter/loginctl_linger_users_spec.rb#L29
["runner", "root"] loginctl_linger_users returns list with root others are present Failure/Error: expect(Facter.value(:loginctl_linger_users)).to eq(%w[abc test root]) #<Dir (class)> received :exist? with unexpected arguments expected: ("/var/lib/systemd/linger") got: ("/home/runner/.puppetlabs/opt/facter/facts.d") Please stub a default value first if message might be received with other args as well.
Puppet / 8 (Ruby 3.2)
Process completed with exit code 1.
Puppet / 7 (Ruby 2.7): spec/unit/facter/loginctl_linger_users_spec.rb#L17
["runner", "root"] loginctl_linger_users returns root when nothing is present Failure/Error: expect(Facter.value(:loginctl_linger_users)).to eq(['root']) #<Dir (class)> received :exist? with unexpected arguments expected: ("/var/lib/systemd/linger") got: ("/home/runner/.puppetlabs/opt/facter/facts.d") Please stub a default value first if message might be received with other args as well.
Puppet / 7 (Ruby 2.7): spec/unit/facter/loginctl_linger_users_spec.rb#L29
["runner", "root"] loginctl_linger_users returns list with root others are present Failure/Error: expect(Facter.value(:loginctl_linger_users)).to eq(%w[abc test root]) #<Dir (class)> received :exist? with unexpected arguments expected: ("/var/lib/systemd/linger") got: ("/home/runner/.puppetlabs/opt/facter/facts.d") Please stub a default value first if message might be received with other args as well.
Puppet / 7 (Ruby 2.7)
Process completed with exit code 1.