...
source | function | target | result | ||||||
---|---|---|---|---|---|---|---|---|---|
user A | can SU | user B | true/false |
|
What is expected:
test | source | function | target | result | Test # |
---|---|---|---|---|---|
SuperUser | can SU | SuperUser | false |
| test 3 |
SuperUser | can SU | Priv User | true |
|
|
SuperUser | can SU | Standard User | true |
|
|
Standard User | can SU | SuperUser | false |
| test 5 |
Standard User | can SU | Priv User | false |
|
|
Standard User | can SU | Stardard User | false |
| test 4 |
Priv User | can SU | SuperUser | false |
| test 6a |
Priv User | can SU | Standard User | true |
| test 6b |
Priv User | can SU | Priv User | true |
|
|
...
- a test site with SU Tool installed (see #SU Tool Setup to set up a course)
- at least two non SuperUser accounts in the test site
- at least two SuperUser accounts
Test Series
Note | ||
---|---|---|
| ||
Default realm name and default security function name in tool reg file |
Test 1 - Validate that SU Tool can be created
Login as admin and , access the realms Realms tool, and delete the the realm entitled '!su.can_su_realm'.
Select the tool page (e.g., Administration Workspace) that contains the SU Tool.
Type the name of any non-admin or admin user and select 'Become User' button (the later case will fail the su but achieve results for this test.)
I If necessary, log our out and re-login log in as an admin user.
Return to realms Realms tool and search for the above realm name.
Expected result: '!su.can_su_realm' will be created if missing the first time the tool is opened by a SuperUser.
Test 2
Login as admin and access the realms tool and delete the realm entitled '!su.can_su_realm'
log out and re-login as a non admin user in the site that has the SU Tool installed
Select the tool page that contains the SU Tool
log out and relogin as admin
Return to realms tool and search for the above realm name
...