Skip to content

Commit

Permalink
Update test spec to reflect new flag format in expected result
Browse files Browse the repository at this point in the history
  • Loading branch information
lbdemv committed Oct 24, 2024
1 parent 037b136 commit 67fa848
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/acceptance/nginx_prometheus_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ class { 'prometheus::nginx_prometheus_exporter':

if os == 'centos-7-x86_64'
describe process('nginx-prometheus-exporter') do
its(:args) { is_expected.to match %r{\ -nginx.scrape-uri http://localhost:8888/stub_status} }
its(:args) { is_expected.to match %r{\ --nginx.scrape-uri http://localhost:8888/stub_status} }
end
else
describe process('nginx-prometheu') do
its(:args) { is_expected.to match %r{\ -nginx.scrape-uri http://localhost:8888/stub_status} }
its(:args) { is_expected.to match %r{\ --nginx.scrape-uri http://localhost:8888/stub_status} }
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/nginx_prometheus_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
it { is_expected.to contain_class('prometheus') }
it { is_expected.to contain_group('nginx-prometheus-exporter') }
it { is_expected.to contain_user('nginx-prometheus-exporter') }
it { is_expected.to contain_prometheus__daemon('nginx_prometheus_exporter').with('options' => "-nginx.scrape-uri 'http://localhost:8080/stub_status' ") }
it { is_expected.to contain_prometheus__daemon('nginx_prometheus_exporter').with('options' => "--nginx.scrape-uri 'http://localhost:8080/stub_status' ") }
it { is_expected.to contain_service('nginx_prometheus_exporter') }
end

Expand Down Expand Up @@ -61,7 +61,7 @@
it { is_expected.to contain_class('prometheus') }
it { is_expected.to contain_group('nginx-prometheus-exporter') }
it { is_expected.to contain_user('nginx-prometheus-exporter') }
it { is_expected.to contain_prometheus__daemon('nginx_prometheus_exporter').with('options' => "-nginx.scrape-uri 'http://127.0.0.1/stub_status' -test") }
it { is_expected.to contain_prometheus__daemon('nginx_prometheus_exporter').with('options' => "--nginx.scrape-uri 'http://127.0.0.1/stub_status' -test") }
it { is_expected.to contain_service('nginx_prometheus_exporter') }
end

Expand Down

0 comments on commit 67fa848

Please sign in to comment.