diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-06-21 20:46:26 +0800 |
---|---|---|
committer | SerenaFeng <feng.xiaowei@zte.com.cn> | 2016-06-21 20:46:26 +0800 |
commit | 24231ece0a4c73c36b61fb26abe69b2c407d4cf7 (patch) | |
tree | ce205257c1ee006619b13aef9dd5d79e70092bbd | |
parent | db0085ebc1b1741034b73533d9babeab13e40e14 (diff) |
bugfix: correct the post response body of PODS in testAPI
mark CreateResponse as a swagger.model
change response class of post pods to L{CreateResponse}
JIRA: FUNCTEST-326
Change-Id: I031350bb434e26e33d55c92ace548a2ae1c82f3e
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
-rw-r--r-- | utils/test/result_collection_api/opnfv_testapi/resources/models.py | 1 | ||||
-rw-r--r-- | utils/test/result_collection_api/opnfv_testapi/resources/pod_handlers.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/resources/models.py b/utils/test/result_collection_api/opnfv_testapi/resources/models.py index 290a7f39d..e79308b53 100644 --- a/utils/test/result_collection_api/opnfv_testapi/resources/models.py +++ b/utils/test/result_collection_api/opnfv_testapi/resources/models.py @@ -16,6 +16,7 @@ from opnfv_testapi.tornado_swagger import swagger
+@swagger.model()
class CreateResponse(object):
def __init__(self, href=''):
self.href = href
diff --git a/utils/test/result_collection_api/opnfv_testapi/resources/pod_handlers.py b/utils/test/result_collection_api/opnfv_testapi/resources/pod_handlers.py index df4112f1b..8f44439e7 100644 --- a/utils/test/result_collection_api/opnfv_testapi/resources/pod_handlers.py +++ b/utils/test/result_collection_api/opnfv_testapi/resources/pod_handlers.py @@ -36,7 +36,7 @@ class PodCLHandler(GenericPodHandler): @param body: pod to be created @type body: L{PodCreateRequest} @in body: body - @rtype: L{Pod} + @rtype: L{CreateResponse} @return 200: pod is created. @raise 403: pod already exists @raise 400: body or name not provided |