Merge lp://staging/~rogpeppe/juju-core/254-txn-tester into lp://staging/~juju/juju-core/trunk

Proposed by Roger Peppe
Status: Work in progress
Proposed branch: lp://staging/~rogpeppe/juju-core/254-txn-tester
Merge into: lp://staging/~juju/juju-core/trunk
Diff against target: 1262 lines (+852/-39)
18 files modified
state/annotator.go (+1/-1)
state/conn_test.go (+5/-0)
state/constraints.go (+1/-1)
state/life.go (+2/-2)
state/machine.go (+5/-5)
state/open.go (+4/-1)
state/relation.go (+1/-1)
state/relationunit.go (+2/-2)
state/service.go (+4/-4)
state/settings.go (+2/-2)
state/state.go (+5/-4)
state/txn_internal_test.go (+45/-0)
state/txn_test.go (+52/-0)
state/unit.go (+14/-14)
state/user.go (+2/-2)
testing/txntest/mockstate_test.go (+138/-0)
testing/txntest/txntest.go (+425/-0)
testing/txntest/txntest_test.go (+144/-0)
To merge this branch: bzr merge lp://staging/~rogpeppe/juju-core/254-txn-tester
Reviewer Review Type Date Requested Status
Juju Engineering Pending
Review via email: mp+155184@code.staging.launchpad.net

Description of the change

testing/txntest: transaction testing package

This is a WIP that allows testing of arbitrary concurrent
transaction-running operations, and also selective
exploration of possible sequences of actions.

https://codereview.appspot.com/8010043/

To post a comment you must log in.
1072. By Roger Peppe

state: make txn function work

Unmerged revisions

1072. By Roger Peppe

state: make txn function work

1071. By Roger Peppe

txntest: make args in to Params; add test actions

1070. By Roger Peppe

testing/txntest: add ParseAction; change hasRun to explore

1069. By Roger Peppe

txntest: further development; state: use txntest for one trivial op

1068. By Roger Peppe

state: add txn testing

1067. By Roger Peppe

txntest: make reset return DB

1066. By Roger Peppe

txntest: revert to functions, not Ops

1065. By Roger Peppe

gofmt

1064. By Roger Peppe

state: use st.runTxn throughout

1063. By Roger Peppe

state: initial transaction testing stuff

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches