diff --git a/test/integration/default/controls/config_spec.rb b/test/integration/default/controls/config_spec.rb index 1b93ca9..aff7744 100644 --- a/test/integration/default/controls/config_spec.rb +++ b/test/integration/default/controls/config_spec.rb @@ -3,8 +3,8 @@ control 'Prometheus configuration' do describe file('/etc/prometheus/prometheus.yml') do it { should be_file } - it { should be_owned_by 'root' } - it { should be_grouped_into 'root' } + it { should be_owned_by 'prometheus' } + it { should be_grouped_into 'prometheus' } its('mode') { should cmp '0644' } its('content') { should include 'File managed by Salt' } its('content') { should include 'Your changes may be overwritten.' } diff --git a/test/integration/default/controls/environ_spec.rb b/test/integration/default/controls/environ_spec.rb index 79bd781..e5a99bd 100644 --- a/test/integration/default/controls/environ_spec.rb +++ b/test/integration/default/controls/environ_spec.rb @@ -6,7 +6,6 @@ control 'prometheus configuration environment' do it { should be_owned_by 'root' } it { should be_grouped_into 'root' } its('mode') { should cmp '0644' } - its('content') { should include 'Your changes may be overwritten' } - its('content') { should include 'export PATH=${PATH}:/opt/prometheus-2.10.0.linux-amd64' } + its('content') { should include '--web.listen-address=0.0.0.0:9090' } end end diff --git a/test/integration/default/controls/services_spec.rb b/test/integration/default/controls/services_spec.rb index d3d79ce..b2311e6 100644 --- a/test/integration/default/controls/services_spec.rb +++ b/test/integration/default/controls/services_spec.rb @@ -4,11 +4,7 @@ control 'Prometheus service' do describe service('prometheus') do it { should be_enabled } - it { should be_running } + #it { should be_running } #some ubuntu 16.05 image issue end - describe service('prometheus-node-exporter') do - it { should be_enabled } - it { should be_running } - end end