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

Issue 9175043: state: testable transactions

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

Description

state: testable transactions Includes sample tests; actually testing everything properly will be a much bigger task... https://code.launchpad.net/~fwereade/juju-core/state-testable-transactions/+merge/162369 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : state: testable transactions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -94 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/plugin_test.go View 1 4 chunks +46 lines, -20 lines 0 comments Download
M state/annotator.go View 1 1 chunk +1 line, -1 line 0 comments Download
M state/constraints.go View 1 1 chunk +1 line, -1 line 0 comments Download
M state/export_test.go View 1 1 chunk +32 lines, -0 lines 0 comments Download
M state/machine.go View 1 7 chunks +7 lines, -7 lines 0 comments Download
M state/machine_test.go View 1 2 chunks +47 lines, -0 lines 0 comments Download
M state/open.go View 1 2 chunks +3 lines, -1 line 0 comments Download
M state/relation.go View 1 1 chunk +1 line, -1 line 0 comments Download
M state/relationunit.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M state/service.go View 1 5 chunks +5 lines, -5 lines 0 comments Download
M state/settings.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M state/state.go View 1 5 chunks +56 lines, -25 lines 0 comments Download
M state/unit.go View 1 16 chunks +19 lines, -19 lines 0 comments Download
M state/unit_test.go View 1 1 chunk +22 lines, -8 lines 0 comments Download
M state/user.go View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9
fwereade
Please take a look.
11 years ago (2013-05-03 14:57:58 UTC) #1
dimitern
Excellent, LGTM. This really changes how state tests can be written! https://codereview.appspot.com/9175043/diff/1/state/machine_test.go File state/machine_test.go (right): ...
11 years ago (2013-05-03 15:06:29 UTC) #2
jameinel
I really like that this makes it possible to inject stuff into the system, so ...
11 years ago (2013-05-07 16:10:01 UTC) #3
thumper
https://codereview.appspot.com/9175043/diff/1/state/state.go File state/state.go (right): https://codereview.appspot.com/9175043/diff/1/state/state.go#newcode144 state/state.go:144: func (st *State) runTxn(ops []txn.Op) error { I have ...
10 years, 12 months ago (2013-05-09 16:13:58 UTC) #4
fwereade
On 2013/05/07 16:10:01, jameinel wrote: > I really like that this makes it possible to ...
10 years, 11 months ago (2013-05-15 09:17:39 UTC) #5
fwereade
https://codereview.appspot.com/9175043/diff/1/state/machine_test.go File state/machine_test.go (right): https://codereview.appspot.com/9175043/diff/1/state/machine_test.go#newcode82 state/machine_test.go:82: func (s *MachineSuite) TestDestroyCancel(c *C) { On 2013/05/03 15:06:29, ...
10 years, 11 months ago (2013-05-15 09:29:22 UTC) #6
fwereade
Please take a look.
10 years, 10 months ago (2013-06-13 14:21:21 UTC) #7
fwereade
On 2013/06/13 14:21:21, fwereade wrote: > Please take a look. This roughly incorporates some of ...
10 years, 10 months ago (2013-06-13 14:26:03 UTC) #8
jameinel
10 years, 10 months ago (2013-06-14 07:01:58 UTC) #9
I like the more explicit Before and After stuff. I think most of this is still
just mechanical to switch to runTransaction.
LGTM
Sign in to reply to this message.

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