Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(68)

Delta Between Two Patch Sets: upgrades/steps118_test.go

Issue 68990043: System SSH key upgrader (Closed)
Left Patch Set: Created 11 years, 1 month ago
Right Patch Set: System SSH key upgrader Created 11 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « upgrades/steps118.go ('k') | upgrades/systemsshkey.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2014 Canonical Ltd. 1 // Copyright 2014 Canonical Ltd.
2 // Licensed under the AGPLv3, see LICENCE file for details. 2 // Licensed under the AGPLv3, see LICENCE file for details.
3 3
4 package upgrades_test 4 package upgrades_test
5 5
6 import ( 6 import (
7 gc "launchpad.net/gocheck" 7 gc "launchpad.net/gocheck"
8 8
9 "launchpad.net/juju-core/testing/testbase" 9 "launchpad.net/juju-core/testing/testbase"
10 "launchpad.net/juju-core/upgrades" 10 "launchpad.net/juju-core/upgrades"
11 ) 11 )
12 12
13 type steps118Suite struct { 13 type steps118Suite struct {
14 testbase.LoggingSuite 14 testbase.LoggingSuite
15 } 15 }
16 16
17 var _ = gc.Suite(&steps118Suite{}) 17 var _ = gc.Suite(&steps118Suite{})
18 18
19 var expectedSteps = []string{ 19 var expectedSteps = []string{
20 "make $DATADIR/locks owned by ubuntu:ubuntu", 20 "make $DATADIR/locks owned by ubuntu:ubuntu",
21 "generate system ssh key", 21 "generate system ssh key",
22 } 22 }
23 23
24 func (s *steps118Suite) TestUpgradeOperationsContent(c *gc.C) { 24 func (s *steps118Suite) TestUpgradeOperationsContent(c *gc.C) {
25 upgradeSteps := upgrades.StepsFor118() 25 upgradeSteps := upgrades.StepsFor118()
26 c.Assert(upgradeSteps, gc.HasLen, 2) 26 c.Assert(upgradeSteps, gc.HasLen, 2)
27 assertExpectedSteps(c, upgradeSteps, expectedSteps) 27 assertExpectedSteps(c, upgradeSteps, expectedSteps)
28 } 28 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b