-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3850 from mjs/extract-upgrade-steps
Extract the upgradesteps worker to its own package This change moves the upgradesteps worker from cmd/jujud/agent to worker/upgradesteps and makes the required changes to allow this to work. This move is required for the upcoming change to get this worker running under the dependency engine. A number of cleanups were made along the way including: - a state opening function is now passed in to the worker instead of the worker having knowledge of how to do this. - the function to set machine status is now passed via an interface instead of pulling this off the agent The upgradesteps worker code is now cleaner but there are a number of other improvements to make. These are documented in a new set of TODOs at the top of worker/upgradesteps/worker.go and will be addressed in the next PR. (Review request: http://reviews.vapour.ws/r/3269/)
- Loading branch information
Showing
6 changed files
with
221 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2015 Canonical Ltd. | ||
// Licensed under the AGPLv3, see LICENCE file for details. | ||
|
||
package upgradesteps | ||
|
||
import ( | ||
stdtesting "testing" | ||
|
||
"github.com/juju/juju/testing" | ||
) | ||
|
||
func TestAll(t *stdtesting.T) { | ||
testing.MgoTestPackage(t) | ||
} |
Oops, something went wrong.