Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Test Case #:1386

Test Case Name: Add configuration settings for external fill for fulfillment

System: OpenLMIS

Subsystem:

Test case designed by: Paulina Borowa

Design Date:05.12.2016

Short description

Acceptance Criteria

  • If the system already has a way to manage configuration settings (ConfigurationSettingService?) that fulfills requirements, use it; otherwise, design a way to store and manage these settings (might potentially use the design from v2)
  • Add any bootstrap/demo data as necessary

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       



Step

Action

Expected system response

Comment

1

go on swagger and check all facility Ftp Settings endpoints                                                                                                                                                                             

2

check endpoint for delete facility Ftp Settings:

delete /facilityFtpSettings/{id}

id: 312247e0-7c31-4b6c-b35c-1868e5a19742


 Image Modified

Check by

get if it still egzisting:

GET

Image Modified

  


3

  

5

   

6

   

check endpoint

get /facilityFtpSettings/{id}

Image Added


4

  

 

check endpoint

put /facilityFtpSettings/{id}

Image Added


5

check endpoint

post /facilityFtpSettings

Body:

{

    "id": "ce88d3b1-0518-42fb-8fc1-e47ad80c7134",

    "facilityId": "19121381-9f3d-4e77-b9e5-d3f59fc1639e",

    "protocol": "ftp",

    "username": "admin",

    "password": "p@ssw0rd",

    "serverHost": "ftp",

    "serverPort": 21,

    "remoteDirectory": "/orders/files/csv/W01",

    "localDirectory": "/var/lib/openlmis/fulfillment/orders/W01",

    "passiveMode": true

}


Image Added

Check by GET

Image Added