feat(ubuntu): add ubuntu 23.04 (#1647)

This commit is contained in:
MaineK00n
2023-04-27 03:26:59 +09:00
committed by GitHub
parent f631e9e603
commit 6787ab45c5
5 changed files with 73 additions and 78 deletions

View File

@@ -193,9 +193,9 @@ func GetEOL(family, release string) (eol EOL, found bool) {
"22.10": {
StandardSupportUntil: time.Date(2023, 7, 20, 23, 59, 59, 0, time.UTC),
},
// "23.04": {
// StandardSupportUntil: time.Date(2024, 1, 31, 23, 59, 59, 0, time.UTC),
// },
"23.04": {
StandardSupportUntil: time.Date(2024, 1, 31, 23, 59, 59, 0, time.UTC),
},
}[release]
case constant.OpenSUSE:
// https://en.opensuse.org/Lifetime

View File

@@ -355,14 +355,14 @@ func TestEOL_IsStandardSupportEnded(t *testing.T) {
stdEnded: false,
extEnded: false,
},
// {
// name: "Ubuntu 23.04 supported",
// fields: fields{family: Ubuntu, release: "23.04"},
// now: time.Date(2023, 3, 16, 23, 59, 59, 0, time.UTC),
// found: true,
// stdEnded: false,
// extEnded: false,
// },
{
name: "Ubuntu 23.04 supported",
fields: fields{family: Ubuntu, release: "23.04"},
now: time.Date(2023, 3, 16, 23, 59, 59, 0, time.UTC),
found: true,
stdEnded: false,
extEnded: false,
},
//Debian
{
name: "Debian 9 supported",