From ebd48fb22672ba26b05ee638a4aac7cd0b456f8d Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Wed, 27 Jul 2016 12:38:13 +0800 Subject: update testapi server in testresults.opnfv.org support body of post results carries no trust_indicator add unittest of no trust_indicator in post results body specify changes in db JIRA: FUNCTEST-391 Change-Id: Ic61a5edbad1bca7689d618761bca94ef69dea80b Signed-off-by: SerenaFeng --- .../update/templates/changes_in_mongodb.py | 39 ++++++++++++---------- 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'utils/test/result_collection_api/update/templates') diff --git a/utils/test/result_collection_api/update/templates/changes_in_mongodb.py b/utils/test/result_collection_api/update/templates/changes_in_mongodb.py index b3e23803d..9744dd9fe 100644 --- a/utils/test/result_collection_api/update/templates/changes_in_mongodb.py +++ b/utils/test/result_collection_api/update/templates/changes_in_mongodb.py @@ -24,24 +24,27 @@ docs_old2New = { # ({'criteria': 'failed'}, {'criteria': 'FAILED'}), # ({'criteria': 'passed'}, {'criteria': 'PASS'}) # ] - 'testcases': [ - ({'name': 'vPing'}, {'name': 'vping_ssh'}), - ({'name': 'Tempest'}, {'name': 'tempest_smoke_serial'}), - ({'name': 'Rally'}, {'name': 'rally_sanity'}), - ({'name': 'ODL'}, {'name': 'odl'}), - ({'name': 'vIMS'}, {'name': 'vims'}), - ({'name': 'ONOS'}, {'name': 'onos'}), - ({'name': 'vPing_userdata'}, {'name': 'vping_userdata'}), - ({'name': 'ovno'}, {'name': 'ocl'}) - ], + # 'testcases': [ + # ({'name': 'vPing'}, {'name': 'vping_ssh'}), + # ({'name': 'Tempest'}, {'name': 'tempest_smoke_serial'}), + # ({'name': 'Rally'}, {'name': 'rally_sanity'}), + # ({'name': 'ODL'}, {'name': 'odl'}), + # ({'name': 'vIMS'}, {'name': 'vims'}), + # ({'name': 'ONOS'}, {'name': 'onos'}), + # ({'name': 'vPing_userdata'}, {'name': 'vping_userdata'}), + # ({'name': 'ovno'}, {'name': 'ocl'}) + # ], + # 'results': [ + # ({'case_name': 'vPing'}, {'case_name': 'vping_ssh'}), + # ({'case_name': 'Tempest'}, {'case_name': 'tempest_smoke_serial'}), + # ({'case_name': 'Rally'}, {'case_name': 'rally_sanity'}), + # ({'case_name': 'ODL'}, {'case_name': 'odl'}), + # ({'case_name': 'vIMS'}, {'case_name': 'vims'}), + # ({'case_name': 'ONOS'}, {'case_name': 'onos'}), + # ({'case_name': 'vPing_userdata'}, {'case_name': 'vping_userdata'}), + # ({'case_name': 'ovno'}, {'case_name': 'ocl'}) + # ] 'results': [ - ({'case_name': 'vPing'}, {'case_name': 'vping_ssh'}), - ({'case_name': 'Tempest'}, {'case_name': 'tempest_smoke_serial'}), - ({'case_name': 'Rally'}, {'case_name': 'rally_sanity'}), - ({'case_name': 'ODL'}, {'case_name': 'odl'}), - ({'case_name': 'vIMS'}, {'case_name': 'vims'}), - ({'case_name': 'ONOS'}, {'case_name': 'onos'}), - ({'case_name': 'vPing_userdata'}, {'case_name': 'vping_userdata'}), - ({'case_name': 'ovno'}, {'case_name': 'ocl'}) + ({'trust_indicator': 0}, {'trust_indicator': {'current': 0, 'histories': []}}) ] } -- cgit 1.2.3-korg