Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
 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:

  • Order (list of order line items)
  • Proof Of Delivery (list of proof of delivery line items)
  • Requisition (list of requisition line items)

In referencedata service: Requisition Group (member facilities)


                                                                                                                                                   

Pre – conditions:

demo-data

Step

2

 

3

 

 

4

 

 

 

5

 

6

 

7

                 

 

8 

Action

Expected system response

Comment

1

                                                                                                   

In requisition service check:

  • Proof Of Delivery (list of proof of delivery line items)

Image Added


2


In requisition service check:

  • Requisition (list of requisition line items)
In URL: http://10.222.17.205/requisition/api/requisitions/search?access_token=bc471a62-da23-4bee-82d4-58487719fa9d


Method: Get

In URL: http://10.222.17.205/requisition/api/requisitions/074a49af-12c3-429f-b5da-ed3f9e65787c?access_token=bc471a62-da23-4bee-82d4-58487719fa9d

Method: Get


Image AddedImage Added



3

In requisition service check:

  • 'Order (list of order line items)

In URL: http://10.222.17.205/requisition/api/orders?access_token=bc471a62-da23-4bee-82d4-58487719fa9d

Method Get

Image Added


4

In referencedata service check:


Image Added