Skip to content

Commit

Permalink
test(inspec): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Jun 23, 2019
1 parent 1a890e5 commit 4092fb4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions test/integration/default/controls/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

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.' }
Expand Down
3 changes: 1 addition & 2 deletions test/integration/default/controls/environ_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
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
6 changes: 1 addition & 5 deletions test/integration/default/controls/services_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@

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

0 comments on commit 4092fb4

Please sign in to comment.