diff --git a/metadata.json b/metadata.json index 3c9a65c..fdfd2f9 100644 --- a/metadata.json +++ b/metadata.json @@ -28,10 +28,6 @@ { "operatingsystem": "Debian", "operatingsystemrelease": [ - "7", - "8", - "9", - "10", "11", "12" ] diff --git a/spec/functions/supported_spec.rb b/spec/functions/supported_spec.rb index 40a81cf..b079aa5 100644 --- a/spec/functions/supported_spec.rb +++ b/spec/functions/supported_spec.rb @@ -15,6 +15,23 @@ } end + it 'returns false' do + is_expected.to run.with_params('openvmtools').and_return(false) + end + end + + context 'On Debian 11' do + let(:facts) do + { + os: { + name: 'Debian', + release: { + major: '11', + } + } + } + end + it 'returns true' do is_expected.to run.with_params('openvmtools').and_return(true) end