Skip to content

Commit

Permalink
Merge pull request #41 from hpidcock/centos9
Browse files Browse the repository at this point in the history
#41

This pr adds centos9 (CentOS Stream 9) to series.
  • Loading branch information
jujubot authored Feb 16, 2022
2 parents 7fa1475 + 9219570 commit 17f068e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions series/supportedseries.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ var seriesVersions = map[string]string{
"win10": "win10",
"centos7": "centos7",
"centos8": "centos8",
"centos9": "centos9",
"opensuseleap": "opensuse42",
genericLinuxSeries: genericLinuxVersion,
}
Expand All @@ -108,6 +109,7 @@ var versionSeries = reverseSeriesVersion()
var centosSeries = map[string]string{
"centos7": "centos7",
"centos8": "centos8",
"centos9": "centos9",
}

var opensuseSeries = map[string]string{
Expand Down Expand Up @@ -284,6 +286,10 @@ var nonUbuntuSeries = map[string]SeriesVersionInfo{
Version: "centos8",
Supported: true,
},
"centos9": {
Version: "centos9",
Supported: true,
},
"opensuseleap": {
Version: "opensuse42",
Supported: true,
Expand Down
6 changes: 3 additions & 3 deletions series/supportedseries_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (s *supportedSeriesSuite) TestSupportedJujuWorkloadSeries(c *gc.C) {
c.Assert(err, jc.ErrorIsNil)
s.PatchValue(series.UbuntuDistroInfoPath, filename)

expectedSeries := []string{"groovy", "focal", "bionic", "xenial", "centos7", "centos8", "genericlinux", "kubernetes", "opensuseleap", "win10", "win2008r2", "win2012", "win2012hv", "win2012hvr2", "win2012r2", "win2016", "win2016hv", "win2016nano", "win2019", "win7", "win8", "win81"}
expectedSeries := []string{"groovy", "focal", "bionic", "xenial", "centos7", "centos8", "centos9", "genericlinux", "kubernetes", "opensuseleap", "win10", "win2008r2", "win2012", "win2012hv", "win2012hvr2", "win2012r2", "win2016", "win2016hv", "win2016nano", "win2019", "win7", "win8", "win81"}
series := series.SupportedJujuWorkloadSeries()
c.Assert(series, jc.DeepEquals, expectedSeries)
}
Expand All @@ -151,7 +151,7 @@ func (s *supportedSeriesSuite) TestSupportedJujuSeries(c *gc.C) {
c.Assert(err, jc.ErrorIsNil)
s.PatchValue(series.UbuntuDistroInfoPath, filename)

expectedSeries := []string{"groovy", "focal", "bionic", "xenial", "centos7", "centos8", "genericlinux", "kubernetes", "opensuseleap", "win10", "win2008r2", "win2012", "win2012hv", "win2012hvr2", "win2012r2", "win2016", "win2016hv", "win2016nano", "win2019", "win7", "win8", "win81"}
expectedSeries := []string{"groovy", "focal", "bionic", "xenial", "centos7", "centos8", "centos9", "genericlinux", "kubernetes", "opensuseleap", "win10", "win2008r2", "win2012", "win2012hv", "win2012hvr2", "win2012r2", "win2016", "win2016hv", "win2016nano", "win2019", "win7", "win8", "win81"}
series := series.SupportedJujuSeries()
c.Assert(series, jc.DeepEquals, expectedSeries)
}
Expand Down Expand Up @@ -243,7 +243,7 @@ func (s *isolationSupportedSeriesSuite) TestBadFilePath(c *gc.C) {
filename := filepath.Join(d, "bad-file.csv")
s.PatchValue(series.UbuntuDistroInfoPath, filename)

expectedSeries := []string{"artful", "bionic", "centos7", "centos8", "cosmic", "disco", "eoan", "focal", "genericlinux", "groovy", "hirsute", "impish", "jammy", "opensuseleap", "precise", "quantal", "raring", "saucy", "trusty", "utopic", "vivid", "wily", "win10", "win2008r2", "win2012", "win2012hv", "win2012hvr2", "win2012r2", "win2016", "win2016hv", "win2016nano", "win2019", "win7", "win8", "win81", "xenial", "yakkety", "zesty"}
expectedSeries := []string{"artful", "bionic", "centos7", "centos8", "centos9", "cosmic", "disco", "eoan", "focal", "genericlinux", "groovy", "hirsute", "impish", "jammy", "opensuseleap", "precise", "quantal", "raring", "saucy", "trusty", "utopic", "vivid", "wily", "win10", "win2008r2", "win2012", "win2012hv", "win2012hvr2", "win2012r2", "win2016", "win2016hv", "win2016nano", "win2019", "win7", "win8", "win81", "xenial", "yakkety", "zesty"}
series := series.SupportedSeries()
sort.Strings(series)
c.Assert(series, gc.DeepEquals, expectedSeries)
Expand Down

0 comments on commit 17f068e

Please sign in to comment.