diff --git a/metadata.json b/metadata.json index f5097bd..678f354 100644 --- a/metadata.json +++ b/metadata.json @@ -44,7 +44,6 @@ { "operatingsystem": "Debian", "operatingsystemrelease": [ - "9", "10" ] }, @@ -78,7 +77,6 @@ { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ - "16.04", "18.04" ] } diff --git a/spec/defines/cache_dir_spec.rb b/spec/defines/cache_dir_spec.rb index 23c50f5..1ef4705 100644 --- a/spec/defines/cache_dir_spec.rb +++ b/spec/defines/cache_dir_spec.rb @@ -40,17 +40,9 @@ it { is_expected.to contain_file('/data').with_group('proxy') } end when 'Ubuntu' - case facts[:operatingsystemrelease] - when '14.04' - context 'when on Ubuntu 14.04' do - it { is_expected.to contain_file('/data').with_owner('proxy') } - it { is_expected.to contain_file('/data').with_group('proxy') } - end - when '16.04' - context 'when on Ubuntu 16.04' do - it { is_expected.to contain_file('/data').with_owner('proxy') } - it { is_expected.to contain_file('/data').with_group('proxy') } - end + context 'when on Ubuntu' do + it { is_expected.to contain_file('/data').with_owner('proxy') } + it { is_expected.to contain_file('/data').with_group('proxy') } end else context 'when on any other non-debian OS' do