From: Shankar Narayanan Date: Sat, 4 May 2019 03:19:11 +0000 (-0400) Subject: Add num_solution to the api decorators X-Git-Tag: 1.3.0^0 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F52%2F86952%2F2;p=optf%2Fhas.git Add num_solution to the api decorators Change-Id: Ie63c36274d99e01975b12a12ba648392a51a8d29 Signed-off-by: Shankar Narayanan Issue-ID: OPTFRA-496 Add num_solution to the api decorator Change-Id: Ie63c36274d99e01975b12a12ba648392a51a8d29 Signed-off-by: Shankar Narayanan Issue-ID: OPTFRA-496 --- diff --git a/conductor/conductor/api/controllers/v1/plans.py b/conductor/conductor/api/controllers/v1/plans.py index 411686b..8be24d8 100644 --- a/conductor/conductor/api/controllers/v1/plans.py +++ b/conductor/conductor/api/controllers/v1/plans.py @@ -61,6 +61,7 @@ CREATE_SCHEMA = ( (decorators.optional('id'), types.string), (decorators.optional('limit'), types.integer), (decorators.optional('name'), types.string), + (decorators.optional('num_solution'), types.string), ('template', string_or_dict), (decorators.optional('template_url'), types.string), (decorators.optional('timeout'), types.integer), diff --git a/conductor/conductor/tests/unit/api/controller/v1/plans.json b/conductor/conductor/tests/unit/api/controller/v1/plans.json index 52feaa3..406d677 100644 --- a/conductor/conductor/tests/unit/api/controller/v1/plans.json +++ b/conductor/conductor/tests/unit/api/controller/v1/plans.json @@ -2,5 +2,6 @@ "name": "demo3", "template": {"key": "value"}, "timeout": 5, + "num_solution": "2", "limit": 3 } \ No newline at end of file