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

Issue 10026044: state/api: Split client Machiner into subpackage (Closed)

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

Description

state/api: Split client Machiner into subpackage Following up on https://codereview.appspot.com/10044043/ this does the same for the client-side: splits machiner facade into its own pacakge. https://code.launchpad.net/~dimitern/juju-core/056-api-machiner-client-subpackage/+merge/167489 Requires: https://code.launchpad.net/~dimitern/juju-core/055-api-machiner-subpackages/+merge/167486 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/api: Split client Machiner into subpackage #

Total comments: 16

Patch Set 3 : state/api: Split client Machiner into subpackage #

Patch Set 4 : state/api: Split client Machiner into subpackage #

Patch Set 5 : state/api: Split client Machiner into subpackage #

Total comments: 4

Patch Set 6 : state/api: Split client Machiner into subpackage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -113 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/machine_test.go View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M state/api/apiclient.go View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M state/api/client.go View 14 chunks +20 lines, -20 lines 0 comments Download
A state/api/common/interfaces.go View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A state/api/machiner/machine.go View 1 2 1 chunk +62 lines, -0 lines 0 comments Download
M state/api/machiner/machiner.go View 1 2 3 chunks +9 lines, -62 lines 0 comments Download
M state/api/machiner/machiner_test.go View 1 2 3 4 5 5 chunks +5 lines, -11 lines 0 comments Download
M state/api/state.go View 1 2 3 4 5 2 chunks +8 lines, -5 lines 0 comments Download
M state/api/watcher.go View 5 chunks +8 lines, -8 lines 0 comments Download
M state/apiserver/login_test.go View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/server_test.go View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10
dimitern
Please take a look.
10 years, 10 months ago (2013-06-05 09:44:12 UTC) #1
fwereade
LGTM, although I have same uncertainty about "apimachiner" vs "machiner" as expressed in the prereq.
10 years, 10 months ago (2013-06-05 09:49:08 UTC) #2
dimitern
On 2013/06/05 09:49:08, fwereade wrote: > LGTM, although I have same uncertainty about "apimachiner" vs ...
10 years, 10 months ago (2013-06-05 10:20:21 UTC) #3
dimitern
Please take a look.
10 years, 10 months ago (2013-06-05 10:56:02 UTC) #4
rog
looks reasonable, with a few comments and suggestions below. https://codereview.appspot.com/10026044/diff/5001/state/api/common/interfaces.go File state/api/common/interfaces.go (right): https://codereview.appspot.com/10026044/diff/5001/state/api/common/interfaces.go#newcode6 state/api/common/interfaces.go:6: ...
10 years, 10 months ago (2013-06-05 16:52:16 UTC) #5
dimitern
Please take a look. https://codereview.appspot.com/10026044/diff/5001/state/api/common/interfaces.go File state/api/common/interfaces.go (right): https://codereview.appspot.com/10026044/diff/5001/state/api/common/interfaces.go#newcode6 state/api/common/interfaces.go:6: // Caller interface is implemented ...
10 years, 10 months ago (2013-06-06 09:57:04 UTC) #6
dimitern
Please take a look.
10 years, 10 months ago (2013-06-06 17:19:21 UTC) #7
dimitern
Please take a look.
10 years, 10 months ago (2013-06-06 17:21:07 UTC) #8
rog
LGTM with a couple of trivials below. https://codereview.appspot.com/10026044/diff/24001/state/api/machiner/machiner_test.go File state/api/machiner/machiner_test.go (right): https://codereview.appspot.com/10026044/diff/24001/state/api/machiner/machiner_test.go#newcode85 state/api/machiner/machiner_test.go:85: func (s ...
10 years, 10 months ago (2013-06-06 17:29:49 UTC) #9
dimitern
10 years, 10 months ago (2013-06-06 17:56:11 UTC) #10
*** Submitted:

state/api: Split client Machiner into subpackage

Following up on https://codereview.appspot.com/10044043/
this does the same for the client-side: splits
machiner facade into its own pacakge.

R=fwereade, rog
CC=
https://codereview.appspot.com/10026044

https://codereview.appspot.com/10026044/diff/24001/state/api/machiner/machine...
File state/api/machiner/machiner_test.go (right):

https://codereview.appspot.com/10026044/diff/24001/state/api/machiner/machine...
state/api/machiner/machiner_test.go:85: func (s *machinerSuite)
TestMachinerFailsWithNotEmptyId(c *C) {
On 2013/06/06 17:29:50, rog wrote:
> s/NotEmpty/NonEmpty/

Removed this test, as discussed online and added a TODO in apiclient.Call to add
tests for all such cases in one place.

https://codereview.appspot.com/10026044/diff/24001/state/api/state.go
File state/api/state.go (right):

https://codereview.appspot.com/10026044/diff/24001/state/api/state.go#newcode30
state/api/state.go:30: func (st *State) Machiner(id string) (*machiner.Machiner,
error) {
On 2013/06/06 17:29:50, rog wrote:
> i think this argument should go, as discussed.
> we can add it later if/when it becomes meaningful.

Done.
Sign in to reply to this message.

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