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

Issue 7205058: state: peer relation lifecycle

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

Description

state: peer relation lifecycle Services that define peer relations now always have peer relations -- they can no longer be created or destroyed directly (well, they could be created; but real ones will already exist, and fake relations will be removed in a followup). https://code.launchpad.net/~fwereade/juju-core/peer-relation-lifecycle/+merge/144975 Requires: https://code.launchpad.net/~fwereade/juju-core/state-test-sane-endpoints/+merge/144767 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : state: peer relation lifecycle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -237 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/deploy.go View 1 chunk +5 lines, -1 line 0 comments Download
M cmd/jujud/machine_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujud/unit_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M environs/jujutest/livetests.go View 1 1 chunk +1 line, -1 line 0 comments Download
M juju/conn.go View 1 1 chunk +0 lines, -26 lines 0 comments Download
M juju/conn_test.go View 5 chunks +5 lines, -37 lines 0 comments Download
M state/relation.go View 1 2 chunks +9 lines, -0 lines 0 comments Download
M state/relation_test.go View 1 7 chunks +110 lines, -91 lines 0 comments Download
M state/relationunit_test.go View 1 4 chunks +11 lines, -12 lines 0 comments Download
M state/state.go View 1 2 chunks +56 lines, -13 lines 0 comments Download
M state/state_test.go View 1 2 chunks +16 lines, -14 lines 0 comments Download
M worker/firewaller/firewaller_test.go View 1 3 chunks +3 lines, -3 lines 0 comments Download
M worker/uniter/filter_test.go View 1 6 chunks +20 lines, -15 lines 0 comments Download
M worker/uniter/uniter_test.go View 1 5 chunks +28 lines, -22 lines 0 comments Download

Messages

Total messages: 4
fwereade
Please take a look.
11 years, 3 months ago (2013-01-25 16:28:47 UTC) #1
TheMue
LGTM
11 years, 3 months ago (2013-01-25 16:39:06 UTC) #2
rog
LGTM with one fix needed and one trivial remark. https://codereview.appspot.com/7205058/diff/1/environs/jujutest/livetests.go File environs/jujutest/livetests.go (right): https://codereview.appspot.com/7205058/diff/1/environs/jujutest/livetests.go#newcode366 environs/jujutest/livetests.go:366: ...
11 years, 3 months ago (2013-01-25 17:07:54 UTC) #3
fwereade
11 years, 3 months ago (2013-01-25 21:48:47 UTC) #4
*** Submitted:

state: peer relation lifecycle

Services that define peer relations now always have peer relations -- they
can no longer be created or destroyed directly (well, they could be created;
but real ones will already exist, and fake relations will be removed in a
followup).

R=TheMue, rog
CC=
https://codereview.appspot.com/7205058

https://codereview.appspot.com/7205058/diff/1/environs/jujutest/livetests.go
File environs/jujutest/livetests.go (right):

https://codereview.appspot.com/7205058/diff/1/environs/jujutest/livetests.go#...
environs/jujutest/livetests.go:366: svc, err := conn.State.AddService("", sch)
On 2013/01/25 17:07:54, rog wrote:
> how can this have passed the tests? "" isn't a valid service name.

Done.
Sign in to reply to this message.

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