~ubuntuone-control-tower/u1db/trunk

« back to all changes in this revision

Viewing changes to u1db/remote/http_errors.py

  • Committer: Tarmac
  • Author(s): Eric Casteleijn, Samuele Pedroni (Canonical Services Ltd.)
  • Date: 2012-07-05 15:56:23 UTC
  • mfrom: (327.4.19 sync_integration_tests)
  • Revision ID: tarmac-20120705155623-s58zcpgng2083hjh
Added integration tests for the detection of a diverged source or target db during sync and made them pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    (errors.DocumentDoesNotExist.wire_description, 404),
30
30
    (errors.DocumentAlreadyDeleted.wire_description, 404),
31
31
    (errors.RevisionConflict.wire_description, 409),
 
32
    (errors.InvalidGeneration.wire_description, 409),
 
33
    (errors.InvalidTransactionId.wire_description, 409),
32
34
    (errors.Unavailable.wire_description, 503),
33
35
# without matching exception
34
36
    (errors.DOCUMENT_DELETED, 404)