Fix for checking init and systemd in scripts

This commit is contained in:
Dale McDiarmid 2016-03-21 16:40:10 +00:00
parent 870035b385
commit f55f5c3c01

View file

@ -103,13 +103,12 @@ shared_examples 'config::init' do |es_version|
it { should_not exist } it { should_not exist }
end end
#Init vs Systemd tests #Init vs Systemd tests
#Ubuntu 15 and up #Ubuntu 15 and up
#Debian 8 and up #Debian 8 and up
#Centos 7 and up #Centos 7 and up
if ((os[:family] == 'centos' && os[:release].to_f >= 7.0) || if (((os[:family] == 'redhat' || os[:family] == 'centos') && os[:release].to_f >= 7.0) ||
(os[:family] == 'ubuntu' && os[:release].to_f >= 15.0) || (os[:family] == 'ubuntu' && os[:release].to_f >= 15.0) ||
(os[:family] == 'debian' && os[:release].to_f >= 8.0)) (os[:family] == 'debian' && os[:release].to_f >= 8.0))
describe file('/usr/lib/systemd/system/node1_elasticsearch.service') do describe file('/usr/lib/systemd/system/node1_elasticsearch.service') do