424: Supervisory nodes

 Test Case #:424

Test Case Name:Supervisory nodes

System: OpenLMIS

Subsystem:requisition

Test case designed by: Paulina Borowa

Design Date:15.07.2016

Short description: Allows addition of new and editing of existing supervisory nodes

                                                                                                                                                   

Pre – conditions:

1.

                                                                                                                                                                                                                           Step

 

Action

Expected system response

Comment

1

                                         

Create geographicZones

In URL: http://localhost:8080/api/geographicZones

Method: Post:

Body:

{

"code":"GeoZon",

"level":"http://localhost:8080/api/geographicLevels/8cb5c42f-9de8-417a-972d-8646d50fa065"

}

Status 201 Created, 

geographicZones id: "http://localhost:8080/api/geographicZones/98080987-7f3f-4ce1-972d-30b2f60c4e40"

                                                 

2

Create facilityTypes

In URL: http://localhost:8080/api/facilityTypes

Method: Post:

Body:

{

"code":"facilityT"

}

Status 201 Created,

facilityTypes id: "http://localhost:8080/api/facilityTypes/726c7d30-eeb6-4440-9cc2-29ce4f55741e"

 

3

Create facility

In URL: http://localhost:8080/api/facilities

Method: Post:

Body:

{

"code":"facilities",

"geographicZone":"http://localhost:8080/api/geographicZones/98080987-7f3f-4ce1-972d-30b2f60c4e40",

"type":"http://localhost:8080/api/facilityTypes/726c7d30-eeb6-4440-9cc2-29ce4f55741e",

"active":true,

"enabled":false

}

Status 201 Created,

facility id: "http://localhost:8080/api/facilities/130b9f7b-6fe1-4f0d-b76f-a2d9bbff3698"

 

4

Allowed addition of new supervisory nodes.

In URL: http://localhost:8080/api/supervisoryNodes

Method: Post:

Body:

{

"code":"SupNod",

"name":"SN",

"supervisorCount":"2",

"facility":"http://localhost:8080/api/facilities/130b9f7b-6fe1-4f0d-b76f-a2d9bbff3698"

}

Status 201 Created,

supervisory nodes id:"b2655d59-5fb7-4069-adca-a5d09f899f34"

 

5

Editing of existing supervisory nodes

In URL: http://localhost:8080/api/supervisoryNodes

Method: Post:

Body:

{

"id":"b2655d59-5fb7-4069-adca-a5d09f899f34",

"code":"SupNod2",

"name":"SN2",

"supervisorCount":"12",

"facility":"http://localhost:8080/api/facilities/130b9f7b-6fe1-4f0d-b76f-a2d9bbff3698"

}

 

 

 

OpenLMIS: the global initiative for powerful LMIS software