Add num_solution to the api decorators 52/86952/2 1.3.0
authorShankar Narayanan <snarayanan@research.att.com>
Sat, 4 May 2019 03:19:11 +0000 (23:19 -0400)
committerShankar Narayanan <snarayanan@research.att.com>
Sat, 4 May 2019 03:36:44 +0000 (23:36 -0400)
Change-Id: Ie63c36274d99e01975b12a12ba648392a51a8d29
Signed-off-by: Shankar Narayanan <snarayanan@research.att.com>
Issue-ID: OPTFRA-496

Add num_solution to the api decorator

Change-Id: Ie63c36274d99e01975b12a12ba648392a51a8d29
Signed-off-by: Shankar Narayanan <snarayanan@research.att.com>
Issue-ID: OPTFRA-496

conductor/conductor/api/controllers/v1/plans.py
conductor/conductor/tests/unit/api/controller/v1/plans.json

index 411686b..8be24d8 100644 (file)
@@ -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),
index 52feaa3..406d677 100644 (file)
@@ -2,5 +2,6 @@
   "name": "demo3",
   "template": {"key": "value"},
   "timeout": 5,
+  "num_solution": "2",
   "limit": 3
 }
\ No newline at end of file