Skip to content

Commit 0b041e5

Browse files
author
Stephen
committed
Add templatedir setting test
1 parent 4dedbed commit 0b041e5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

spec/acceptance/agent_spec.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,27 @@ class { 'puppet::agent':
9191
it { should_not be_enabled }
9292
end
9393
end
94+
95+
context 'agent with external scheduler' do
96+
it 'should run without errors' do
97+
pp = <<-EOS
98+
class { 'puppet::agent':
99+
puppet_run_style => external,
100+
templatedir => undef,
101+
}
102+
EOS
103+
# Run it twice and test for idempotency
104+
apply_manifest(pp, :catch_failures => true)
105+
apply_manifest(pp, :catch_changes => true)
106+
end
107+
108+
describe package('puppet') do
109+
it { should be_installed }
110+
end
111+
112+
describe service('puppet') do
113+
it { should_not be_running }
114+
it { should_not be_enabled }
115+
end
116+
end
94117
end

0 commit comments

Comments
 (0)