deckhand/deckhand/tests/unit/control
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
..
__init__.py Initial engine framework 2017-07-17 20:46:49 +01:00
base.py Add no oauth middleware to bypass keystone authentication 2018-05-08 03:46:52 +01:00
test_api_initialization.py fix: Address small issues with revision rollback controller 2018-10-18 09:45:16 -04:00
test_base_controller.py DECKHAND-80: Validations API Implementation 2017-10-21 23:09:16 -04:00
test_buckets_controller.py Add validation for empty documents inside multi-document payload 2018-03-31 22:36:55 -04:00
test_errors.py refactor: Use yaml.add_representer to reduce complexity 2018-07-10 19:23:52 +01:00
test_health_controller.py Unit tests for health/versions controller 2017-11-11 04:07:28 -05:00
test_middleware.py Make Deckhand validation exceptions adhere to UCP standard 2018-04-26 18:51:08 +00:00
test_rendered_documents_controller.py Make Deckhand validation exceptions adhere to UCP standard 2018-04-26 18:51:08 +00:00
test_revision_documents_controller.py Simplify schema validation 2018-07-03 02:07:33 +00:00
test_revision_tags_controller.py Allow same tag to be created for multiple revisions 2018-01-18 16:15:37 -04:00
test_revisions_controller.py Delete secret references from Barbican when deleting all revisions 2018-07-22 15:53:31 +00:00
test_revisions_deepdiff_controller.py Adding api for revisions deep diffing 2018-09-17 17:01:34 +05:30
test_revisions_diff_controller.py Deckhand Negative RBAC test scenarios 2017-10-31 17:37:39 +00:00
test_revisions_rollback_controller.py fix: Address small issues with revision rollback controller 2018-10-18 09:45:16 -04:00
test_validations_controller.py integration tests: Add Barbican validation/assertions 2018-07-22 16:32:57 +00:00
test_versions_controller.py Unit tests for health/versions controller 2017-11-11 04:07:28 -05:00