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

Issue 98440043: agent/mongo: improve TestEnsureAdminUser

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by axw
Modified:
9 years, 11 months ago
Reviewers:
mp+220204, fwereade
Visibility:
Public.

Description

agent/mongo: improve TestEnsureAdminUser Several improvements in an efford to get TestEnsureAdminUser to stop failing CI. - Call the BaseSuite's SetUpTest - Log the error Login - Mock out the starting of mongod with --noauth. The existing code actually starts up mongod again inside the test, with the same port as the still-running server. This *may* be what caused issues in CI, but I could never reproduce it. - Extend TestEnsureAdminUser to check that mongod is/isn't started/stopped/etc. Possibly fixes lp:1319225 (I have been unable to reproduce the failure) https://code.launchpad.net/~axwalk/juju-core/lp1319225-testensureadminuser/+merge/220204 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : agent/mongo: improve TestEnsureAdminUser #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -37 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
A agent/mongo/export_test.go View 1 1 chunk +18 lines, -0 lines 0 comments Download
M agent/mongo/mongo_test.go View 1 17 chunks +29 lines, -28 lines 0 comments Download
M agent/mongo/upgrade.go View 2 chunks +5 lines, -0 lines 0 comments Download
M agent/mongo/upgrade_test.go View 1 3 chunks +56 lines, -9 lines 0 comments Download

Messages

Total messages: 4
axw
Please take a look.
9 years, 11 months ago (2014-05-20 08:10:54 UTC) #1
fwereade
LGTM, let's see if it helps :). https://codereview.appspot.com/98440043/diff/1/agent/mongo/upgrade_test.go File agent/mongo/upgrade_test.go (right): https://codereview.appspot.com/98440043/diff/1/agent/mongo/upgrade_test.go#newcode4 agent/mongo/upgrade_test.go:4: package mongo ...
9 years, 11 months ago (2014-05-20 08:17:33 UTC) #2
axw
https://codereview.appspot.com/98440043/diff/1/agent/mongo/upgrade_test.go File agent/mongo/upgrade_test.go (right): https://codereview.appspot.com/98440043/diff/1/agent/mongo/upgrade_test.go#newcode4 agent/mongo/upgrade_test.go:4: package mongo On 2014/05/20 08:17:33, fwereade wrote: > Not ...
9 years, 11 months ago (2014-05-20 08:18:56 UTC) #3
axw
9 years, 11 months ago (2014-05-20 08:43:52 UTC) #4
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