/
420: Basic Rights and Roles API

420: Basic Rights and Roles API

Test Case #:420

 

Test Case Name: Basic Rights and Roles API

System: OpenLMIS

Subsystem: requisition

Test case designed by: Anna Czyrko

Design Date:11.05.2016

Short description:  API to define Rights and Roles for Users.

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       

 

 

Step

Action

Expected system response

Comment

1

                           Create Right entity.                               
In Url:
Method: Post
Example Body:
{
"id": "
"
"name": "test",
"rightType": "test"
}
                                                                                                            

  Status: 201 created,

                    

right id: "
   
                                                 

2

Edit Right entity.
In Url:
Method: Post
Example Body:
{
"id": "bb1ea565-963c-4810-884c-9ba9857ddfc9",
"name": "test123",
"rightType": "test123"
}

Status: 201 created,

right id: "

"

 

3

Create Role entity.
I Right: "
"
II Right: "
"
In Url:
Method: Post
Example Body:
{
"name":"test",
b696f00ee7c5"]}
}
status: 201 created,