Révision 435a5db2
rspec mock systemd process on docker
On docker rspec the service provider is autodetected as redhat
rather than systemd.
https://tickets.puppetlabs.com/browse/PUP-11167
That causes
```
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: 186)
```
mock the systemd process so that the systemd provider is used.
.sync.yml | ||
---|---|---|
1 | 1 |
--- |
2 |
spec/spec_helper.rb: |
|
3 |
unmanaged: true |
|
2 | 4 |
|
3 | 5 |
spec/spec_helper_acceptance.rb: |
4 | 6 |
unmanaged: false |
Formats disponibles : Unified diff