diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-06-08 06:44:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-08 06:44:54 +0000 |
commit | 8c7ab03d59920a7b4f28d927b3fb151290483fb3 (patch) | |
tree | d54b7671f2a8548fd7d7f50b3d6399913c2111b6 /utils/test/result_collection_api/update/changes.py | |
parent | e68825a39c0bfea596b7849dcab0f1d8730023a7 (diff) | |
parent | 559102692edcf56b1769d9cee7b5ff1e7332894e (diff) |
Merge "add mongodb update script in testAPI"
Diffstat (limited to 'utils/test/result_collection_api/update/changes.py')
-rw-r--r-- | utils/test/result_collection_api/update/changes.py | 25 |
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'}) + ] +} |