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 4142ccb
Showing 1 changed file with 2 additions and 2 deletions.
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 4142ccb

Please sign in to comment.