deckhand/deckhand
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
..
barbican Document replacement: Update Document unique constraint 2018-03-28 17:08:03 -04:00
client Fix Revision Resource print out in Deckhand client 2018-03-13 22:31:38 -04:00
common [fix] Handles quotes in JSON path for substitution 2018-04-27 01:38:56 +00:00
conf [fix] Pass secret URI instead of UUID to barbican get_secret 2018-04-11 17:33:58 -04:00
control [feature] Endpoint for listing revision validations with details 2018-04-29 01:37:38 +00:00
db [feature] Endpoint for listing revision validations with details 2018-04-29 01:37:38 +00:00
engine [test] Cover all secret Deckhand types in integration tests 2018-04-27 14:25:29 -04:00
policies Rename Deckhand bucket endpoint to buckets for consistency 2017-10-27 19:21:03 +01:00
tests [feature] Endpoint for listing revision validations with details 2018-04-29 01:37:38 +00:00
__init__.py Oslo config integration (#1) 2017-06-26 16:57:50 -07:00
cmd.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
context.py Integrate Deckhand with keystone auth 2017-10-16 19:54:46 +01:00
errors.py Make Deckhand validation exceptions adhere to UCP standard 2018-04-26 18:51:08 +00:00
factories.py Document replacement: Update Document unique constraint 2018-03-28 17:08:03 -04:00
policy.py DECKHAND-66: Document substitution implementation 2017-10-13 15:16:27 -04:00
service.py [feature] Endpoint for listing revision validations with details 2018-04-29 01:37:38 +00:00
types.py [fix] Pass secret URI instead of UUID to barbican get_secret 2018-04-11 17:33:58 -04:00