From cd8f6e1b8f19d81ece1544efabb19b41c5c1e80c Mon Sep 17 00:00:00 2001 From: MaineK00n Date: Wed, 8 Nov 2023 23:47:46 +0900 Subject: [PATCH] feat(os): add fedora 39 (#1788) --- config/os.go | 1 + config/os_test.go | 20 ++++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/config/os.go b/config/os.go index 6739937a..23505eba 100644 --- a/config/os.go +++ b/config/os.go @@ -329,6 +329,7 @@ func GetEOL(family, release string) (eol EOL, found bool) { "36": {StandardSupportUntil: time.Date(2023, 5, 16, 23, 59, 59, 0, time.UTC)}, "37": {StandardSupportUntil: time.Date(2023, 12, 15, 23, 59, 59, 0, time.UTC)}, "38": {StandardSupportUntil: time.Date(2024, 5, 14, 23, 59, 59, 0, time.UTC)}, + "39": {StandardSupportUntil: time.Date(2024, 11, 12, 23, 59, 59, 0, time.UTC)}, }[major(release)] case constant.Windows: // https://learn.microsoft.com/ja-jp/lifecycle/products/?products=windows diff --git a/config/os_test.go b/config/os_test.go index af21a25e..c29a2d06 100644 --- a/config/os_test.go +++ b/config/os_test.go @@ -656,9 +656,25 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) { found: true, }, { - name: "Fedora 39 not found", + name: "Fedora 39 supported", fields: fields{family: Fedora, release: "39"}, - now: time.Date(2024, 5, 14, 23, 59, 59, 0, time.UTC), + now: time.Date(2024, 11, 12, 23, 59, 59, 0, time.UTC), + stdEnded: false, + extEnded: false, + found: true, + }, + { + name: "Fedora 39 eol since 2024-11-13", + fields: fields{family: Fedora, release: "39"}, + now: time.Date(2024, 11, 13, 0, 0, 0, 0, time.UTC), + stdEnded: true, + extEnded: true, + found: true, + }, + { + name: "Fedora 40 not found", + fields: fields{family: Fedora, release: "40"}, + now: time.Date(2024, 11, 12, 23, 59, 59, 0, time.UTC), stdEnded: false, extEnded: false, found: false,