Imran Iqbal
vor 3 Jahren
Ursprung
Commit
afe8620a55
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
3 geänderte Dateien mit
8 neuen und
3 gelöschten Zeilen
-
test/integration/default/controls/config_spec.rb
-
test/integration/default/controls/package_spec.rb
-
test/integration/default/controls/service_spec.rb
|
|
@@ -1,8 +1,10 @@ |
|
|
|
# frozen_string_literal: true |
|
|
|
|
|
|
|
control 'SyslogNG configuration' do |
|
|
|
title 'should match desired lines' |
|
|
|
|
|
|
|
str = |
|
|
|
''' |
|
|
|
' |
|
|
|
source s_src { |
|
|
|
internal(); |
|
|
|
}; |
|
|
@@ -20,7 +22,7 @@ log { |
|
|
|
filter(f_syslog3); |
|
|
|
destination(d_syslog); |
|
|
|
}; |
|
|
|
''' |
|
|
|
' |
|
|
|
|
|
|
|
describe file('/etc/syslog-ng/syslog-ng.conf') do |
|
|
|
it { should exist } |
|
|
@@ -1,3 +1,5 @@ |
|
|
|
# frozen_string_literal: true |
|
|
|
|
|
|
|
control 'SyslogNG package' do |
|
|
|
title 'should be installed' |
|
|
|
|
|
|
@@ -1,3 +1,5 @@ |
|
|
|
# frozen_string_literal: true |
|
|
|
|
|
|
|
syslogng_service = |
|
|
|
case platform[:name] |
|
|
|
when 'arch' |
|
|
@@ -12,5 +14,4 @@ control 'SyslogNG service' do |
|
|
|
it { should be_enabled } |
|
|
|
it { should be_running } |
|
|
|
end |
|
|
|
|
|
|
|
end |