Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statsd_exporter: update 0.8.0->0.12.1 #352

Merged
merged 1 commit into from
Jul 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ prometheus::statsd_exporter::mappings: []
prometheus::statsd_exporter::package_ensure: 'latest'
prometheus::statsd_exporter::package_name: 'statsd_exporter'
prometheus::statsd_exporter::user: 'statsd-exporter'
prometheus::statsd_exporter::version: '0.8.0'
prometheus::statsd_exporter::version: '0.12.1'
prometheus::storage_retention: '360h' # 15d; "d" suffix is only supported with prom >= 2.*
prometheus::blackbox_exporter::user: 'blackbox-exporter'
prometheus::blackbox_exporter::group: 'blackbox-exporter'
Expand Down
27 changes: 17 additions & 10 deletions spec/acceptance/statsd_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,27 @@
describe 'prometheus statsd exporter' do
it 'statsd_exporter works idempotently with no errors' do
pp = 'include prometheus::statsd_exporter'
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe 'prometheus statsd exporter version 0.5.0' do
it ' statsd_exporter installs with version 0.5.0' do
pp = "class {'prometheus::statsd_exporter': version => '0.5.0' }"
# Run it twice and test for idempotency
describe service('statsd_exporter') do
it { is_expected.to be_running }
it { is_expected.to be_enabled }
end
describe port(9102) do
it { is_expected.to be_listening.with('tcp6') }
end
describe port(9125) do
it { is_expected.to be_listening.with('udp6') }
end
describe 'prometheus statsd exporter version 0.8.0' do
it ' statsd_exporter installs with version 0.8.0' do
pp = "class {'prometheus::statsd_exporter': version => '0.8.0' }"
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end
describe process('statsd_exporter') do
its(:args) { is_expected.to match %r{\ -statsd.mapping-config} }
its(:args) { is_expected.to match %r{\ --statsd.mapping-config} }
end
describe service('statsd_exporter') do
it { is_expected.to be_running }
Expand All @@ -30,9 +37,9 @@
end
end

describe 'prometheus statsd exporter version 0.7.0' do
it ' statsd_exporter installs with version 0.7.0' do
pp = "class {'prometheus::statsd_exporter': version => '0.7.0' }"
describe 'prometheus statsd exporter version 0.12.1' do
it ' statsd_exporter installs with version 0.12.1' do
pp = "class {'prometheus::statsd_exporter': version => '0.12.1' }"
# Run it twice and test for idempotency
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
Expand Down