fix(api): Update old endpoint to /validatedesign

- Updating old /validate endpoints to reference the new endpoint at /validatedesign.
- Update docs to reflect /validatedesign and fix error in description.

Change-Id: Ie1fa4e4584c81373fe193b2b2f83cd96ff571437
This commit is contained in:
Marshall Margenau 2017-11-30 15:49:03 -06:00
parent d383e772fd
commit ae86aeae24
4 changed files with 5 additions and 6 deletions

View File

@ -64,7 +64,6 @@ def create(enable_middleware=CONF.middleware):
('status', Status()), ('status', Status()),
('tests', Tests()), ('tests', Tests()),
('test/{release}', Test()), ('test/{release}', Test()),
('validate', Validate()),
('validatedesign', Validate()), ('validatedesign', Validate()),
) )

View File

@ -53,7 +53,7 @@ class ArmadaClient(object):
def post_validate(self, manifest=None): def post_validate(self, manifest=None):
endpoint = self._set_endpoint('1.0', 'validate') endpoint = self._set_endpoint('1.0', 'validatedesign')
# TODO(sh8121att) Look to update the UCP convention to # TODO(sh8121att) Look to update the UCP convention to
# allow a list of hrefs # allow a list of hrefs
req_body = {'href': manifest} req_body = {'href': manifest}

View File

@ -25,7 +25,7 @@ armada_policies = [
name=base.ARMADA % 'validate_manifest', name=base.ARMADA % 'validate_manifest',
check_str=base.RULE_ADMIN_REQUIRED, check_str=base.RULE_ADMIN_REQUIRED,
description='validate installed manifest', description='validate installed manifest',
operations=[{'path': '/api/v1.0/validate/', 'method': 'POST'}]), operations=[{'path': '/api/v1.0/validatedesign/', 'method': 'POST'}]),
policy.DocumentedRuleDefault( policy.DocumentedRuleDefault(
name=base.ARMADA % 'test_release', name=base.ARMADA % 'test_release',
check_str=base.RULE_ADMIN_REQUIRED, check_str=base.RULE_ADMIN_REQUIRED,

View File

@ -113,14 +113,14 @@ Unable to Authorize or Permission
Failed to perform action Failed to perform action
GET ``/validate`` POST ``/validatedesign``
----------------- -----------------
Summary Summary
+++++++ +++++++
Get tiller releases Validates Armada manifest
Request Request
@ -133,7 +133,7 @@ Responses
**200** **200**
^^^^^^^ ^^^^^^^
obtain all running releases obtain valid status true/false
**Example:** **Example:**