From f707050421fffb3e6868cb66736aa8be88ab820b Mon Sep 17 00:00:00 2001 From: Shankar Narayanan Date: Fri, 3 May 2019 23:19:11 -0400 Subject: 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 --- conductor/conductor/api/controllers/v1/plans.py | 1 + conductor/conductor/tests/unit/api/controller/v1/plans.json | 1 + 2 files changed, 2 insertions(+) (limited to 'conductor') 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 -- cgit 1.2.3-korg