From 20fdfbf25f6bef7fc45fbf0407a54b2fc13707e1 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Sun, 26 May 2024 21:48:12 +0200 Subject: [PATCH] Debian 10: Add EoL date --- lib/puppet_metadata/operatingsystem.rb | 3 +-- spec/operatingsystem_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/puppet_metadata/operatingsystem.rb b/lib/puppet_metadata/operatingsystem.rb index e891cc0..6b023a8 100644 --- a/lib/puppet_metadata/operatingsystem.rb +++ b/lib/puppet_metadata/operatingsystem.rb @@ -28,13 +28,12 @@ class OperatingSystem '4' => '2012-02-29', '3' => '2010-10-30', }, - # https://endoflife.software/operating-systems/linux/debian # https://wiki.debian.org/DebianReleases 'Debian' => { # TODO: EOL is standard support, not the extended life cycle '12' => nil, # '~2026', '11' => nil, # '~2024', - '10' => nil, # '~2022', + '10' => '2022-09-10', '9' => '2020-07-06', '8' => '2018-06-17', '7' => '2016-04-26', diff --git a/spec/operatingsystem_spec.rb b/spec/operatingsystem_spec.rb index 2d22262..0b9d32c 100644 --- a/spec/operatingsystem_spec.rb +++ b/spec/operatingsystem_spec.rb @@ -45,8 +45,8 @@ context 'with Debian' do let(:os) { 'Debian' } - it 'returns 10, 11, 12' do - expect(described_class.supported_releases(os)).to match_array(%w[10 11 12]) + it 'returns 11, 12' do + expect(described_class.supported_releases(os)).to match_array(%w[11 12]) end it 'the last entry matches latest_release' do