Hi
I have below serverspec tests for puppet testing, its testing all the if condition, though my os belongs to rhel6
if os[:release] = 5
describe file('/etc/modprobe.conf') do
it { should exist }
end
if os[:release] = 6
describe file('/etc/modprobe.d/ipv6.conf') do
it { should exist }
end
if os[:release] = 7
describe file('/etc/sysctl.d/disableipv6.conf') do
it { should exist }
end
I have rhel6, so serverspec should test only if condition `if os[:release] = 6` but its testing all if conditions.
↧