From 67fa848c11fabbb0a45fd3c8db5c6962916ea7d6 Mon Sep 17 00:00:00 2001 From: Lukas Baron Date: Thu, 24 Oct 2024 12:45:52 +0200 Subject: [PATCH] Update test spec to reflect new flag format in expected result --- spec/acceptance/nginx_prometheus_exporter_spec.rb | 4 ++-- spec/classes/nginx_prometheus_exporter_spec.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/acceptance/nginx_prometheus_exporter_spec.rb b/spec/acceptance/nginx_prometheus_exporter_spec.rb index 1192d1d46..089419402 100644 --- a/spec/acceptance/nginx_prometheus_exporter_spec.rb +++ b/spec/acceptance/nginx_prometheus_exporter_spec.rb @@ -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 diff --git a/spec/classes/nginx_prometheus_exporter_spec.rb b/spec/classes/nginx_prometheus_exporter_spec.rb index b58ebdb35..ed2c624e8 100644 --- a/spec/classes/nginx_prometheus_exporter_spec.rb +++ b/spec/classes/nginx_prometheus_exporter_spec.rb @@ -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 @@ -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