From f55f5c3c01037be6b17a86a13a8631521abc90a7 Mon Sep 17 00:00:00 2001 From: Dale McDiarmid Date: Mon, 21 Mar 2016 16:40:10 +0000 Subject: [PATCH] Fix for checking init and systemd in scripts --- test/integration/helpers/serverspec/config_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/integration/helpers/serverspec/config_spec.rb b/test/integration/helpers/serverspec/config_spec.rb index 979e5d5..7eeb44c 100644 --- a/test/integration/helpers/serverspec/config_spec.rb +++ b/test/integration/helpers/serverspec/config_spec.rb @@ -103,13 +103,12 @@ shared_examples 'config::init' do |es_version| it { should_not exist } end - #Init vs Systemd tests #Ubuntu 15 and up #Debian 8 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] == 'debian' && os[:release].to_f >= 8.0)) describe file('/usr/lib/systemd/system/node1_elasticsearch.service') do