forked from juju/juju
-
Notifications
You must be signed in to change notification settings - Fork 0
/
steps_21_test.go
33 lines (25 loc) · 960 Bytes
/
steps_21_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2016 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package upgrades_test
import (
jc "github.com/juju/testing/checkers"
"github.com/juju/version"
gc "gopkg.in/check.v1"
"github.com/juju/juju/testing"
"github.com/juju/juju/upgrades"
)
var v210 = version.MustParse("2.1.0")
type steps21Suite struct {
testing.BaseSuite
}
var _ = gc.Suite(&steps21Suite{})
func (s *steps21Suite) TestAddMigrationAttempt(c *gc.C) {
step := findStateStep(c, v210, "add attempt to migration docs")
// Logic for step itself is tested in state package.
c.Assert(step.Targets(), jc.DeepEquals, []upgrades.Target{upgrades.DatabaseMaster})
}
func (s *steps21Suite) TestAddLocalCharmSequences(c *gc.C) {
step := findStateStep(c, v210, "add sequences to track used local charm revisions")
// Logic for step itself is tested in state package.
c.Assert(step.Targets(), jc.DeepEquals, []upgrades.Target{upgrades.DatabaseMaster})
}