1213: Reject requisition endpoint should only work on authorized requsitions


Test Case #:1213


Test Case Name: Reject requisition endpoint should only work on authorized requsitions

System: openLMIS

Subsystem: blue

Test case designed by: Lucyna Laska

Design Date:28.10.2016

Short description: Rejecting a requisition should only work, when the requisition is waiting for approval. In any other case the endpoint should not move the requisition back to initiated state

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

Step

Action

Expected system response

Comment

1

        Using demo-data, find the requisition with status AUTHORIZE and try to reject it:

            URL:  http://10.222.17.134/requisition/api/requisitions/c6ce0209-6caf-4f40-bea8-01ce529fdc67/reject?access_token=98e4c739-2a0e-4701-bf9c-43a5a34fd92e

Method: PUT




The requisition has been rejected successfully.

                                                                                                                            

                                                 

2

Using demo-data, find the requisition with status INITIATED and try to reject it:

URL:  http://10.222.17.134/requisition/api/requisitions/c6ce0209-6caf-4f40-bea8-01ce529fdc67/reject?access_token=98e4c739-2a0e-4701-bf9c-43a5a34fd92e

Method: PUT

The requisition can not be rejected, because status is incorrect,



3

Using demo-data, find the requisition with status SUBMITTED and try to reject it:

URL:  http://10.222.17.134/requisition/api/requisitions/8c7f1a6d-d139-483a-ad60-4288016f3d23/reject?access_token=98e4c739-2a0e-4701-bf9c-43a5a34fd92e

Method: PUT

The requisition can not be rejected, because status is incorrect,


4

Using demo-data, find the requisition with status APPROVED and try to reject it:

URL:  http://10.222.17.134/requisition/api/requisitions/05883300-976a-11e6-ae22-56b6b6499611/reject?access_token=21e141b2-17a5-4887-94ab-082df5bdc5b8

Method: PUT

The requisition can not be rejected, because status is incorrect.


5




6




7




8

                                                


Post – conditions:

OpenLMIS: the global initiative for powerful LMIS software