summaryrefslogtreecommitdiffstats
path: root/result_collection_api/resources
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2015-10-14 10:50:49 +0200
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-10-14 09:43:12 +0000
commitace5bdeae17058ebeb04dbbb944f8cd5858ee43b (patch)
tree45654bd0f89246938528d9ff27915b038bc93274 /result_collection_api/resources
parent5245db0a6cee1b138e9ce6786f191cae01b919ba (diff)
Do not check key in json file
to avoid warning due to . in key in Rally reports JIRA: RELENG-47 Change-Id: I204714311b9838ec09086950504046be7a29339d Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'result_collection_api/resources')
-rw-r--r--result_collection_api/resources/handlers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/result_collection_api/resources/handlers.py b/result_collection_api/resources/handlers.py
index f8b26d0..27204a5 100644
--- a/result_collection_api/resources/handlers.py
+++ b/result_collection_api/resources/handlers.py
@@ -624,7 +624,8 @@ class TestResultsHandler(GenericApiHandler):
test_result = TestResult.test_result_from_dict(self.json_args)
test_result.creation_date = datetime.now()
- future = self.db.test_results.insert(test_result.format())
+ future = self.db.test_results.insert(test_result.format(),
+ check_keys=False)
result = yield future
test_result._id = result