github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/upgrades/steps_232_test.go (about)

     1  // Copyright 2017 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package upgrades_test
     5  
     6  import (
     7  	jc "github.com/juju/testing/checkers"
     8  	"github.com/juju/version"
     9  	gc "gopkg.in/check.v1"
    10  
    11  	"github.com/juju/juju/testing"
    12  	"github.com/juju/juju/upgrades"
    13  )
    14  
    15  var v232 = version.MustParse("2.3.2")
    16  
    17  type steps232Suite struct {
    18  	testing.BaseSuite
    19  }
    20  
    21  var _ = gc.Suite(&steps232Suite{})
    22  
    23  func (s *steps232Suite) TestMoveOldAuditLog(c *gc.C) {
    24  	step := findStateStep(c, v232, "move or drop the old audit log collection")
    25  	// Logic for step itself is tested in state package.
    26  	c.Assert(step.Targets(), jc.DeepEquals, []upgrades.Target{upgrades.DatabaseMaster})
    27  }