Page MenuHomeSoftware Heritage

haproxy_exporter_spec.rb
No OneTemporary

haproxy_exporter_spec.rb

require 'spec_helper'
describe 'prometheus::haproxy_exporter' do
on_supported_os.each do |os, facts|
context "on #{os}" do
let(:facts) do
facts
end
context 'with version specified' do
let(:params) do
{
version: '0.7.1',
arch: 'amd64',
os: 'linux'
}
end
describe 'install correct binary' do
it { is_expected.to contain_file('/usr/local/bin/haproxy_exporter').with('target' => '/opt/haproxy_exporter-0.7.1.linux-amd64/haproxy_exporter') }
end
end
end
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:12 PM (10 w, 13 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3280148

Event Timeline