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

Delta Between Two Patch Sets: cmd/juju/upgradejuju_test.go

Issue 25080043: cmd/juju: upgrade-juju minor version upgrades (Closed)
Left Patch Set: cmd/juju: upgrade-juju minor version upgrades Created 10 years, 4 months ago
Right Patch Set: cmd/juju: upgrade-juju minor version upgrades Created 10 years, 4 months 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 | « cmd/juju/upgradejuju.go ('k') | tools/list.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 2012, 2013 Canonical Ltd. 1 // Copyright 2012, 2013 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 main 4 package main
5 5
6 import ( 6 import (
7 "archive/tar" 7 "archive/tar"
8 "bytes" 8 "bytes"
9 "compress/gzip" 9 "compress/gzip"
10 "io" 10 "io"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 about: "latest supported stable, when client is dev", 114 about: "latest supported stable, when client is dev",
115 tools: []string{"2.1.1-quantal-amd64", "2.2.0-quantal-amd64", " 2.3.0-quantal-amd64", "3.0.1-quantal-amd64"}, 115 tools: []string{"2.1.1-quantal-amd64", "2.2.0-quantal-amd64", " 2.3.0-quantal-amd64", "3.0.1-quantal-amd64"},
116 currentVersion: "2.1.0-quantal-amd64", 116 currentVersion: "2.1.0-quantal-amd64",
117 agentVersion: "2.0.0", 117 agentVersion: "2.0.0",
118 expectVersion: "2.2.0", 118 expectVersion: "2.2.0",
119 }, { 119 }, {
120 about: "latest current, when agent is dev", 120 about: "latest current, when agent is dev",
121 tools: []string{"2.1.1-quantal-amd64", "2.2.0-quantal-amd64", " 2.3.0-quantal-amd64", "3.0.1-quantal-amd64"}, 121 tools: []string{"2.1.1-quantal-amd64", "2.2.0-quantal-amd64", " 2.3.0-quantal-amd64", "3.0.1-quantal-amd64"},
122 currentVersion: "2.0.0-quantal-amd64", 122 currentVersion: "2.0.0-quantal-amd64",
123 agentVersion: "2.1.0", 123 agentVersion: "2.1.0",
124 » expectVersion: "2.1.1", 124 » expectVersion: "2.2.0",
125 }, { 125 }, {
126 about: "specified version", 126 about: "specified version",
127 tools: []string{"2.3.0-quantal-amd64"}, 127 tools: []string{"2.3.0-quantal-amd64"},
128 currentVersion: "2.0.0-quantal-amd64", 128 currentVersion: "2.0.0-quantal-amd64",
129 agentVersion: "2.0.0", 129 agentVersion: "2.0.0",
130 args: []string{"--version", "2.3.0"}, 130 args: []string{"--version", "2.3.0"},
131 expectVersion: "2.3.0", 131 expectVersion: "2.3.0",
132 }, { 132 }, {
133 about: "specified version missing, but already set", 133 about: "specified version missing, but already set",
134 currentVersion: "3.0.0-quantal-amd64", 134 currentVersion: "3.0.0-quantal-amd64",
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 func (s *UpgradeJujuSuite) TestUpgradeJujuWithRealUpload(c *gc.C) { 392 func (s *UpgradeJujuSuite) TestUpgradeJujuWithRealUpload(c *gc.C) {
393 s.Reset(c) 393 s.Reset(c)
394 _, err := coretesting.RunCommand(c, &UpgradeJujuCommand{}, []string{"--u pload-tools"}) 394 _, err := coretesting.RunCommand(c, &UpgradeJujuCommand{}, []string{"--u pload-tools"})
395 c.Assert(err, gc.IsNil) 395 c.Assert(err, gc.IsNil)
396 vers := version.Current 396 vers := version.Current
397 vers.Build = 1 397 vers.Build = 1
398 tools, err := envtools.FindInstanceTools(s.Conn.Environ, vers.Number, ve rs.Series, &vers.Arch) 398 tools, err := envtools.FindInstanceTools(s.Conn.Environ, vers.Number, ve rs.Series, &vers.Arch)
399 c.Assert(err, gc.IsNil) 399 c.Assert(err, gc.IsNil)
400 c.Assert(len(tools), gc.Equals, 1) 400 c.Assert(len(tools), gc.Equals, 1)
401 } 401 }
LEFTRIGHT

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