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

Issue 87130045: Fix 1307241. Isolate jujud.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by waigani
Modified:
9 years, 11 months ago
Reviewers:
mp+215590, dave, wallyworld, fwereade
Visibility:
Public.

Description

Fix 1307241. Isolate jujud. Add the following mock functions to environs/tools/testing/testing.go: GetMockUploadTools GetMockBundleTools GetMockBuildTools Make envtools.BundleTools mockable. Patch functions in tests where needed to ensure tests pass without dependencies on jujud. https://code.launchpad.net/~waigani/juju-core/1307241-isolate-from-jujud/+merge/215590 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Fix 1307241. Isolate jujud. #

Total comments: 2

Patch Set 3 : Fix 1307241. Isolate jujud. #

Total comments: 19

Patch Set 4 : Fix 1307241. Isolate jujud. #

Patch Set 5 : Fix 1307241. Isolate jujud. #

Total comments: 30

Patch Set 6 : Fix 1307241. Isolate jujud. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -146 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap_test.go View 1 2 3 4 5 5 chunks +5 lines, -28 lines 0 comments Download
M cmd/juju/upgradejuju_test.go View 1 2 3 4 5 3 chunks +2 lines, -27 lines 0 comments Download
M cmd/plugins/juju-metadata/toolsmetadata_test.go View 1 2 3 4 5 8 chunks +13 lines, -13 lines 0 comments Download
M environs/bootstrap/bootstrap_test.go View 1 2 3 4 5 5 chunks +4 lines, -29 lines 0 comments Download
M environs/jujutest/livetests.go View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M environs/sync/sync_test.go View 1 2 3 4 5 8 chunks +150 lines, -30 lines 3 comments Download
M environs/tools/build.go View 1 2 3 4 3 chunks +11 lines, -4 lines 0 comments Download
M environs/tools/simplestreams_test.go View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M environs/tools/testing/testing.go View 1 2 3 4 5 3 chunks +43 lines, -0 lines 2 comments Download
M environs/tools/tools_test.go View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M state/apiserver/client/client_test.go View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/tools_test.go View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15
waigani
Please take a look.
10 years ago (2014-04-15 09:15:27 UTC) #1
dave_cheney.net
On 2014/04/15 09:15:27, waigani wrote: > Please take a look. I'm not sure I understand ...
10 years ago (2014-04-15 10:10:15 UTC) #2
wallyworld
On 2014/04/15 10:10:15, dfc wrote: > On 2014/04/15 09:15:27, waigani wrote: > > Please take ...
10 years ago (2014-04-15 13:39:44 UTC) #3
wallyworld
Looking good so far. I like that duped functionality has been consolidated. If we are ...
10 years ago (2014-04-15 13:42:05 UTC) #4
waigani
Please take a look.
10 years ago (2014-04-30 22:49:48 UTC) #5
fwereade
I don't think this is quite there yet. Definitely some good stuff, but we should ...
9 years, 12 months ago (2014-05-07 12:52:06 UTC) #6
waigani
https://codereview.appspot.com/87130045/diff/40001/environs/bootstrap/bootstrap_test.go File environs/bootstrap/bootstrap_test.go (right): https://codereview.appspot.com/87130045/diff/40001/environs/bootstrap/bootstrap_test.go#newcode24 environs/bootstrap/bootstrap_test.go:24: ttesting "launchpad.net/juju-core/environs/tools/testing" On 2014/05/07 12:52:05, fwereade wrote: > explicit ...
9 years, 11 months ago (2014-05-13 07:13:11 UTC) #7
waigani
Please take a look.
9 years, 11 months ago (2014-05-14 02:49:37 UTC) #8
waigani
On 2014/05/14 02:49:37, waigani wrote: > Please take a look. Please see my comments here: ...
9 years, 11 months ago (2014-05-14 02:52:41 UTC) #9
fwereade
ISTM that we don't use GetMockUploadTools all *that* much, and it'd be worth dropping it ...
9 years, 11 months ago (2014-05-15 08:57:20 UTC) #10
waigani
Please take a look. https://codereview.appspot.com/87130045/diff/80001/environs/sync/sync_test.go File environs/sync/sync_test.go (right): https://codereview.appspot.com/87130045/diff/80001/environs/sync/sync_test.go#newcode262 environs/sync/sync_test.go:262: type badBuildSuite struct { On ...
9 years, 11 months ago (2014-05-16 03:06:08 UTC) #11
wallyworld
LGTM
9 years, 11 months ago (2014-05-16 04:10:18 UTC) #12
fwereade
Thanks, this is great. LGTM with trivials. https://codereview.appspot.com/87130045/diff/80001/environs/sync/sync_test.go File environs/sync/sync_test.go (right): https://codereview.appspot.com/87130045/diff/80001/environs/sync/sync_test.go#newcode292 environs/sync/sync_test.go:292: c.Assert(string(out), gc.Equals, ...
9 years, 11 months ago (2014-05-16 08:29:36 UTC) #13
fwereade
On 2014/05/16 08:29:36, fwereade wrote: > Thanks, this is great. LGTM with trivials. > https://codereview.appspot.com/87130045/diff/100001/environs/sync/sync_test.go ...
9 years, 11 months ago (2014-05-16 08:30:21 UTC) #14
waigani
9 years, 11 months ago (2014-05-19 00:05:14 UTC) #15
Please take a look.
Sign in to reply to this message.

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