summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-15 15:45:40 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-15 15:45:40 +0800
commit09d46e12cd5983bcde49bd77499e1175e5ed118a (patch)
tree1c3166ef118206d2f160ca3427ea4158136ac485 /utils/test/result_collection_api
parent3cb99403e8f71b50b863b403ac496c8508fdfa72 (diff)
delete creation_date of results in testAPI
check if it is results collection when assign creation_date JIRA: FUNCTEST-314 Change-Id: I8e70aa67a39560bdf337f6b0017d2aa8c7c48176 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api')
-rw-r--r--utils/test/result_collection_api/opnfv_testapi/resources/handlers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/resources/handlers.py b/utils/test/result_collection_api/opnfv_testapi/resources/handlers.py
index df920c48f..cc4a4c357 100644
--- a/utils/test/result_collection_api/opnfv_testapi/resources/handlers.py
+++ b/utils/test/result_collection_api/opnfv_testapi/resources/handlers.py
@@ -96,7 +96,8 @@ class GenericApiHandler(RequestHandler):
code, message = error(data)
raise HTTPError(code, message)
- data.creation_date = datetime.now()
+ if self.table != 'results':
+ data.creation_date = datetime.now()
_id = yield self._eval_db(self.table, 'insert', data.format())
if 'name' in self.json_args:
resource = data.name