summaryrefslogtreecommitdiffstats
path: root/result_collection_api/opnfv_testapi
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-06-24 06:44:16 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-24 06:44:16 +0000
commit18b809c51697703261c3cc5edb63f369c97e6f82 (patch)
treeacba5f15d83e0c02eed343bc82de2d7bae91309e /result_collection_api/opnfv_testapi
parentee8d376cf6366d5b0f6fbbb63c6d07731a672eb7 (diff)
parent428aa649cfaa909733acabd0c8f1ba260022c99f (diff)
Merge "bugfix: correct the post response body of PODS in testAPI"
Diffstat (limited to 'result_collection_api/opnfv_testapi')
-rw-r--r--result_collection_api/opnfv_testapi/resources/models.py1
-rw-r--r--result_collection_api/opnfv_testapi/resources/pod_handlers.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/result_collection_api/opnfv_testapi/resources/models.py b/result_collection_api/opnfv_testapi/resources/models.py
index 290a7f3..e79308b 100644
--- a/result_collection_api/opnfv_testapi/resources/models.py
+++ b/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/result_collection_api/opnfv_testapi/resources/pod_handlers.py b/result_collection_api/opnfv_testapi/resources/pod_handlers.py
index df4112f..8f44439 100644
--- a/result_collection_api/opnfv_testapi/resources/pod_handlers.py
+++ b/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