deckhand/deckhand/tests/unit/engine
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
..
__init__.py Initial engine framework 2017-07-17 20:46:49 +01:00
base.py Fix flake8 errors 2017-08-14 20:48:14 +01:00
test_document_layering_negative.py [feat] DECKHAND-13: Document layering (merge) logic 2017-08-15 21:50:09 +01:00
test_document_layering.py DECKHAND-80: Validations API Implementation 2017-10-21 23:09:16 -04:00
test_document_validation_negative.py DECKHAND-80: Validations API Implementation 2017-10-21 23:09:16 -04:00
test_document_validation.py DECKHAND-80: Validations API Implementation 2017-10-21 23:09:16 -04:00
test_secrets_manager.py DECKHAND-66: Document substitution implementation 2017-10-13 15:16:27 -04:00