From 2f3b8bf3ccd46c4a101e06064cb72ba61ed0a777 Mon Sep 17 00:00:00 2001 From: MaineK00n Date: Wed, 27 Jul 2022 02:48:10 +0900 Subject: [PATCH] chore(rocky): set Rocky Linux 9 EOL (#1495) --- config/os.go | 2 +- config/os_test.go | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/os.go b/config/os.go index ff366fec..3908a167 100644 --- a/config/os.go +++ b/config/os.go @@ -87,7 +87,7 @@ func GetEOL(family, release string) (eol EOL, found bool) { case constant.Rocky: eol, found = map[string]EOL{ "8": {StandardSupportUntil: time.Date(2029, 5, 31, 23, 59, 59, 0, time.UTC)}, - // "9": {StandardSupportUntil: time.Date(2032, 5, 31, 23, 59, 59, 0, time.UTC)}, + "9": {StandardSupportUntil: time.Date(2032, 5, 31, 23, 59, 59, 0, time.UTC)}, }[major(release)] case constant.Oracle: eol, found = map[string]EOL{ diff --git a/config/os_test.go b/config/os_test.go index 875013d3..5f4bfa1c 100644 --- a/config/os_test.go +++ b/config/os_test.go @@ -178,11 +178,19 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) { found: true, }, { - name: "Rocky Linux 9 Not Found", + name: "Rocky Linux 9 supported", fields: fields{family: Rocky, release: "9"}, now: time.Date(2021, 7, 2, 23, 59, 59, 0, time.UTC), stdEnded: false, extEnded: false, + found: true, + }, + { + name: "Rocky Linux 10 Not Found", + fields: fields{family: Rocky, release: "10"}, + now: time.Date(2021, 7, 2, 23, 59, 59, 0, time.UTC), + stdEnded: false, + extEnded: false, found: false, }, //Oracle