summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/update/changes.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-07 16:09:19 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-06-08 10:45:56 +0800
commit559102692edcf56b1769d9cee7b5ff1e7332894e (patch)
tree51102ce5c68c507455a64c2bd300905bd91c6de3 /utils/test/result_collection_api/update/changes.py
parent5ac39a0e6c542ac2857d4d877c0df02598cf9b4f (diff)
add mongodb update script in testAPI
add file update.py JIRA: FUNCTEST-298 Change-Id: I419e9b72464ac04562f5550409561d269d9f0d36 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/update/changes.py')
-rw-r--r--utils/test/result_collection_api/update/changes.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/update/changes.py b/utils/test/result_collection_api/update/changes.py
new file mode 100644
index 000000000..42ab67b22
--- /dev/null
+++ b/utils/test/result_collection_api/update/changes.py
@@ -0,0 +1,25 @@
+##############################################################################
+# Copyright (c) 2016 ZTE Corporation
+# feng.xiaowei@zte.com.cn
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+collections_old2New = {
+ 'pod': 'pods',
+ 'test_projects': 'projects',
+ 'test_testcases': 'testcases',
+ 'test_results': 'results'
+}
+
+fields_old2New = {
+ 'test_results': [({}, {'creation_date': 'start_date'})]
+}
+
+docs_old2New = {
+ 'test_results': [
+ ({'criteria': 'failed'}, {'criteria': 'FAILED'}),
+ ({'criteria': 'passed'}, {'criteria': 'PASS'})
+ ]
+}