deckhand/deckhand/control
Felipe Monteiro 8aec0390f8 DECKHAND-80: Validations API Implementation
The Validations API has been introduced to Deckhand, allowing users
to register new validation results in Deckhand, as well as query
the API for validation results for a revision. The validation results
include a list of errors that occurred during document validation.

All functional tests related to the API are now passing.

The following endpoints have been implemented:

   * /api/v1.0/revisions/{revision_id}/validations
   * /api/v1.0/revisions/{revision_id}/validations/{validation_name}
   * /api/v1.0/revisions/{revision_id}/validations/{validation_name}/entries
   * /api/v1.0/revisions/{revision_id}/validations/{validation_name}/entries/{entry_id}

Some back-end refactoring was needed to implement this API. In
particular:

  - Added a new Validation sqlalchemy DB model
  - Introduced DataSchema handling to the engine.document_validation
    module so that registered schema validations can be used
  - Changed the way the result of the 'deckhand-schema-validation' internal
    validation is generated: it is now the amalgamation of all the
    internal and registered schema validations executed
  - Introduced rawquery generation so that raw SQL queries can be used to
    get results from DB

Fixed following bug:

  - UniqueConstraint is now used to correctly generate unique constraints
    for sqlalchemy models that are supposed to be combinations of columns

Change-Id: I53c79a6544f44ef8beab2600ddc8a3ea91ada903
2017-10-21 23:09:16 -04:00
..
views DECKHAND-80: Validations API Implementation 2017-10-21 23:09:16 -04:00
__init__.py DECKHAND-2: Design core Deckhand API framework 2017-06-27 19:26:51 +01:00
api.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
base.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
buckets.py DECKHAND-80: Validations API Implementation 2017-10-21 23:09:16 -04:00
common.py Support filtering revision (documents) by any legal filter 2017-10-06 16:48:45 -04:00
middleware.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
revision_diffing.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
revision_documents.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
revision_tags.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
revisions.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
rollback.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
validations.py DECKHAND-80: Validations API Implementation 2017-10-21 23:09:16 -04:00
versions.py Clean up Deckhand 405/404 error handling 2017-09-20 14:27:47 -04:00