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

Issue 6643049: testing: make mgo work if admin password set

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by rog
Modified:
11 years, 6 months ago
Reviewers:
mp+128718
Visibility:
Public.

Description

testing: make mgo work if admin password set This means that tests can be much freer about using authentication. https://code.launchpad.net/~rogpeppe/juju-core/114-testing-logged-in-session/+merge/128718 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : testing: make mgo work if admin password set #

Patch Set 3 : testing: make mgo work if admin password set #

Patch Set 4 : testing: make mgo work if admin password set #

Patch Set 5 : testing: make mgo work if admin password set #

Patch Set 6 : testing: make mgo work if admin password set #

Total comments: 2

Patch Set 7 : testing: make mgo work if admin password set #

Total comments: 7

Patch Set 8 : testing: make mgo work if admin password set #

Patch Set 9 : testing: make mgo work if admin password set #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -52 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 2 3 4 2 chunks +12 lines, -24 lines 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -3 lines 0 comments Download
M testing/mgo.go View 1 2 3 4 5 6 7 8 6 chunks +51 lines, -19 lines 0 comments Download
M testing/mgo_test.go View 1 2 3 4 5 6 7 1 chunk +37 lines, -6 lines 0 comments Download

Messages

Total messages: 7
rog
Please take a look.
11 years, 6 months ago (2012-10-09 14:00:05 UTC) #1
rog
Please take a look.
11 years, 6 months ago (2012-10-09 15:22:29 UTC) #2
rog
Please take a look.
11 years, 6 months ago (2012-10-09 15:33:39 UTC) #3
TheMue
Only one little comment, but mostly LGTM. https://codereview.appspot.com/6643049/diff/3005/testing/mgo.go File testing/mgo.go (right): https://codereview.appspot.com/6643049/diff/3005/testing/mgo.go#newcode26 testing/mgo.go:26: mgoDbDir string ...
11 years, 6 months ago (2012-10-09 16:03:02 UTC) #4
rog
Please take a look. https://codereview.appspot.com/6643049/diff/3005/testing/mgo.go File testing/mgo.go (right): https://codereview.appspot.com/6643049/diff/3005/testing/mgo.go#newcode26 testing/mgo.go:26: mgoDbDir string On 2012/10/09 16:03:02, ...
11 years, 6 months ago (2012-10-09 16:42:30 UTC) #5
niemeyer
Nice, LGTM https://codereview.appspot.com/6643049/diff/11002/state/state_test.go File state/state_test.go (right): https://codereview.appspot.com/6643049/diff/11002/state/state_test.go#newcode987 state/state_test.go:987: // Remove the admin password so that ...
11 years, 6 months ago (2012-10-09 22:20:49 UTC) #6
rog
11 years, 6 months ago (2012-10-10 12:46:27 UTC) #7
*** Submitted:

testing: make mgo work if admin password set

This means that tests can be much freer about
using authentication.

R=TheMue, niemeyer
CC=
https://codereview.appspot.com/6643049

https://codereview.appspot.com/6643049/diff/11002/state/state_test.go
File state/state_test.go (right):

https://codereview.appspot.com/6643049/diff/11002/state/state_test.go#newcode987
state/state_test.go:987: // Remove the admin password so that the test harness
can reset.
On 2012/10/09 22:20:49, niemeyer wrote:
> What can it reset?

Done.

https://codereview.appspot.com/6643049/diff/11002/testing/mgo.go
File testing/mgo.go (right):

https://codereview.appspot.com/6643049/diff/11002/testing/mgo.go#newcode113
testing/mgo.go:113: // If we've got an unauthorized access error, so we're
On 2012/10/09 22:20:49, niemeyer wrote:
> s/so//

Done.

https://codereview.appspot.com/6643049/diff/11002/testing/mgo.go#newcode120
testing/mgo.go:120: }
On 2012/10/09 22:20:49, niemeyer wrote:
> I believe we can return here. You've just destroyed it all.

excellent point! done.
Sign in to reply to this message.

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