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

Issue 14011046: provider/null: define simplestreams tools source

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by axw
Modified:
10 years, 6 months ago
Reviewers:
mp+187978, axw1, fwereade, thumper, rog
Visibility:
Public.

Description

provider/null: define simplestreams tools source This is somewhat involved, as there's some fixes required (and one drive-by in sshstorage). The change to use GetToolsSources is simple enough, and matches what the local provider does. The Environ override struct in cmd/juju/bootstrap.go had to so that the optional Environ interfaces were still implemented. Overriding like that loses the additional interfaces. To do the above, environs.BootstrapStorager has been changed to have a method that tells the environ to use bootstrap storage, rather than returning a bootstrap storage. The null provider has changed to match, of course, as well as cmd/juju. https://code.launchpad.net/~axwalk/juju-core/null-provider-customsources/+merge/187978 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 22

Patch Set 2 : provider/null: define simplestreams tools source #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -33 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 3 chunks +2 lines, -14 lines 0 comments Download
M environs/httpstorage/storage.go View 1 chunk +1 line, -0 lines 0 comments Download
M environs/interface.go View 1 1 chunk +10 lines, -7 lines 0 comments Download
M environs/manual/bootstrap.go View 1 3 chunks +1 line, -6 lines 0 comments Download
M environs/sshstorage/storage.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/null/environ.go View 1 3 chunks +36 lines, -5 lines 0 comments Download
M provider/null/environ_test.go View 1 2 chunks +43 lines, -0 lines 2 comments Download

Messages

Total messages: 9
axw
Please take a look.
10 years, 7 months ago (2013-09-27 05:32:20 UTC) #1
fwereade
Good direction, but a few notes: https://codereview.appspot.com/14011046/diff/1/provider/null/environ.go File provider/null/environ.go (left): https://codereview.appspot.com/14011046/diff/1/provider/null/environ.go#oldcode43 provider/null/environ.go:43: } It's quite ...
10 years, 7 months ago (2013-09-27 09:47:33 UTC) #2
rog
I never did like the optional Environ interfaces, and now I have another reason - ...
10 years, 7 months ago (2013-09-27 10:35:25 UTC) #3
axw1
Thanks for the reviews. rog: agreed, it would be *much* nicer if this could be ...
10 years, 7 months ago (2013-09-29 16:05:25 UTC) #4
axw
Please take a look.
10 years, 7 months ago (2013-09-29 16:27:46 UTC) #5
rog
> rog: agreed, it would be *much* nicer if this could be determined automatically. > ...
10 years, 7 months ago (2013-09-30 13:31:08 UTC) #6
axw1
On 2013/09/30 13:31:08, rog wrote: > > rog: agreed, it would be *much* nicer if ...
10 years, 6 months ago (2013-10-01 00:35:25 UTC) #7
thumper
LGTM with one comment on base test suite. https://codereview.appspot.com/14011046/diff/11001/provider/null/environ_test.go File provider/null/environ_test.go (right): https://codereview.appspot.com/14011046/diff/11001/provider/null/environ_test.go#newcode24 provider/null/environ_test.go:24: testbase.CleanupSuite ...
10 years, 6 months ago (2013-10-02 04:26:49 UTC) #8
axw1
10 years, 6 months ago (2013-10-02 05:06:17 UTC) #9
Thanks for the review.

https://codereview.appspot.com/14011046/diff/11001/provider/null/environ_test.go
File provider/null/environ_test.go (right):

https://codereview.appspot.com/14011046/diff/11001/provider/null/environ_test...
provider/null/environ_test.go:24: testbase.CleanupSuite
On 2013/10/02 04:26:49, thumper wrote:
> I'd recommend using the LoggingSuite just because it catches the logging that
> may happen anywhere, and puts it in the test log, so it is visible in the test
> failures.

Done.
Sign in to reply to this message.

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