Page MenuHomeSoftware Heritage

beanstalkd_exporter_spec.rb
No OneTemporary

beanstalkd_exporter_spec.rb

require 'spec_helper'
describe 'prometheus::beanstalkd_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: '1.0.0',
arch: 'amd64',
os: 'linux'
}
end
describe 'compile manifest' do
it { is_expected.to compile.with_all_deps }
end
describe 'install correct binary' do
it { is_expected.to contain_file('/usr/local/bin/beanstalkd_exporter').with('target' => '/opt/beanstalkd_exporter-1.0.0.linux-amd64/beanstalkd_exporter') }
end
end
end
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:46 PM (12 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3291212

Event Timeline