deckhand/deckhand/tests/unit
Felipe Monteiro b80df59d11 fix: Address small issues with revision rollback controller
1. There is no exception called `InvalidRollback` in Deckhand (it
was removed a while back). Instead, the only exception that
db_api.revision_rollback raises is RevisionNotFound from
the revision_get call internally.

So catch that instead from the controller.

2. The default value of parameters is `str` so when revision_id
of '0' is passed to the db module for processing, it skips over
the check for `if revision_id == 0` as revision_id is a str,
not int. So this leverages builtin int converter logic in
falcon [0] but requires uplifting the version of falcon to
at least 1.3.0 to make use of it [1].

[0] https://falcon.readthedocs.io/en/stable/api/routing.html#field-converters
[1] https://falcon.readthedocs.io/en/1.3.0/api/routing.html#field-converters

Change-Id: I068cd9e9b6818a5d51501f2718ee2d40d556c094
2018-10-18 09:45:16 -04:00
..
barbican Implement Barbican cache for quick secret payload/ref data 2018-08-22 16:16:26 +01:00
common substitution: Recursive pattern replacement 2018-09-12 09:24:46 -06:00
control fix: Address small issues with revision rollback controller 2018-10-18 09:45:16 -04:00
db Adding api for revisions deep diffing 2018-09-17 17:01:34 +05:30
engine optimization: Skip post-validation for rendered document cache hit 2018-10-02 18:58:07 -05:00
resources Simplify schema validation 2018-07-03 02:07:33 +00:00
views Remove dead validation policy code. 2018-01-07 21:59:23 -04:00
__init__.py Initial engine framework 2017-07-17 20:46:49 +01:00
base.py Implement rendered documents caching 2018-07-28 20:51:25 +00:00
fake_policy.py DECKHAND-66: Document substitution implementation 2017-10-13 15:16:27 -04:00
fixtures.py trivial: Fix error message for non-matching policy checks 2018-09-16 13:31:01 -06:00
test_policy.py [TrivialFix] Fix incorrect copyright 2017-12-05 21:16:48 +00:00