Skip to content

Commit

Permalink
[issue-680] add tests for no mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
chadh committed May 7, 2024
1 parent b10b872 commit a313de1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions spec/classes/statsd_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,27 @@
end
end

context 'with no mappings' do
let(:params) do
{
version: '0.8.0',
arch: 'amd64',
os: 'linux',
bin_dir: '/usr/local/bin',
install_method: 'url',
}
end

describe 'compile manifest' do
it { is_expected.to compile.with_all_deps }
end

describe 'not install config' do
it { shold_not contain_file('/etc/statsd-exporter-mapping.yaml') }
end

end

context 'with older version that does not support posix like option flags specified' do
let(:params) do
{
Expand Down

0 comments on commit a313de1

Please sign in to comment.