From 97cf033ed64cfc1ccc208e4909bd13b31b49d8bb Mon Sep 17 00:00:00 2001 From: Atsushi Watanabe Date: Tue, 13 Jun 2023 17:23:11 +0900 Subject: [PATCH] feat(os): add Fedora 38 EOL date (#1689) * feat: add Fedora 38 EOL date * Update EOL date based on https://fedorapeople.org/groups/schedule/f-38/f-38-key-tasks.html * Fix test case name Co-authored-by: MaineK00n --------- Co-authored-by: MaineK00n --- 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 e5cb42b5..4c85b71a 100644 --- a/config/os.go +++ b/config/os.go @@ -317,6 +317,7 @@ func GetEOL(family, release string) (eol EOL, found bool) { "35": {StandardSupportUntil: time.Date(2022, 12, 12, 23, 59, 59, 0, time.UTC)}, "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)}, }[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 59b4bbd0..967d6b81 100644 --- a/config/os_test.go +++ b/config/os_test.go @@ -624,9 +624,25 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) { found: true, }, { - name: "Fedora 38 not found", + name: "Fedora 38 supported", fields: fields{family: Fedora, release: "38"}, - now: time.Date(2023, 12, 15, 23, 59, 59, 0, time.UTC), + now: time.Date(2024, 5, 14, 23, 59, 59, 0, time.UTC), + stdEnded: false, + extEnded: false, + found: true, + }, + { + name: "Fedora 38 eol since 2024-05-15", + fields: fields{family: Fedora, release: "38"}, + now: time.Date(2024, 5, 15, 0, 0, 0, 0, time.UTC), + stdEnded: true, + extEnded: true, + found: true, + }, + { + name: "Fedora 39 not found", + fields: fields{family: Fedora, release: "39"}, + now: time.Date(2024, 5, 14, 23, 59, 59, 0, time.UTC), stdEnded: false, extEnded: false, found: false,