summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShankar Narayanan <snarayanan@research.att.com>2019-05-03 23:19:11 -0400
committerShankar Narayanan <snarayanan@research.att.com>2019-05-03 23:36:44 -0400
commitf707050421fffb3e6868cb66736aa8be88ab820b (patch)
treece25a16d0e65b6a43ee36985c6daaa2244c73f76
parent245355f325e937041096729d375409b8042a56a9 (diff)
Add num_solution to the api decorators1.3.0
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
-rw-r--r--conductor/conductor/api/controllers/v1/plans.py1
-rw-r--r--conductor/conductor/tests/unit/api/controller/v1/plans.json1
2 files changed, 2 insertions, 0 deletions
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