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

Issue 66230043: use juju-mongod if it exists

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by natefinch
Modified:
10 years, 2 months ago
Reviewers:
dimitern, mp+207320, fwereade
Visibility:
Public.

Description

use juju-mongod if it exists https://code.launchpad.net/~natefinch/juju-core/034-juju-mongo/+merge/207320 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 16

Patch Set 2 : use juju-mongod if it exists #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -26 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M provider/local/prereqs.go View 1 4 chunks +36 lines, -12 lines 0 comments Download
M provider/local/prereqs_test.go View 1 6 chunks +82 lines, -13 lines 0 comments Download
M upstart/service.go View 1 3 chunks +18 lines, -1 line 0 comments Download
M upstart/upstart_test.go View 1 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 5
natefinch
Please take a look.
10 years, 2 months ago (2014-02-19 22:13:22 UTC) #1
fwereade
I think this looks good (modulo needing to actually install juju-mongodb, bu I understand that's ...
10 years, 2 months ago (2014-02-20 10:03:15 UTC) #2
natefinch
https://codereview.appspot.com/66230043/diff/1/provider/local/prereqs.go File provider/local/prereqs.go (left): https://codereview.appspot.com/66230043/diff/1/provider/local/prereqs.go#oldcode90 provider/local/prereqs.go:90: // TODO(axw) verify version/SSL capabilities On 2014/02/20 10:03:15, fwereade ...
10 years, 2 months ago (2014-02-20 12:33:48 UTC) #3
dimitern
LGTM with a few suggestions below. https://codereview.appspot.com/66230043/diff/1/provider/local/prereqs.go File provider/local/prereqs.go (right): https://codereview.appspot.com/66230043/diff/1/provider/local/prereqs.go#newcode94 provider/local/prereqs.go:94: " Juju requires ...
10 years, 2 months ago (2014-02-20 16:41:56 UTC) #4
natefinch
10 years, 2 months ago (2014-02-21 13:46:23 UTC) #5
Please take a look.

https://codereview.appspot.com/66230043/diff/1/provider/local/prereqs.go
File provider/local/prereqs.go (right):

https://codereview.appspot.com/66230043/diff/1/provider/local/prereqs.go#newc...
provider/local/prereqs.go:94: " Juju requires version %v or greater.",
On 2014/02/20 16:41:56, dimitern wrote:
> s/" Juju/"Juju/ - no need for the extra space in here where there's another in
> the previous line.

Done.

https://codereview.appspot.com/66230043/diff/1/provider/local/prereqs.go#newc...
provider/local/prereqs.go:113: return version.Zero, errors.New("Couldn't parse
version")
On 2014/02/20 16:41:56, dimitern wrote:
> s/Couldn't parse version/Could not parse mongod version/ - slightly better and
> clearer I think.

Done.

https://codereview.appspot.com/66230043/diff/1/provider/local/prereqs_test.go
File provider/local/prereqs_test.go (right):

https://codereview.appspot.com/66230043/diff/1/provider/local/prereqs_test.go...
provider/local/prereqs_test.go:129: c.Assert(err, gc.NotNil)
On 2014/02/20 16:41:56, dimitern wrote:
> Check the actual error message?

Done.

https://codereview.appspot.com/66230043/diff/1/upstart/service.go
File upstart/service.go (right):

https://codereview.appspot.com/66230043/diff/1/upstart/service.go#newcode22
upstart/service.go:22: // MongoPath returns the executable path to be used to
run mongod on this machine.
On 2014/02/20 16:41:56, dimitern wrote:
> // MongodPath ... (to match the func name). Also s/the executable//.
> Actually, I'd prefer if you called this MongoDPath, so it matches the
> SetMongoDPath from export_test.

I removed the SetMongoDPath function since I needed to be able to set it from
outside the package too (for local provider tests)..... and I think the capital
d was a mistake anyway. The word should be all lowercase, except for the first
letter to make it public.
Sign in to reply to this message.

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