Skip to content

Commit

Permalink
fix #13821 feature debuglog
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Dec 28, 2016
1 parent ded04ea commit ed6897b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/classes/debuglog_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
context "#{os} with all defaults" do
it { is_expected.to contain_icinga2__feature('debuglog').with({'ensure' => 'present'}) }

it { is_expected.to contain_concat__fragment('icinga2::object::FileLogger::debug-file')
it { is_expected.to contain_concat__fragment('icinga2::object::FileLogger::debuglog')
.with({ 'target' => '/etc/icinga2/features-available/debuglog.conf' })
.with_content(/path = "\/var\/log\/icinga2\/debug.log"/) }
end
Expand All @@ -44,7 +44,7 @@
context "#{os} with path => /foo/bar" do
let(:params) { {:path => '/foo/bar'} }

it { is_expected.to contain_concat__fragment('icinga2::object::FileLogger::debug-file')
it { is_expected.to contain_concat__fragment('icinga2::object::FileLogger::debuglog')
.with({ 'target' => '/etc/icinga2/features-available/debuglog.conf' })
.with_content(/path = "\/foo\/bar"/) }
end
Expand Down Expand Up @@ -106,7 +106,7 @@
context "Windows 2012 R2 with all defaults" do
it { is_expected.to contain_icinga2__feature('debuglog').with({'ensure' => 'present'}) }

it { is_expected.to contain_concat__fragment('icinga2::object::FileLogger::debug-file')
it { is_expected.to contain_concat__fragment('icinga2::object::FileLogger::debuglog')
.with({ 'target' => 'C:/ProgramData/icinga2/etc/icinga2/features-available/debuglog.conf' })
.with_content(/path = "C:\/ProgramData\/icinga2\/var\/log\/icinga2\/debug.log"/) }
end
Expand All @@ -115,7 +115,7 @@
context 'Windows 2012 R2 with path => c:/foo/bar' do
let(:params) { {:path => 'c:/foo/bar'} }

it { is_expected.to contain_concat__fragment('icinga2::object::FileLogger::debug-file')
it { is_expected.to contain_concat__fragment('icinga2::object::FileLogger::debuglog')
.with({ 'target' => 'C:/ProgramData/icinga2/etc/icinga2/features-available/debuglog.conf' })
.with_content(/path = "c:\/foo\/bar"/) }
end
Expand All @@ -126,4 +126,4 @@

it { is_expected.to raise_error(Puppet::Error, /"foo\/bar" is not an absolute path/) }
end
end
end

0 comments on commit ed6897b

Please sign in to comment.