Skip to content

Commit

Permalink
test(archive): update test according to defaults.yaml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lagooj committed Nov 12, 2020
1 parent bfff38b commit 34a9805
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
12 changes: 6 additions & 6 deletions test/integration/default/controls/archive_spec.rb
Expand Up @@ -38,11 +38,11 @@
describe directory('/var/lib/prometheus') do
it { should exist }
end
describe directory('/opt/prometheus/prometheus-v2.10.0') do
describe directory('/opt/prometheus/prometheus-v2.22.1') do
it { should exist }
its('group') { should eq 'root' }
end
describe file('/opt/prometheus/prometheus-v2.10.0/prometheus') do
describe file('/opt/prometheus/prometheus-v2.22.1/prometheus') do
it { should exist }
its('group') { should eq 'root' }
end
Expand All @@ -55,11 +55,11 @@
its('group') { should eq 'root' }
its('mode') { should cmp '0644' }
end
describe directory('/opt/prometheus/alertmanager-v0.17.0') do
describe directory('/opt/prometheus/alertmanager-v0.21.0') do
it { should exist }
its('group') { should eq 'root' }
end
describe file('/opt/prometheus/alertmanager-v0.17.0/amtool') do
describe file('/opt/prometheus/alertmanager-v0.21.0/amtool') do
it { should exist }
its('group') { should eq 'root' }
end
Expand All @@ -72,11 +72,11 @@
its('group') { should eq 'root' }
its('mode') { should cmp '0644' }
end
describe directory('/opt/prometheus/node_exporter-v0.18.1') do
describe directory('/opt/prometheus/node_exporter-v1.0.1') do
it { should exist }
its('group') { should eq 'root' }
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 }
its('group') { should eq 'root' }
end
Expand Down
5 changes: 1 addition & 4 deletions test/salt/pillar/default.sls
Expand Up @@ -82,9 +82,6 @@ prometheus:
- to: 'team-X+alerts@example.org'

node_exporter:
version: v0.18.1
archive:
source_hash: b2503fd932f85f4e5baf161268854bf5d22001869b84f00fd2d1f57b51b72424
service:
args:
web.listen-address: ":9110"
Expand All @@ -94,7 +91,7 @@ prometheus:
service:
args:
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:
service:
Expand Down

0 comments on commit 34a9805

Please sign in to comment.