Merge lp:~wallyworld/juju-core/fix-fake-tools-trusty into lp:juju-core/1.18

Proposed by Ian Booth
Status: Merged
Approved by: Ian Booth
Approved revision: no longer in the source branch.
Merged at revision: 2291
Proposed branch: lp:~wallyworld/juju-core/fix-fake-tools-trusty
Merge into: lp:juju-core/1.18
Diff against target: 20 lines (+2/-1)
1 file modified
environs/testing/tools.go (+2/-1)
To merge this branch: bzr merge lp:~wallyworld/juju-core/fix-fake-tools-trusty
Reviewer Review Type Date Requested Status
Juju Engineering Pending
Review via email: mp+219132@code.launchpad.net

Commit message

Simple fix to update the fake tools upload so that we always include tools for precise and trusty no matter what series the tests are run on.

Description of the change

Simple fix to update the fake tools upload so that we always include tools for precise and trusty no matter what series the tests are run on.

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

Does this do both Precise and Trusty? It looks like it only does 1 "Latest"
LTS (so only Trusty at this point).

On Mon, May 12, 2014 at 7:35 AM, Ian Booth <email address hidden> wrote:

> Ian Booth has proposed merging
> lp:~wallyworld/juju-core/fix-fake-tools-trusty into lp:juju-core/1.18.
>
> Commit message:
> Simple fix to update the fake tools upload so that we always include tools
> for precise and trusty no matter what series the tests are run on.
>
> Requested reviews:
> juju hackers (juju)
> Related bugs:
> Bug #1312176 in juju-core: "test suite fails on Precise now that Trusty
> is released"
> https://bugs.launchpad.net/juju-core/+bug/1312176
>
> For more details, see:
>
> https://code.launchpad.net/~wallyworld/juju-core/fix-fake-tools-trusty/+merge/219132
>
> Simple fix to update the fake tools upload so that we always include tools
> for precise and trusty no matter what series the tests are run on.
> --
>
> https://code.launchpad.net/~wallyworld/juju-core/fix-fake-tools-trusty/+merge/219132
> You are subscribed to branch lp:juju-core/1.18.
>
> === modified file 'environs/testing/tools.go'
> --- environs/testing/tools.go 2014-04-04 14:01:14 +0000
> +++ environs/testing/tools.go 2014-05-12 03:34:34 +0000
> @@ -13,6 +13,7 @@
>
> agenttools "launchpad.net/juju-core/agent/tools"
> "launchpad.net/juju-core/environs"
> + "launchpad.net/juju-core/environs/config"
> "launchpad.net/juju-core/environs/simplestreams"
> "launchpad.net/juju-core/environs/storage"
> envtools "launchpad.net/juju-core/environs/tools"
> @@ -162,7 +163,7 @@
> func uploadFakeTools(stor storage.Storage) error {
> versions := []version.Binary{version.Current}
> toolsVersion := version.Current
> - latestLts := coretesting.FakeDefaultSeries
> + latestLts := config.LatestLtsSeries()
> if toolsVersion.Series != latestLts {
> toolsVersion.Series = latestLts
> versions = append(versions, toolsVersion)
>
>
>

Revision history for this message
Ian Booth (wallyworld) wrote :

I tested with various combintions: version.Current.Series = precise/trusty, LatestLts() = precise/trusty
The key as far as I can see is that we upload tools for at least latest lts plus whatever series the tests run on.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'environs/testing/tools.go'
2--- environs/testing/tools.go 2014-04-04 14:01:14 +0000
3+++ environs/testing/tools.go 2014-05-12 03:34:34 +0000
4@@ -13,6 +13,7 @@
5
6 agenttools "launchpad.net/juju-core/agent/tools"
7 "launchpad.net/juju-core/environs"
8+ "launchpad.net/juju-core/environs/config"
9 "launchpad.net/juju-core/environs/simplestreams"
10 "launchpad.net/juju-core/environs/storage"
11 envtools "launchpad.net/juju-core/environs/tools"
12@@ -162,7 +163,7 @@
13 func uploadFakeTools(stor storage.Storage) error {
14 versions := []version.Binary{version.Current}
15 toolsVersion := version.Current
16- latestLts := coretesting.FakeDefaultSeries
17+ latestLts := config.LatestLtsSeries()
18 if toolsVersion.Series != latestLts {
19 toolsVersion.Series = latestLts
20 versions = append(versions, toolsVersion)

Subscribers

People subscribed via source and target branches

to all changes: