~rogpeppe/juju-core/438-local-instance-Addresses

« back to all changes in this revision

Viewing changes to worker/upgrader/upgrader_test.go

[r=fwereade],[bug=1234035] Fix upgrade 1.14 -> 1.15

This adds a Tools() API call to provisioner API,
similarly to the upgrader API. Common code factored
out into apiserver/common/tools.go.

SetAgentTools() renamed to SetAgentVersion() in
machine and unit state types. Also renamed a few
types in params to be shorter or better reflect
what are they about. Added DEPRECATE(v1.18) tags
to bits of the API that need cleanup.

Live tested on EC2 - after copying the tools from
/tools/releases/ to /tools/ the upgrade proceeds
and finishes successfully.

https://codereview.appspot.com/14231044/

R=fwereade, jameinel

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
        envtesting.CheckTools(c, gotTools, agentTools)
96
96
}
97
97
 
98
 
func (s *UpgraderSuite) TestUpgraderSetToolsEvenWithNoToolsToRead(c *gc.C) {
 
98
func (s *UpgraderSuite) TestUpgraderSetVersion(c *gc.C) {
99
99
        vers := version.MustParseBinary("5.4.3-precise-amd64")
100
100
        envtesting.PrimeTools(c, s.Conn.Environ.Storage(), s.DataDir(), vers)
101
101
        err := os.RemoveAll(filepath.Join(s.DataDir(), "tools"))