Test Case #:1010 | Test Case Name: Fix endpoint responses for bi-directional relationships |
System: OpenLMIS | Subsystem: blue |
Test case designed by: Paulina Borowa | Design Date:28.10.2016 |
Short description: All OpenLMIS endpoints that return entities with bi-directional relationships currently seem to fall into a loop during generating the JSON response for the view. An example is the search requistions endpoint, that returns the requisitions and the requisition lines that belong to them, that again contain the requisitions they belong to and so on. We should look into that and adjust the endpoints so we do not fall into a loop while generating the JSON responses. In requisition service:
In referencedata service: Requisition Group (member facilities) |
|
Pre – conditions: demo-data |
Step
2
3
4
5
6
7
Action | Expected system response | Comment | |
1 |
In requisition service check:
| |||
2 | In requisition service check:
Method: Get Method: Get | ||
3 | In requisition service check:
In URL: http://10.222.17.205/requisition/api/orders?access_token=bc471a62-da23-4bee-82d4-58487719fa9d Method Get | ||
4 | In referencedata service check:
|