This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
collection_of_test_results [2015/10/12 09:49] Morgan Richomme |
collection_of_test_results [2016/01/08 13:57] (current) Nauman Ahad |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Test Result Collection Api ====== | ||
| + | |||
| + | |||
| ====== Description ====== | ====== Description ====== | ||
| The mission of this project is to provide a common way for gathering all the results of OPNFV tests projects into a single place. It should expose a REST API for the collect of results and push them into a MongoDB database. | The mission of this project is to provide a common way for gathering all the results of OPNFV tests projects into a single place. It should expose a REST API for the collect of results and push them into a MongoDB database. | ||
| Line 117: | Line 120: | ||
| ^Method ^Path ^Description ^ | ^Method ^Path ^Description ^ | ||
| | GET | /results | Get all the test results | | | GET | /results | Get all the test results | | ||
| - | | GET | /results?project_name={test_project_name} | Get all the results of project {test_project_name} | | + | | GET | /results/project={test_project_name} | Get all the results of the test project {test_project_name} | |
| - | | GET | /results?pod_name={pod_name} | Get all the results executed on pod {pod_name} | | + | | GET | /results/case={test_case_name} | Get all the results of the test case {test_case_name} | |
| + | | GET | /results?pod={pod_name} | Get all the results executed on pod {pod_name} | | ||
| | GET | /results?installer={installer_name} | Get all the results done with installer {installer_name} | | | GET | /results?installer={installer_name} | Get all the results done with installer {installer_name} | | ||
| | GET | /results?version={version_name} | Get all the results done with version {version_name} | | | GET | /results?version={version_name} | Get all the results done with version {version_name} | | ||
| | GET | /results?period={days} | Get all the results stored since {Days} days | | | GET | /results?period={days} | Get all the results stored since {Days} days | | ||
| - | | GET | /results?project_name={test_project_name}&installer={installer_name}&version={version_name}&period={days} | Get all the results of project {project_name} with version {version_name} installed by installer {installer_name} on POD [pod_name} stored since {days} days | | + | | GET | /results?project={test_project_name}&case={case_name}[&installer={installer_name}&version={version_name}&pod={pod_name}&period={days}] | Get all the results of the test case {case_name} of the project {project_name} with version {version_name} installed by installer {installer_name} on POD {pod_name} stored since {days} days \\ {project_name} and {case_name} are mandatory, the other parameters are optional | |
| | POST |/results | Add test result in the Database \\ Content-Type: application/json \\ { \\ "project_name": {project_name}, \\ "case_name": {case_name}, \\ "pod_name": {pod_name}, \\ "installer": {installer_name}, \\ "version":{version_name}, \\ "details": { <your results> } \\ } | | | POST |/results | Add test result in the Database \\ Content-Type: application/json \\ { \\ "project_name": {project_name}, \\ "case_name": {case_name}, \\ "pod_name": {pod_name}, \\ "installer": {installer_name}, \\ "version":{version_name}, \\ "details": { <your results> } \\ } | | ||
| + | ==== test results ==== | ||
| + | ^Method ^Path ^Description ^ | ||
| + | | GET | /dashboard | Get all the test projects providing dashboard ready results | | ||
| + | | GET | dashboard?project={project_name}&case={case_name}[&pod={pod_name}&installer={installer_name}&version={version_name}&period={days}] | Get all the results (in dashboard ready format) of the test case {case_name} of the project {project_name} with version {version_name} installed by installer {installer_name} on POD [pod_name} stored since {days} days \\ {project_name} and {case_name} are mandatory, the other parameters are optional | | ||