Skip to content

Commit e540bcb

Browse files
authored
Merge pull request #50 from justindowning/puppet4
add puppet 4 support
2 parents c9a5363 + 4680ed4 commit e540bcb

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ env:
99
- PUPPET_VERSION="3.6.2"
1010
- PUPPET_VERSION="3.7.5"
1111
- PUPPET_VERSION="3.8.7"
12+
- PUPPET_VERSION="4.2.3"
13+
- PUPPET_VERSION="4.3.2"
14+
- PUPPET_VERSION="4.4.2"
15+
- PUPPET_VERSION="4.5.3"
16+
- PUPPET_VERSION="4.6.2"
17+
- PUPPET_VERSION="4.7.1"
18+
- PUPPET_VERSION="4.8.2"
19+
- PUPPET_VERSION="4.9.4"
20+
- PUPPET_VERSION="4.10.0"
1221
bundler_args: --without development
1322
script: bundle exec rake spec SPEC_OPTS='--format documentation' PARSER='future'
1423
notifications:

spec/classes/statsd_spec.rb

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
require 'spec_helper'
22

33
describe 'statsd', :type => :class do
4-
54
['Debian', 'RedHat'].each do |osfamily|
65
context "using #{osfamily}" do
76
let(:facts) { {
87
:osfamily => osfamily
98
} }
109

1110
it { should contain_class('statsd') }
11+
it { should contain_class('statsd::backends') }
12+
it { should contain_class('statsd::config') }
1213
it { should contain_class('statsd::params') }
13-
it { should contain_statsd__backends }
14-
it { should contain_statsd__config }
1514
it { should contain_package('statsd').with_ensure('present') }
1615
it { should contain_service('statsd').with_ensure('running') }
1716
it { should contain_service('statsd').with_enable(true) }
@@ -31,27 +30,33 @@
3130
it { should contain_file('/etc/init.d/statsd') }
3231
end
3332

33+
describe 'disabling the management of backends' do
34+
let(:params) {{
35+
:manage_backends => false,
36+
}}
37+
it { should_not contain_class('statsd::backends') }
38+
end
39+
3440
describe 'stopping the statsd service' do
35-
let(:params) {{
36-
:service_ensure => 'stopped',
41+
let(:params) {{
42+
:service_ensure => 'stopped',
3743
}}
3844
it { should contain_service('statsd').with_ensure('stopped') }
3945
end
4046

4147
describe 'disabling the statsd service' do
42-
let(:params) {{
43-
:service_enable => false,
48+
let(:params) {{
49+
:service_enable => false,
4450
}}
4551
it { should contain_service('statsd').with_enable(false) }
4652
end
4753

4854
describe 'disabling the management of the statsd service' do
49-
let(:params) {{
50-
:manage_service => false,
55+
let(:params) {{
56+
:manage_service => false,
5157
}}
5258
it { should_not contain_service('statsd') }
5359
end
5460
end
5561
end
56-
5762
end

0 commit comments

Comments
 (0)