[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/