You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately somewhere between versions 2.5.0 and 2.6.1 we again see the failures:
nftables on almalinux-9-x86_64 with snat4 is expected to compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile }
error during compilation: Parameter enable failed on Service[firewalld]: Provider redhat must have features 'maskable' to set 'enable' to 'mask' (file: /builds/ai/it-puppet-module-nftables/code/spec/fixtures/modules/nftables/manifests/init.pp, line: 200)
Changing the conditional from:
RSpec.configuredo |c|
c.beforedo# select the systemd service provider even when on docker# https://tickets.puppetlabs.com/browse/PUP-11167ifdefined?(facts) && %w[ArchlinuxRedHat].include?(facts[:os]['family'])allow(Puppet::FileSystem).toreceive(:exist?).and_call_originalallow(Puppet::FileSystem).toreceive(:exist?).with('/proc/1/comm').and_return(true)allow(Puppet::FileSystem).toreceive(:read).and_call_originalallow(Puppet::FileSystem).toreceive(:read).with('/proc/1/comm').and_return(['systemd'])endendend
to
RSpec.configuredo |c|
c.beforedo# select the systemd service provider even when on docker# https://tickets.puppetlabs.com/browse/PUP-11167ifdefined?(facts)allow(Puppet::FileSystem).toreceive(:exist?).and_call_originalallow(Puppet::FileSystem).toreceive(:exist?).with('/proc/1/comm').and_return(true)allow(Puppet::FileSystem).toreceive(:read).and_call_originalallow(Puppet::FileSystem).toreceive(:read).with('/proc/1/comm').and_return(['systemd'])endendend
i.e dropping && %w[Archlinux RedHat].include?(facts[:os]['family']) does work and allow the tests to complete but that makes no sense to me and seems the wrong thing to do.
The text was updated successfully, but these errors were encountered:
Previously when rspec tests on docker the rspec tests failed as the systemd provider was not selected and
so services what not maskable.
This was resolved by mocking systemd in #128
Unfortunately somewhere between versions 2.5.0 and 2.6.1 we again see the failures:
Changing the conditional from:
to
i.e dropping
&& %w[Archlinux RedHat].include?(facts[:os]['family'])does work and allow the tests to complete but that makes no sense to me and seems the wrong thing to do.The text was updated successfully, but these errors were encountered: