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

Unified Diff: environs/tools_test.go

Issue 6245048: environs/ec2: use Go client on server.
Patch Set: environs/ec2: use Go client on server. Created 12 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « environs/tools.go ('k') | testing/log.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: environs/tools_test.go
=== modified file 'environs/tools_test.go'
--- environs/tools_test.go 2012-05-22 08:55:34 +0000
+++ environs/tools_test.go 2012-05-28 07:44:24 +0000
@@ -44,12 +44,8 @@
return v
}
-func toolsPathForVersion(v version.Version, series, arch string) string {
- return fmt.Sprintf("tools/juju-%v-%s-%s.tgz", v, series, arch)
-}
-
func mkToolsPath(vers string) string {
- return toolsPathForVersion(mkVersion(vers), environs.CurrentSeries, environs.CurrentArch)
+ return environs.ToolsPath(mkVersion(vers), environs.CurrentSeries, environs.CurrentArch)
}
var _ = Suite(&ToolsSuite{})
@@ -202,8 +198,8 @@
// mismatching series or architecture is ignored.
version: mkVersion("1.0.0"),
contents: []string{
- toolsPathForVersion(mkVersion("1.9.9"), "foo", environs.CurrentArch),
- toolsPathForVersion(mkVersion("1.9.9"), environs.CurrentSeries, "foo"),
+ environs.ToolsPath(mkVersion("1.9.9"), "foo", environs.CurrentArch),
+ environs.ToolsPath(mkVersion("1.9.9"), environs.CurrentSeries, "foo"),
mkToolsPath("1.0.0"),
},
expect: mkToolsPath("1.0.0"),
« no previous file with comments | « environs/tools.go ('k') | testing/log.go » ('j') | no next file with comments »

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