Skip to content

Commit

Permalink
Merge pull request #453 from dhoppe/update_rabbitmq
Browse files Browse the repository at this point in the history
Update rabbitmq_exporter to version 0.29.0
  • Loading branch information
bastelfreak authored May 27, 2020
2 parents 9ac8020 + 46a269a commit ec7bee5
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ prometheus::rabbitmq_exporter::package_ensure: 'latest'
prometheus::rabbitmq_exporter::package_name: 'rabbitmq_exporter'
prometheus::rabbitmq_exporter::service_name: 'rabbitmq_exporter'
prometheus::rabbitmq_exporter::user: 'rabbitmq-exporter'
prometheus::rabbitmq_exporter::version: '0.25.2'
prometheus::rabbitmq_exporter::version: '0.29.0'
prometheus::rabbitmq_exporter::rabbit_url: 'http://localhost:15672'
prometheus::rabbitmq_exporter::rabbit_user: 'guest'
prometheus::rabbitmq_exporter::rabbit_password: 'guest'
Expand Down
66 changes: 66 additions & 0 deletions spec/acceptance/rabbitmq_exporter_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
require 'spec_helper_acceptance'

describe 'prometheus rabbitmq_exporter' do
it 'rabbitmq_exporter works idempotently with no errors' do
pp = <<-EOS
class { 'prometheus::rabbitmq_exporter':
extra_env_vars => {
'PUBLISH_PORT' => '9419',
},
scrape_port => 9419,
}
EOS
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe 'prometheus rabbitmq_exporter version 0.25.2' do
it 'rabbitmq_exporter installs with version 0.25.2' do
pp = <<-EOS
class { 'prometheus::rabbitmq_exporter':
version => '0.25.2',
extra_env_vars => {
'PUBLISH_PORT' => '9419',
},
scrape_port => 9419,
}
EOS
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe service('rabbitmq_exporter') do
it { is_expected.to be_running }
it { is_expected.to be_enabled }
end

describe port(9090) do
it { is_expected.to be_listening.with('tcp6') }
end
end

describe 'prometheus rabbitmq_exporter version 0.29.0' do
it 'rabbitmq_exporter installs with version 0.29.0' do
pp = <<-EOS
class { 'prometheus::rabbitmq_exporter':
version => '0.29.0',
extra_env_vars => {
'PUBLISH_PORT' => '9419',
},
scrape_port => 9419,
}
EOS
apply_manifest(pp, catch_failures: true)
apply_manifest(pp, catch_changes: true)
end

describe service('rabbitmq_exporter') do
it { is_expected.to be_running }
it { is_expected.to be_enabled }
end

describe port(9090) do
it { is_expected.to be_listening.with('tcp6') }
end
end
end

0 comments on commit ec7bee5

Please sign in to comment.