summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api
AgeCommit message (Collapse)AuthorFilesLines
2016-06-21bugfix: correct the results post response body in testAPISerenaFeng1-1/+1
change response class from Result to CreateResponse JIRA: FUNCTEST: FUNCTEST-330 Change-Id: Ibc3ebdacaa7b85e4b4a53d459888440b47073d18 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-17bugfix: adapt mongorestore to work in mongodb 3.0 and aboveSerenaFeng1-1/+1
mongorestore --db db must be specified JIRA: FUNCTEST-322 Change-Id: Idfbc99f23735f8871f29bb0e5e0240d47a7877bb Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-16Align test names in BD and testcase.yaml declarationMorgan Richomme1-8/+30
JIRA: FUNCTEST-304 Change-Id: I642101d88716ac634e07b66136cfdcac0c482500 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-06-16add motor dependency in testAPISerenaFeng1-0/+1
add motor in requirement.txt JIRA: FUNCTEST-317 Change-Id: Ieb9c973b57d8e8426eb427a6a149e554764e0cc3 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-15support keys start with '$' or contain '.' in testAPISerenaFeng5-18/+100
set check_keys=False in insert and update db fix update and insert stub in fake_pymongo.py add unittest for check_keys in test_fake_pymongo.py JIRA: FUNCTEST-313 Change-Id: I4051ec4a1c70996c87167643f6ea19993f5b0811 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-15delete creation_date of results in testAPISerenaFeng1-1/+2
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>
2016-06-09solve access testresults.opnfv.org/swagger/spec.html fail issue in testAPISerenaFeng5-18/+26
add swagger configuration in config.ini add swagger.docs() process in server.py add swagger configuration parse in config.py add basePath() in settings.py change 'basePath' item assignment in views.py JIRA: FUNCTEST-305 Change-Id: I049991d4d53b78755ee971021ec0ad2458f5da60 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-08Merge "add update usage description in testAPI"Morgan Richomme2-3/+61
2016-06-08Merge "add update opnfv-testapi script in testAPI"Morgan Richomme1-0/+55
2016-06-08add update usage description in testAPISerenaFeng2-3/+61
add file update/README.md JIRA: FUNCTEST-300 Change-Id: I070f872d5d9c3de7eb52569a1ac86d9ec43bd0ea Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-08add update opnfv-testapi script in testAPISerenaFeng1-0/+55
add file update_api.py JIRA: FUNCTEST-299 Change-Id: Iea882a12bab2e3a92a31a3a8b59fcd57c488dffa Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-08add mongodb update script in testAPISerenaFeng3-1/+116
add file update.py JIRA: FUNCTEST-298 Change-Id: I419e9b72464ac04562f5550409561d269d9f0d36 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-07add mongodb backup and restore scripts in testAPISerenaFeng4-0/+135
add directory update add files backup.py restore.py utils.py JIRA: FUNCTEST-297 Change-Id: I6e8b6c4b87b6081e67bc3e1a7605c83d0232e3ca Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-06Merge "remove useless method get_dashboard_cases() in testAPI"Morgan Richomme1-16/+0
2016-06-06add unittest for 'last' query of results in testAPISerenaFeng3-17/+47
add 'last' related unittest in test_result.py implement sort()&limit() in fake_pymongo.py refactor 'sort' model in result_handlers.py JIRA: FUNCTEST-296 Change-Id: Ib5371f1df67f170e3ba26c6da27a651e34f2b0d6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-06remove useless method get_dashboard_cases() in testAPISerenaFeng1-16/+0
remove get_dashboard_cases() method in dashboard_utils.py JIRA: FUNCTEST-295 Change-Id: Id450f3d9c2b4870a0a9da42abd536a412ac25323 signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-06refactor int query parameter process in testAPISerenaFeng1-8/+9
add method GenericResultHandler.get_int() refactor GenericResultHandler.set_query() & ResultsCLHandler.get() JIRA: FUNCTEST-294 Change-Id: I44636983af7784a5b2863427abc0895e89cfa83c Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-04Merge "test APi evolution add filter to retrieve last results"Morgan Richomme3-3/+24
2016-06-04Merge "support 'GET /dashboard/v1/projects' REST api in testAPI"Morgan Richomme4-3/+52
2016-06-04test APi evolution add filter to retrieve last resultsSerenaFeng3-3/+24
add 'last' query parameter prcess in ResultsCLHandler.get() add 'sort' and 'last' parameters process in GenericApiHandler._list() add sort() and limit() fake in fake_pymongo.py JIRA: FUNCTEST-259 Change-Id: I96c1ff37325c65cf9c421f4277662dde28b1473d Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-04remove not used 'import copy'SerenaFeng1-5/+4
remove not used 'import copy' in test_result.py JIRA: FUNCTEST-293 Change-Id: I6c8db5674e6dd9770cd859c74d43bd5b9440544a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-04support 'GET /dashboard/v1/projects' REST api in testAPISerenaFeng4-3/+52
add get_dashboard_projects() in dashboard_utils.py add DashboardProjectHandler in dashboard_handlers.py add router mapping in url_mappings.py add file test_dashboard_project.py to do the unittest JIRA: FUNCTEST-292 Change-Id: I51ad8dd26abbd8d43c656c8b03ff302227255d11 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-03support GET /api/v1/results in testAPISerenaFeng1-2/+2
change require flag of project&case to False JIRA: FUNCTEST-291 Change-Id: Idc165cc4d5950cd7f7313a1e19f013933a5d4a9a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-03Merge "add copyright to files in testAPI"Morgan Richomme28-47/+234
2016-06-02add README.md to introduce the usage of tornado_swaggerSerenaFeng1-0/+273
add README.md file in tornado_swagger package JIRA: FUNCTEST-290 Change-Id: I0ba306f0e5dfb576b34959f054e1c9cc61079039 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-02Merge "change TestVersionbBase to TestVersionBase in testAPI"Morgan Richomme1-3/+3
2016-06-02add copyright to files in testAPISerenaFeng28-47/+234
add copyright head to new created files JIRA: FUNCTEST-289 Change-Id: Idbedcf6d63156570dfa4b85dd8125b3882251765 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-02remove unittest test_createSameResults in testAPISerenaFeng1-9/+0
remove unittest test_createSameResults in test_results.py JIRA: FUNCTEST-288 Change-Id: I5c1e8eb6c09a5ced1a6cdd380e9c37961136e6d2 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-02change TestVersionbBase to TestVersionBase in testAPISerenaFeng1-3/+3
delete extra 'b' in the clase name JIRA: FUNCTEST-287 Change-Id: I4189182ec93425e16d1b56b440f001f72a3c5f2a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-01change the usage of tornado_swagger packageSerenaFeng50-568/+17
changes: move tornado_swagger package out of tornado_swagger_ui remove tornado_swagger_ui modify files that import tornado_swagger originally: opnfv_testapi.tornado_swagger_ui.tornado_swagger to: opnfv_testapi.tornado_swagger modify setup.cfg to delete tornado_swagger_ui prefix JIRA: FUNCTEST-286 Change-Id: I1e8972e4fbe26ad3a5d945f3aed6783d0b666a5f Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-01add router package to implement url-2-XXXHandlers mappings in testAPI projectSerenaFeng8-142/+125
and eliminate flake8 violation JIRA: FUNCTEST-285 Change-Id: I15b568a97279032549f24ff81520220e271f3488 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-06-01project-ize testAPISerenaFeng85-1235/+204
JIRA: FUNCTEST-284 Change-Id: I219e934bb11f50de84df2aa0345ecc7885223491 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-31bugfix: query results failed due to wrong using periodSerenaFeng3-7/+36
JIRA: FUNCTEST-281 Change-Id: I3d0bdc302afc45593ad3feaec21b89d5c6eeaa0b Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-31Merge "bugfix: query results failed due to wrong using type of trust_indicator"Morgan Richomme3-6/+13
2016-05-31bugfix: query results failed due to wrong using type of trust_indicatorSerenaFeng3-6/+13
trust_indicator must be int/long/float rather than string JIRA: FUNCTEST-280 Change-Id: I2e2b292f9181fd28896bfe1e3b86ec3976b65016 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-31Merge "bugfix: version return body is inconsistent with the designed model"Morgan Richomme3-10/+31
2016-05-31Merge "refactor fake_pymongo.py to eliminate repeated codes"Morgan Richomme1-15/+11
2016-05-31bugfix: version return body is inconsistent with the designed modelSerenaFeng3-10/+31
JIRA: FUNCTEST-278 Change-Id: I53fa2eca6476c07ad513e72241d9715431cbdee8 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-31bugfix: query results failed due to using mutable list initiationSerenaFeng6-24/+32
and forget to swagger-ize TestResult model JIRA: FUNCTEST-277 Change-Id: I5d8ddd9983484a61df9b77392d5ae24bde6a16dc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-30refactor fake_pymongo.py to eliminate repeated codesSerenaFeng1-15/+11
JIRA: FUNCTEST-276 Change-Id: I2e40e12bc5b472aae88d294fb11dc479d5dd538c Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-30eliminate flake8 violation of testAPISerenaFeng3-15/+3
JIRA: FUNCTEST-274 Change-Id: I64e5e1c0d1165ac7ad7ff59dfd824dc00e131cdc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-30swagger-ize dashboard and version apis of testAPISerenaFeng10-203/+276
JIRA: FUNCTEST-273 Change-Id: I6f2b1de5488ba684d0c00e9f40daee2487a011cc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-29swagger-ize result-apis of testAPISerenaFeng14-208/+189
JIRA: FUNCTEST-270 Change-Id: I82b1e3acee82d9b4931531c9404e13a663ff32de Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-27swagger-ize testcase-apis of testAPISerenaFeng10-236/+239
Change-Id: Ibe4b068fd667b796455be3fd4d9701d50879aace JIRA: FUNCTEST-266 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-26swagger-ize project-apis of testAPISerenaFeng8-215/+241
rename pod_handler.py to pod_handlers.py JIRA: FUNCTEST-264 Change-Id: I8699999776bdb238f680a128b83cea0a098534c5 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-26swagger-ize pod-apis of testAPISerenaFeng6-93/+152
JIRA: FUNCTEST-263 Change-Id: I293e05f565f882ea39bbf6368405f10241269716 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-26Merge "eliminate flake8 violation in testAPI except dashboard dir"Morgan Richomme8-61/+106
2016-05-26eliminate flake8 violation in testAPI except dashboard dirSerenaFeng9-63/+109
JIRA: FUNCTEST-262 Change-Id: Ib77bb080111392b8e3248c5e6152f55c12b8c67c Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-05-26Merge "attach version number to url in testAPI"Morgan Richomme9-50/+57
2016-05-26attach version number to url in testAPISerenaFeng9-50/+57
version - /versions api - /api/v1/pods(projects/results) dashboard - /dashboard/v1/results I tried to make the code smart, but in vain, sad...... JIRA: FUNCTEST-261 Change-Id: I3e9e3ad7180a6c6349fd743e24eafea07bdefd1d Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>