summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api
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
commit09a30daffd6c56f5592a5ecdca88540b151ebce4 (patch)
tree967ba449a2f29bdc7fbc4f45d81575538e51ea5f /utils/test/result_collection_api
parent420c497db441ac647e55befb002d5963ce6adf0e (diff)
parent24231ece0a4c73c36b61fb26abe69b2c407d4cf7 (diff)
Merge "bugfix: correct the post response body of PODS in testAPI"
Diffstat (limited to 'utils/test/result_collection_api')
-rw-r--r--utils/test/result_collection_api/opnfv_testapi/resources/models.py1
-rw-r--r--utils/test/result_collection_api/opnfv_testapi/resources/pod_handlers.py2
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