Descriptionagent/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 #
MessagesTotal messages: 4
|