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

Issue 6527047: mstate: add tests for ops w.r.t. life cycle

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

Description

mstate: add tests for ops w.r.t. life cycle Also some related bug fixes, and add LoggingSuite to MgoSuite (to be removed when mstate is renamed and we can use "juju/testing".ConnSuite) There are still bugs - deadOnAbort is used inappropriately in places. To be fixed in subsequent branches. https://code.launchpad.net/~rogpeppe/juju-core/069-mstate-not-dead/+merge/124948 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : mstate: add tests for ops w.r.t. life cycle #

Total comments: 29

Patch Set 3 : mstate: add tests for ops w.r.t. life cycle #

Patch Set 4 : mstate: add tests for ops w.r.t. life cycle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -107 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M mstate/assign_test.go View 1 2 3 chunks +74 lines, -4 lines 0 comments Download
M mstate/life.go View 2 chunks +6 lines, -2 lines 0 comments Download
M mstate/life_test.go View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M mstate/machine.go View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M mstate/machine_test.go View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M mstate/relation_test.go View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M mstate/service.go View 1 2 6 chunks +54 lines, -47 lines 0 comments Download
M mstate/service_test.go View 1 2 5 chunks +77 lines, -17 lines 0 comments Download
M mstate/state.go View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M mstate/tools_test.go View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M mstate/unit.go View 1 2 4 chunks +12 lines, -26 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
11 years, 7 months ago (2012-09-18 15:56:06 UTC) #1
niemeyer
https://codereview.appspot.com/6527047/diff/2001/mstate/assign_test.go File mstate/assign_test.go (right): https://codereview.appspot.com/6527047/diff/2001/mstate/assign_test.go#newcode159 mstate/assign_test.go:159: return unit.AssignToMachine(machine) This is TestAssignSubordinatesToMachine. Feels like these checks ...
11 years, 7 months ago (2012-09-18 17:02:01 UTC) #2
rog
Please take a look. https://codereview.appspot.com/6527047/diff/2001/mstate/assign_test.go File mstate/assign_test.go (right): https://codereview.appspot.com/6527047/diff/2001/mstate/assign_test.go#newcode159 mstate/assign_test.go:159: return unit.AssignToMachine(machine) On 2012/09/18 17:02:01, ...
11 years, 7 months ago (2012-09-18 18:42:22 UTC) #3
niemeyer
LGTM!
11 years, 7 months ago (2012-09-18 18:46:54 UTC) #4
rog
11 years, 7 months ago (2012-09-18 18:47:59 UTC) #5
*** Submitted:

mstate: add tests for ops w.r.t. life cycle

Also some related bug fixes, and add LoggingSuite to MgoSuite
(to be removed when mstate is renamed and we can use "juju/testing".ConnSuite)

There are still bugs - deadOnAbort is used inappropriately in places.
To be fixed in subsequent branches.

R=niemeyer
CC=
https://codereview.appspot.com/6527047
Sign in to reply to this message.

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