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

Issue 77270046: state: Add networks doc for services

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by gz
Modified:
10 years, 1 month ago
Reviewers:
dimitern, mp+211565, fwereade
Visibility:
Public.

Description

state: Add networks doc for services Adds a new document to state for describing which networks units in a service should be associated with, and which networks it should not be associated with. I want some unit tests just for the networks file I think, what should they look like? Most state testing is at a higher level so I was struggling to find good examples. https://code.launchpad.net/~gz/juju-core/networks_state_doc/+merge/211565 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 13

Patch Set 2 : state: Add networks doc for services #

Patch Set 3 : state: Add networks doc for services #

Total comments: 20

Patch Set 4 : state: Add networks doc for services #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -0 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A state/networks.go View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
M state/open.go View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M state/service.go View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M state/service_test.go View 1 chunk +9 lines, -0 lines 0 comments Download
M state/state.go View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11
gz
Please take a look.
10 years, 1 month ago (2014-03-18 15:56:44 UTC) #1
fwereade
looks solid to me, modulo a spot more testing (eg handling notFound from a pre-networks ...
10 years, 1 month ago (2014-03-18 16:02:58 UTC) #2
gz
Please take a look. https://codereview.appspot.com/77270046/diff/1/state/networks.go File state/networks.go (right): https://codereview.appspot.com/77270046/diff/1/state/networks.go#newcode15 state/networks.go:15: // networksDoc represents the networks ...
10 years, 1 month ago (2014-03-18 17:48:59 UTC) #3
fwereade
WRT testing, the conn_test.go file has its own ConnSuite that gives (or at least allows) ...
10 years, 1 month ago (2014-03-19 08:59:30 UTC) #4
gz
Please take a look.
10 years, 1 month ago (2014-03-21 12:14:02 UTC) #5
dimitern
Looks almost ready, just a few more things. https://codereview.appspot.com/77270046/diff/40001/state/networks.go File state/networks.go (right): https://codereview.appspot.com/77270046/diff/40001/state/networks.go#newcode13 state/networks.go:13: // ...
10 years, 1 month ago (2014-03-21 14:21:56 UTC) #6
gz
Responses to some queries. https://codereview.appspot.com/77270046/diff/40001/state/networks.go File state/networks.go (right): https://codereview.appspot.com/77270046/diff/40001/state/networks.go#newcode13 state/networks.go:13: // serviceNetworksDoc represents the network ...
10 years, 1 month ago (2014-03-21 15:46:00 UTC) #7
dimitern
https://codereview.appspot.com/77270046/diff/40001/state/open.go File state/open.go (right): https://codereview.appspot.com/77270046/diff/40001/state/open.go#newcode157 state/open.go:157: createServiceNetworksOp(st, environGlobalKey, []string{}, []string{}), On 2014/03/21 15:46:00, gz wrote: ...
10 years, 1 month ago (2014-03-21 16:11:31 UTC) #8
gz
Please take a look. https://codereview.appspot.com/77270046/diff/40001/state/networks.go File state/networks.go (right): https://codereview.appspot.com/77270046/diff/40001/state/networks.go#newcode13 state/networks.go:13: // serviceNetworksDoc represents the network ...
10 years, 1 month ago (2014-03-21 16:31:05 UTC) #9
dimitern
LGTM, thanks. I'd suggest a live test where a 1.16 environment gets upgraded to 1.18 ...
10 years, 1 month ago (2014-03-22 12:56:08 UTC) #10
fwereade
10 years, 1 month ago (2014-03-24 09:04:23 UTC) #11
Please add unit tests for the no-network-doc behaviour, even if you do run a
live test and it works. I supplied pointers earlier in this chain, but please
come and talk to me if they're insufficient.
Sign in to reply to this message.

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