From 5f1d0c21f2cfff381a6ac307599f25a001e06478 Mon Sep 17 00:00:00 2001 From: Roberto Valentini Date: Mon, 11 Mar 2024 13:47:57 +0100 Subject: [PATCH] Remove Debian 7,8,9 and 10 from supported OS --- metadata.json | 4 ---- spec/functions/supported_spec.rb | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) 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