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

Issue 8154043: state: match subordinate relation series

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

Description

state: match subordinate relation series This errors on AddRelation, but not on InferEndpoints, because it's tricky to do it at that stage. This shouldn't have any serious impact. https://code.launchpad.net/~fwereade/juju-core/state-subordinate-series/+merge/156153 Requires: https://code.launchpad.net/~fwereade/juju-core/state-subordinate-constraints/+merge/156138 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : state: match subordinate relation series #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -7 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/charm_test.go View 1 2 chunks +90 lines, -0 lines 0 comments Download
M state/conn_test.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M state/export_test.go View 1 1 chunk +3 lines, -1 line 0 comments Download
M state/relation_test.go View 1 2 chunks +28 lines, -0 lines 0 comments Download
M state/service_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M state/state.go View 1 6 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 5
fwereade
Please take a look.
11 years, 1 month ago (2013-03-29 13:05:03 UTC) #1
dimitern
LGTM https://codereview.appspot.com/8154043/diff/1/state/state.go File state/state.go (right): https://codereview.appspot.com/8154043/diff/1/state/state.go#newcode689 state/state.go:689: // services's series must also match, because they'll ...
11 years, 1 month ago (2013-03-29 15:11:59 UTC) #2
fwereade
https://codereview.appspot.com/8154043/diff/1/state/state.go File state/state.go (right): https://codereview.appspot.com/8154043/diff/1/state/state.go#newcode689 state/state.go:689: // services's series must also match, because they'll be ...
11 years, 1 month ago (2013-03-30 05:09:51 UTC) #3
jameinel
LGTM https://codereview.appspot.com/8154043/diff/1/state/relation_test.go File state/relation_test.go (right): https://codereview.appspot.com/8154043/diff/1/state/relation_test.go#newcode159 state/relation_test.go:159: mysql, err := s.State.AddService("mysql", s.AddSeriesCharm(c, "mysql", "otherseries", 123)) ...
11 years, 1 month ago (2013-04-01 07:21:45 UTC) #4
fwereade
11 years, 1 month ago (2013-04-01 10:52:49 UTC) #5
*** Submitted:

state: match subordinate relation series

This errors on AddRelation, but not on InferEndpoints, because it's tricky
to do it at that stage. This shouldn't have any serious impact.

R=dimitern, jameinel
CC=
https://codereview.appspot.com/8154043

https://codereview.appspot.com/8154043/diff/1/state/relation_test.go
File state/relation_test.go (right):

https://codereview.appspot.com/8154043/diff/1/state/relation_test.go#newcode159
state/relation_test.go:159: mysql, err := s.State.AddService("mysql",
s.AddSeriesCharm(c, "mysql", "otherseries", 123))
On 2013/04/01 07:21:45, jameinel wrote:
> Is it worth adding a test of some sort of:
> 
> c.Assert(mysql.Series, Not(Equal), wordpress.Series)
> 
> I don't know exactly how to state it, but in case "otherseries" ends up
ignored,
> or something like that.

Hmm... I think that's better addressed with explicit tests for the test helpers.
Good thought, though, thank you.
Sign in to reply to this message.

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