-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
consul_exporter improvement for version 0.4.0 and above #264
Conversation
… on the consul_exporter version being used
Thanks for this @RogierO! Could you add a tiny acceptance test that installs and old version and afterwards a new one? You can find some examples here: https://github.com/voxpupuli/puppet-prometheus/tree/master/spec/acceptance |
describe 'prometheus consul exporter version 0.3.0' do | ||
it ' consul_exporter installs with version 0.3.0' do | ||
pp = "class {'prometheus::consul_exporter': version => '0.3.0' }" | ||
apply_manifest(pp, catch_failures: true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you here and in line 24 add apply_manifest(pp, catch_changes: true)
? We always need to test for idempotency
@@ -1,4 +1,4 @@ | |||
require 'spec_helper_acceptance' | |||
#require 'spec_helper_acceptance' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you explain why you did this?
@bastelfreak I've added the spec test for the consul_exporter, including the adjustments you've told me in the comment above. |
apply_manifest(pp, catch_changes: true) | ||
end | ||
describe process('consul_exporter') do | ||
its(:args) { is_expected.to match %r{\ --consul.server} } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah nice, I haven't seen this test in a while. Good job!
Thanks! |
consul_exporter improvement for version 0.4.0 and above
consul_exporter improvement for version 0.4.0 and above
Pull Request (PR) description
With the release of version 0.4.0 of the consul exporter, the single dashes ( - ) has been changed to double dashes ( -- ).
( [CHANGE] Adopt standard Prometheus flags library (mostly double dashes)) #66
For the manifest consul_exporter.pp the following improvements have been made:
This Pull Request (PR) fixes the following issues
n/a