test(archive): update test according to defaults.yaml changes

This commit is contained in:
lagooj 2020-11-11 14:23:27 +01:00
parent bfff38b8b7
commit 34a9805886
2 changed files with 7 additions and 10 deletions

View File

@ -38,11 +38,11 @@ control 'prometheus components' do
describe directory('/var/lib/prometheus') do describe directory('/var/lib/prometheus') do
it { should exist } it { should exist }
end end
describe directory('/opt/prometheus/prometheus-v2.10.0') do describe directory('/opt/prometheus/prometheus-v2.22.1') do
it { should exist } it { should exist }
its('group') { should eq 'root' } its('group') { should eq 'root' }
end end
describe file('/opt/prometheus/prometheus-v2.10.0/prometheus') do describe file('/opt/prometheus/prometheus-v2.22.1/prometheus') do
it { should exist } it { should exist }
its('group') { should eq 'root' } its('group') { should eq 'root' }
end end
@ -55,11 +55,11 @@ control 'prometheus components' do
its('group') { should eq 'root' } its('group') { should eq 'root' }
its('mode') { should cmp '0644' } its('mode') { should cmp '0644' }
end end
describe directory('/opt/prometheus/alertmanager-v0.17.0') do describe directory('/opt/prometheus/alertmanager-v0.21.0') do
it { should exist } it { should exist }
its('group') { should eq 'root' } its('group') { should eq 'root' }
end end
describe file('/opt/prometheus/alertmanager-v0.17.0/amtool') do describe file('/opt/prometheus/alertmanager-v0.21.0/amtool') do
it { should exist } it { should exist }
its('group') { should eq 'root' } its('group') { should eq 'root' }
end end
@ -72,11 +72,11 @@ control 'prometheus components' do
its('group') { should eq 'root' } its('group') { should eq 'root' }
its('mode') { should cmp '0644' } its('mode') { should cmp '0644' }
end end
describe directory('/opt/prometheus/node_exporter-v0.18.1') do describe directory('/opt/prometheus/node_exporter-v1.0.1') do
it { should exist } it { should exist }
its('group') { should eq 'root' } its('group') { should eq 'root' }
end end
describe file('/opt/prometheus/node_exporter-v0.18.1/node_exporter') do describe file('/opt/prometheus/node_exporter-v1.0.1/node_exporter') do
it { should exist } it { should exist }
its('group') { should eq 'root' } its('group') { should eq 'root' }
end end

View File

@ -82,9 +82,6 @@ prometheus:
- to: 'team-X+alerts@example.org' - to: 'team-X+alerts@example.org'
node_exporter: node_exporter:
version: v0.18.1
archive:
source_hash: b2503fd932f85f4e5baf161268854bf5d22001869b84f00fd2d1f57b51b72424
service: service:
args: args:
web.listen-address: ":9110" web.listen-address: ":9110"
@ -94,7 +91,7 @@ prometheus:
service: service:
args: args:
web.listen-address: ":9115" web.listen-address: ":9115"
config_file: /opt/prometheus/blackbox_exporter-v0.14.0/blackbox.yml config_file: /opt/prometheus/blackbox_exporter-v0.18.0/blackbox.yml
consul_exporter: consul_exporter:
service: service: