~mattyw/juju-core/ensure-availability-more-output

Viewing all changes in revision 2752.

[r=axwalk],[bug=1319225] 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://codereview.appspot.com/98440043/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: