...
Role Create / Update / Delete
Test A: Check that the TENANT_ADMINISTRATOR
...
and _READER roles are displayed properly
Actions:
- Login with full privileges
- Go to Administration in the top menu navigation, then the Roles and Permissions tab
Expected:
- The TENANT_ADMINISTRATOR
...
- and TENANT_READER roles should be displayed on the list to the left
Actions:
- Click the TENANT_ADMINISTRATOR role
Expected:
...
- The Role
...
- name should be displayed
- All permissions should be set to
...
- Delete
...
- Change any of the permissions for this role
- Press save
Expected:
- You should receive an error message "Bad response 403" and be unable to save
Test B: Check that the TENANT_READER role is displayed properly
Actions:
- *# Login with full privileges
- Go to administration, then Roles and Permissions
Expected:
- Go to administration, then Roles and Permissions
- The TENANT_READER role should be displayed on the list to the left
Actions:
- The TENANT_READER role should be displayed on the list to the left
- The permissions should be read only
Actions:
- Click the TENANT_READER role
Expected:
...
- The Role
...
- name should be displayed
- All permissions should be set to
...
- Read
...
- The permissions should be read only
Test 1: Create
...
New Invalid Role - No Role Name
Actions:
- Login with full privileges
- Go to administration Administration in the top menu navigation, then the Roles and Permissions
- A "No role selected" message should be displayed
- tab
- Click the "+ role" Create new button to on the left
Expected:
- A
...
- new role form should appear
- All permissions should be set to None
Actions:
...
- Click save
...
Expected:
- A message saying "Required field is empty: Role Name" should be displayedwill appear reading, "Name is required. Please enter a value."
Test 3: Create
...
New Valid Role
Actions:
- Continue from Test 1 (or go to Roles and Permissions, and click "+role")
- Fill out Role Name
- Change some any of the permission settings of permissions
- Click save
Expected:
...
- The new role should be displayed on the list
- A
...
- successful save message should display
Actions:
- Click a different role
- Wait for it to load
- Click back to the role you created
Expected:
- The Role Name, Description and Permissions should be as you created them
Test 5: Create
...
New Invalid Role (Duplicate Role Name)
Actions:
- Continue from Test 3 (or go to roles and permissions)
- Click the "+ role" Create new button to on the left
- Fill out the Role Name with the same name as an existing role name
- Click the save button
Expected:
- A message (see CSPACE-3521) should appear telling you that duplicate role names are not allowed
- The new role should not be saved
Test 9: Edit
...
Existing Role to Invalid
Actions:
- Continue from Test 7 (or go to Roles and Permissions)
- Select a role that you can edit by clicking on it in the left to the leftmenu
- Change the any permissions of that role
- Delete the text from Role Name
- Click save
Expected:
- A message saying that some required fields are empty should be displayedNo saving reading "Name is required. Please enter a value." should appear
- No save should take place
Actions:
- Change the role name to be the exact same as an existing role
- Click save
Expected:
- An error message "Bad response 400" should appear in the bottom of the screen
Test 11: Edit
...
Role (
...
Valid)
Actions:
- Continue from Test 9 (or go to Roles and Permissions, then selected a role that you want to edit on the lift to the left)
- Change the value in the role name Name field
- Change the description Description
- Change the any permissions of the role
- Click the save button
Expected:
- The name in the left list should change to the new name
- Navigate away from the role by clicking another role, then back to the one you edited
- The Role Name, Description and Permissions should reflect your changes.
Test 13: Delete
...
Role with Cancel/Close
Actions:
- Continue from Test 11 (or go to Roles and Permissions, the select a role you are comfortable deleting)
- Click the Delete button above the Role form
...
Actions:
- Variation A: click Cancel
- Variation B: click Close symbol
- Variation C: hit the Escape key
...
- The dialog should be dismissed
- Form should be unchanged
Test 15: Successfully
...
Delete Role
Actions:
- Continue from Test 13 (or go to Roles and Permissions, the select a role you are comfortable deleting)
- Click the Delete button above the Role form
- In the dialog, hit delete
Expected:
- The dialog should be dismissed
- A " Role successfully deleted " message should appear
- The form should be replaced by a No Roles Selected messageThe role should disappear from the list of roles
Test 17:
...
Delete Role Assigned to User
Actions:
- Go to Roles and Permissions and create Createa new role (Like in Test 3)
- Take a note of the name of the role
- Go to the Users tab
- Create a new user, by clicking Create New User and filling out the form
- Assign your newly created roll to the new user by marking the role in the Roles list
- Click Save
- Go to Roles and Permission tab
- Select the role you created from the list to the left
- Click the Delete button
- Click confirm in the delete box
...
- An error message should tell you that this action is not allowed due to the role being assigned
- The role should still be in the form as well as in the list to the left
Test 20: Spend 5 minutes trying to break something
...
!
- Spend a few minutes forcing the program to expose buggy behavior by:
- using the system in ways not covered by the testplan
- using the system in unexpected ways
- doing whatever you can think of that will produce bugs and unexpected behavior.
- Be creative!
Known bugs, Roles and Permissions:
...