Skip to content

Commit 15ea0f4

Browse files
authored
Merge pull request #289 from austb/add_deps_compilation_test
(maint) Test for compilation w/ all dependencies
2 parents 8cdb9ae + e5be682 commit 15ea0f4

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

spec/unit/classes/init_spec.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,30 @@
1010
end
1111

1212
describe 'when using default values for puppetdb class' do
13+
it { is_expected.to compile.with_all_deps }
1314
it { is_expected.to contain_class('puppetdb') }
1415
it { is_expected.to contain_class('puppetdb::server') }
1516
it { is_expected.to contain_class('puppetdb::database::postgresql') }
1617
end
18+
19+
describe 'without managed postgresql' do
20+
let :pre_condition do
21+
<<-HEREDOC
22+
class { 'postgresql::server':
23+
}
24+
HEREDOC
25+
end
26+
27+
let :params do
28+
{
29+
manage_dbserver: false,
30+
}
31+
end
32+
33+
describe 'manifest' do
34+
it { is_expected.to compile.with_all_deps }
35+
end
36+
end
1737
end
1838
end
1939

0 commit comments

Comments
 (0)