deckhand/deckhand/tests/unit
Felipe Monteiro d02e1bcf53 [feature] Endpoint for listing revision validations with details
This patch set adds a new endpoint to the Validations API which allows
for listing all validations for a given revision with details.
The response body for GET /api/v1.0/{revision_id}/validations/detail
looks like:

  ---
  count: 1
  next: null
  prev: null
  results:
    - name: promenade-site-validation
      url: https://deckhand/api/v1.0/revisions/4/validations/promenade-site-validation/entries/0
      status: failure
      createdAt: 2017-07-16T02:03Z
      expiresAfter: null
      expiresAt: null
      errors:
        - documents:
            - schema: promenade/Node/v1
              name: node-document-name
            - schema: promenade/Masters/v1
              name: kubernetes-masters
          message: Node has master role, but not included in cluster masters list.

Note that the Validations API in general is currently missing fields
like url (as well as next and prev references) which will be included
in a follow up.

This will enable Shipyard to avoid performing a quadratic number
of API look ups when querying Deckhand's Validations API: [0].

The policy enforced for this endpoint is deckhand:list_validations.

APIImpact
DocImpact

[0] 06b5e82ea8/shipyard_airflow/control/configdocs/deckhand_client.py (L265)

Change-Id: I827e5f47bffb23fa16ee5c8a705058034633baed
2018-04-29 01:37:38 +00:00
..
common Document replacement: Update Document unique constraint 2018-03-28 17:08:03 -04:00
control [feature] Endpoint for listing revision validations with details 2018-04-29 01:37:38 +00:00
db Document replacement: Update Document unique constraint 2018-03-28 17:08:03 -04:00
engine [fix] Handles quotes in JSON path for substitution 2018-04-27 01:38:56 +00:00
resources Fix: Document should not layer with parent if no layering actions 2018-03-15 12:27:31 -04: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 [396582] Add alembic support to Deckhand 2018-04-06 23:30:16 -04:00
fake_policy.py DECKHAND-66: Document substitution implementation 2017-10-13 15:16:27 -04:00
fixtures.py Correct recent copyright change 2017-12-06 16:56:59 -04:00
test_policy.py [TrivialFix] Fix incorrect copyright 2017-12-05 21:16:48 +00:00