github.com/mwhudson/juju@v0.0.0-20160512215208-90ff01f3497f/upgrades/steps126_test.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package upgrades_test
     5  
     6  import (
     7  	"github.com/juju/version"
     8  	gc "gopkg.in/check.v1"
     9  
    10  	"github.com/juju/juju/testing"
    11  )
    12  
    13  type steps126Suite struct {
    14  	testing.BaseSuite
    15  }
    16  
    17  var _ = gc.Suite(&steps126Suite{})
    18  
    19  func (s *steps126Suite) TestStepsFor126(c *gc.C) {
    20  	expected := []string{}
    21  	assertSteps(c, version.MustParse("1.26.0"), expected)
    22  }
    23  
    24  func (s *steps126Suite) TestStateStepsFor126(c *gc.C) {
    25  	expected := []string{
    26  		"add the version field to all settings docs",
    27  		"add status to filesystem",
    28  		"upgrade model config",
    29  		"provider side upgrades",
    30  		"update machine preferred addresses",
    31  		"add default endpoint bindings to services",
    32  	}
    33  	assertStateSteps(c, version.MustParse("1.26.0"), expected)
    34  }