1557: Enforce Right: Manage Geographic Zone
Test Case #:1557 | Test Case Name: Enforce Right: Manage Geographic Zone |
System: OpenLMIS | Subsystem: blue |
Test case designed by: Paulina Borowa | Design Date:18.01.2017 |
Short description: There should be an Administrative type Right that a User may be assigned via a Role that allows them to Manage (View, Create, Edit) the Geographic Zones. Acceptance:
|
|
Pre – conditions: |
Step | Action | Expected system response | Comment |
1 | Use devadmin account to check if user without right MANAGE_GEOGRAPHIC_ZONE cannot POST/PUT/DELETE requisition template | POST: Status 403 { "messageKey": "requisition.error.unauthorized", "message": "requisition.error.unauthorized" } PUT: Status 403 { "messageKey": "requisition.error.unauthorized", "message": "requisition.error.unauthorized" } DELETE: Status 403 { "messageKey": "requisition.error.unauthorized", "message": "requisition.error.unauthorized" } GET: Status 403 { "messageKey": "requisition.error.unauthorized", "message": "requisition.error.unauthorized" } GET/{id}: Status 403 { "messageKey": "requisition.error.unauthorized", "message": "requisition.error.unauthorized" } | |
2 | Use administrator account to check if user with right MANAGE_GEOGRAPHIC_ZONE can GET/PUT/DELETE/POST requisition template | PUT: Status 200 OK POST: 201 Created: DELETE: GET: Status 200 OK GET/{id}: |
|
3 |
| ||
4 |
| ||
5 |
OpenLMIS: the global initiative for powerful LMIS software