Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Test Case #:1401

Test Case Name:Cannot assign a role with no rights

System: OpenLMIS

Subsystem: blue

Test case designed by: Paulina Borowa

Design Date:16.12.2016

Short description

If someone will try to assign a role with no rights to a user he/she will get an error message:

{
  "timestamp": 1479714389035,
  "status": 500,
  "error": "Internal Server Error",
  "exception": "java.util.NoSuchElementException",
  "message": "No message available",
  "path": "/api/users"
}

There should more appropriate message like: 'the role <<role_name>> cannot be assigned because it has no rights' or we should handle a situation in which the given role has no rights.

Acceptance:

  • assigning a role to a user when the role has no rights will not result in a 500
  • error message is better
  • demo data has no roles without rights

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                                                       



Step

Action

Expected system response

Comment

1

Check: demo data has no roles without rights

In Url: http://10.222.17.205/api/roles?access_token=24378ef8-63f5-4436-b1a4-30fa3102f0ad

Method GET

                                                                                                                            

                                                 

2

Check: 
  • assigning a role to a user when the role has no rights will not result in a 500
  • error message is bette

Create a role with no rights: 

 

3

  

 

4

  

 

5

   

6

  

 

  • No labels