Skip to content

Commit

Permalink
Fix SUSE trests
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Webb <[email protected]>
  • Loading branch information
damacus committed Oct 26, 2023
1 parent f26cedd commit 603bc9b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/integration/default/controls/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,15 @@
it { should exist }
its('content') { should cmp 'PIDFILE=/var/run/apache2/apache2.pid' }
end
when 'redhat', 'suse'
when 'redhat'
describe file("/etc/sysconfig/#{apache_platform_service_name}") do
it { should exist }
its('content') { should match Regexp.escape('PIDFILE=/var/run/httpd/httpd.pid') }
end
when 'suse'
describe file("/etc/sysconfig/#{apache_platform_service_name}") do
it { should exist }
its('content') { should match Regexp.escape('PIDFILE=/var/run/httpd2.pid') }
end
end
end

0 comments on commit 603bc9b

Please sign in to comment.