Skip to content

Commit

Permalink
actually apply the sysctl hash to test
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Apr 4, 2024
1 parent 423a713 commit 7c467a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/acceptance/augeasproviders_instances_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class { 'augeasproviders::instances':
it 'runs successfully' do

Check failure on line 24 in spec/acceptance/augeasproviders_instances_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / Puppet 7 - Fedora 36

augeasproviders::instances class when augeasproviders_sysctl_hash is defined runs successfully Failure/Error: apply_manifest(pp, catch_failures: true) Beaker::Host::CommandFailure: Host 'fedora36-64-puppet7.example.com' exited with 4 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_225903155.pp.1io2qh Last 10 lines of output were: Info: Loading facts Info: Loading facts �[mNotice: Compiled catalog for fedora36-64-puppet7.example.com in environment production in 0.04 seconds Info: Using environment 'production' Info: Applying configuration version '1712271544' Error: Could not prefetch sysctl provider 'augeas': Command sysctl is missing Warning: /Stage[main]/Augeasproviders::Instances/Sysctl[net.ipv4.ip_forward]: Skipping because provider prefetch failed �[mNotice: Applied catalog in 0.01 seconds
pp = <<-EOS
$augeasproviders_sysctl_hash = { 'net.ipv4.ip_forward' => { 'value' => '0' } }
class { 'augeasproviders::instances': }
class { 'augeasproviders::instances':
sysctl_hash => $augeasproviders_sysctl_hash,
}
EOS

apply_manifest(pp, catch_failures: true)
Expand Down

0 comments on commit 7c467a3

Please sign in to comment.