github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/provider/common/disk_test.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package common_test 5 6 import ( 7 gc "gopkg.in/check.v1" 8 9 "github.com/juju/juju/provider/common" 10 ) 11 12 type DiskSuite struct{} 13 14 var _ = gc.Suite(&DiskSuite{}) 15 16 func (s *DiskSuite) TestMinRootDiskSizeGiB(c *gc.C) { 17 var diskTests = []struct { 18 series string 19 expectedSize uint64 20 }{ 21 {"trusty", 8}, 22 {"win2012r2", 40}, 23 {"centos7", 8}, 24 {"opensuseleap", 8}, 25 {"fake-series", 8}, 26 } 27 for _, t := range diskTests { 28 actualSize := common.MinRootDiskSizeGiB(t.series) 29 c.Assert(t.expectedSize, gc.Equals, actualSize) 30 } 31 }