bugfix: correct the post response body of PODS in testAPI 23/15923/1
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Tue, 21 Jun 2016 12:46:26 +0000 (20:46 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Tue, 21 Jun 2016 12:46:26 +0000 (20:46 +0800)
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>
utils/test/result_collection_api/opnfv_testapi/resources/models.py
utils/test/result_collection_api/opnfv_testapi/resources/pod_handlers.py

index 290a7f3..e79308b 100644 (file)
@@ -16,6 +16,7 @@
 from opnfv_testapi.tornado_swagger import swagger\r
 \r
 \r
 from opnfv_testapi.tornado_swagger import swagger\r
 \r
 \r
+@swagger.model()\r
 class CreateResponse(object):\r
     def __init__(self, href=''):\r
         self.href = href\r
 class CreateResponse(object):\r
     def __init__(self, href=''):\r
         self.href = href\r
index df4112f..8f44439 100644 (file)
@@ -36,7 +36,7 @@ class PodCLHandler(GenericPodHandler):
             @param body: pod to be created
             @type body: L{PodCreateRequest}
             @in body: body
             @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
             @return 200: pod is created.
             @raise 403: pod already exists
             @raise 400: body or name not provided