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

Issue 11125043: apiserver: common Remover mixin (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by dimitern
Modified:
10 years, 9 months ago
Reviewers:
mp+174014, jameinel, fwereade
Visibility:
Public.

Description

apiserver: common Remover mixin Like the LifeGetter and PasswordChanger, this mixin is intended for composition into worker facades like the deployer and provisioner - handles entities with Remove and EnsureDead methods, handling authorization correctly. Cleaned up some of minor things inside the other mixins as well, added more tests. https://code.launchpad.net/~dimitern/juju-core/068-api-common-remover/+merge/174014 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 18

Patch Set 2 : apiserver: common Remover mixin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -10 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/apiserver/common/life.go View 2 chunks +7 lines, -4 lines 0 comments Download
M state/apiserver/common/life_test.go View 1 1 chunk +11 lines, -1 line 0 comments Download
M state/apiserver/common/password.go View 1 chunk +7 lines, -4 lines 0 comments Download
M state/apiserver/common/password_test.go View 1 1 chunk +11 lines, -1 line 0 comments Download
A state/apiserver/common/remove.go View 1 1 chunk +65 lines, -0 lines 0 comments Download
A state/apiserver/common/remove_test.go View 1 1 chunk +111 lines, -0 lines 0 comments Download
M state/state.go View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
10 years, 9 months ago (2013-07-10 18:13:48 UTC) #1
fwereade
LGTM, just trivials. https://codereview.appspot.com/11125043/diff/1/state/apiserver/common/life_test.go File state/apiserver/common/life_test.go (left): https://codereview.appspot.com/11125043/diff/1/state/apiserver/common/life_test.go#oldcode69 state/apiserver/common/life_test.go:69: } One more test that we ...
10 years, 9 months ago (2013-07-10 18:26:55 UTC) #2
jameinel
I think with William's suggestions, LGTM. I have some suggestions, but naming is hard. :) ...
10 years, 9 months ago (2013-07-10 18:41:44 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/11125043/diff/1/state/apiserver/common/life_test.go File state/apiserver/common/life_test.go (left): https://codereview.appspot.com/11125043/diff/1/state/apiserver/common/life_test.go#oldcode69 state/apiserver/common/life_test.go:69: } On 2013/07/10 18:26:55, fwereade ...
10 years, 9 months ago (2013-07-10 18:58:50 UTC) #4
dimitern
10 years, 9 months ago (2013-07-10 19:07:23 UTC) #5
https://codereview.appspot.com/11125043/diff/1/state/apiserver/common/remove_...
state/apiserver/common/remove_test.go:46: unauth := &params.Error{
On 2013/07/10 18:26:55, fwereade wrote:
>> hey, this is looking pretty common, might be worth moving out.

>Good point - I'll move it to package-level var and reuse it >in other tests.

Whoops I forgot about this - will change it in a follow-up, sorry.
Sign in to reply to this message.

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