1088: UI: Simple requisition user access permissions
Test Case #:1088 | Test Case Name: UI: Simple requisition user access permissions |
System: OpenLMIS | Subsystem: blue |
Test case designed by: Paulina Borowa | Design Date:12.12.2016 |
Short description: This story creates the first user rights restricted parts of the OpenLMIS-UI. Most of the functionality already exists within the AuthorizationService, but needs to receive correct data from the server. To test these tickets, a secondary non-admin user will need to be created that has a limited set of rights. |
|
Pre – conditions: The Requisition API permissions were built and tested in |
|
Step | Action | Expected system response | Comment |
1 | Check API endpoint that returns all of user rights: get /api/users/userId/roleAssignments |
| |
2 | Check:
| A non-admin user isn't able to view the "Administration" menu item: An admin user is able to view the "Administration" menu item |
|
3 | Assign the user (administrator) a right: REQUISITION_VIEW. Method: PUT Body: { | UI: user can only view the requisition: from his home facility and program: PROG001
If I change "programCode": "PRG002" no permission to see requisition from PROG001:
|
|
4 | Assign the user a right: REQUISITION_DELETE. Method PUT Body: |
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|