Create Role Testcase curl -X POST -s -H --data-binary @role.json https://<controller>/auth/v1/roles Contents of role.json Request: { "name":"user", "description":"A user role with limited Create a POST access" new role } { "description": "A user role with limited access", Response: 201 401,5xx "name": "user", "roleid": "2" } Update Specific Role Testcase curl -X PUT -s -H --data-binary @role.json https://<controller>/auth/v1/roles/2 Contents of role.json: Request: { "description": "A user role with limited access", Update a "name": "user", PUT specific role "roleid": "2" } { "description": "A user role with limited access", Response: 200 401,5xx "name": "user", "roleid": "2" } Delete Specific Role Testcase Delete a curl -X DELETE -s DELETE Request: specific role https://<controller>/auth/v1/roles/1
Create Role Testcase Create a new role POST Request: curl -X POST -s -H --data-binary @role.json https://<controller>/auth/v1/roles Contents of role.json { "name":"user", "description":"A user role with limited access" } Response: { "description": "A user role with limited access", "name": "user", "roleid": "2" } 201 401,5xx Update Specific Role Testcase Update a specific role PUT Request: curl -X PUT -s -H --data-binary @role.json https://<controller>/auth/v1/roles/2 Contents of role.json: { "description": "A user role with limited access", "name": "user", "roleid": "2" } Response: { "description": "A user role with limited access", "name": "user", "roleid": "2" } 200 401,5xx Delete Specific Role Testcase Delete a specific role DELETE Request: curl -X DELETE -s https://<controller>/auth/v1/roles/1
AAA_Test_Plan.docx