Pārlūkot izejas kodu

test(config): fix for Amazon Linux 2 & Oracle Linux 7/8

tags/v2.6.0
Imran Iqbal pirms 3 gadiem
vecāks
revīzija
ab39c8f7c3
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
2 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. +4
    -4
      test/integration/default/controls/config.rb
  2. +1
    -0
      test/integration/default/controls/service.rb

+ 4
- 4
test/integration/default/controls/config.rb Parādīt failu

@@ -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

+ 1
- 0
test/integration/default/controls/service.rb Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt