diff --git a/test/integration/default/controls/config.rb b/test/integration/default/controls/config.rb index fb7d69c..a01ef3b 100644 --- a/test/integration/default/controls/config.rb +++ b/test/integration/default/controls/config.rb @@ -3,12 +3,12 @@ server_available = '/etc/nginx/sites-available' server_enabled = '/etc/nginx/sites-enabled' -# Override by OS -case os[:name] -when 'redhat', 'centos', 'fedora' +# Override by platform family +case platform[:family] +when 'redhat','fedora' server_available = '/etc/nginx/conf.d' server_enabled = '/etc/nginx/conf.d' -when 'opensuse' +when 'suse' server_available = '/etc/nginx/vhosts.d' server_enabled = '/etc/nginx/vhosts.d' end diff --git a/test/integration/default/controls/service.rb b/test/integration/default/controls/service.rb index 5dad48c..c979d24 100644 --- a/test/integration/default/controls/service.rb +++ b/test/integration/default/controls/service.rb @@ -2,6 +2,7 @@ control 'Nginx service' do title 'should be running and enabled' describe service('nginx') do + it { should be_installed } it { should be_enabled } it { should be_running } end