lp:~hazmat/txzookeeper/session-event-handling
- Get this branch:
- bzr branch lp:~hazmat/txzookeeper/session-event-handling
Branch merges
- Gustavo Niemeyer: Approve
- Jim Baker: Pending requested
-
Diff: 1728 lines (+896/-206)12 files modifiedtxzookeeper/client.py (+285/-110)
txzookeeper/queue.py (+5/-5)
txzookeeper/tests/__init__.py (+2/-2)
txzookeeper/tests/common.py (+216/-0)
txzookeeper/tests/mocker.py (+1/-0)
txzookeeper/tests/test_client.py (+131/-78)
txzookeeper/tests/test_node.py (+1/-1)
txzookeeper/tests/test_queue.py (+5/-5)
txzookeeper/tests/test_security.py (+2/-2)
txzookeeper/tests/test_session.py (+245/-0)
txzookeeper/tests/test_utils.py (+1/-1)
txzookeeper/tests/utils.py (+2/-2)
Related bugs
Bug #791382: Session events are not being handled properly | Critical | Fix Released |
Related blueprints
Branch information
Recent revisions
- 54. By Kapil Thangavelu
-
address jim's review comments, grammar fixes, additional param valiadation tests
- 53. By Kapil Thangavelu
-
add a disconnected client test for failures, dead connections can exhibit either notconnected or connection exceptions adjust tests to reflect.
- 50. By Kapil Thangavelu
-
client usage while disconnected, will return a failed deferred instead of raising an exception
- 49. By Kapil Thangavelu
-
replace some mock'd error behavior tests with real equivalents where possible, yank the one that wasn't (sync w/ error)
- 46. By Kapil Thangavelu
-
- merge swap-sync-
errors- to-failures
- allow for connection error handler to return a deferred, whose result will be chained
to the api deferred. - 45. By Kapil Thangavelu
-
- Allow for the ZK cluster to be reset and destroyed.
- Session tests using a ZK cluster as a test layer/test resource, cluster state
is reset between tests.
- Zookeeper Client session test for server rotation across multi-node cluster.
- ClientEvent repr now includes pretty name for connection state.
- Client server rotation and session/watch migration tests.
- Session event handling, sent to user defined callback, else ignored by default.
- Connection loss handling, sent to user defined callback, else raised at the
API call point. The callback result if any is returned as the error to be
returned to the API.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:txzookeeper