Пример #1
0
func (s *supportedSeriesSuite) TestOSSupportedSeries(c *gc.C) {
	version.SetSeriesVersions(map[string]string{
		"trusty": "14.04",
		"utopic": "14.10",
		"win7":   "win7",
		"win81":  "win81",
	})
	series := version.OSSupportedSeries(version.Ubuntu)
	c.Assert(series, jc.SameContents, []string{"trusty", "utopic"})
	series = version.OSSupportedSeries(version.Windows)
	c.Assert(series, jc.SameContents, []string{"win7", "win81"})
}
Пример #2
0
func (s *supportedSeriesSuite) SetUpTest(c *gc.C) {
	s.cleanup = version.SetSeriesVersions(make(map[string]string))
}
Пример #3
0
func (s *linuxVersionSuite) SetUpTest(c *gc.C) {
	cleanup := version.SetSeriesVersions(make(map[string]string))
	s.AddCleanup(func(*gc.C) { cleanup() })
}