Skip to content

Commit

Permalink
Merge pull request #825 from voxpupuli/fix_arch
Browse files Browse the repository at this point in the history
fix: tests for archlinux
  • Loading branch information
TheMeier authored Dec 29, 2024
2 parents 3c69468 + 90ad55c commit 17e6953
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions spec/acceptance/prometheus_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,20 @@
end
end

it 'can access static files' do
shell('curl -s http://127.0.0.1:9090/graph') do |r|
expect(r.stdout).to match(%r{doctype html})
expect(r.exit_code).to eq(0)
if host_inventory['facter']['os']['name'] == 'Archlinux'
# Archlinux ships promethes >= 3.0.0
it 'can access static files' do
shell('curl -s http://127.0.0.1:9090/query') do |r|
expect(r.stdout).to match(%r{doctype html})
expect(r.exit_code).to eq(0)
end
end
else
it 'can access static files' do
shell('curl -s http://127.0.0.1:9090/graph') do |r|
expect(r.stdout).to match(%r{doctype html})
expect(r.exit_code).to eq(0)
end
end
end

Expand Down

0 comments on commit 17e6953

Please sign in to comment.