diff --git a/spec/classes/statsd_exporter_spec.rb b/spec/classes/statsd_exporter_spec.rb index b177c6464..54419acd8 100644 --- a/spec/classes/statsd_exporter_spec.rb +++ b/spec/classes/statsd_exporter_spec.rb @@ -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 { should_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 {