mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-13 04:16:56 +01:00
2.2 KiB
2.2 KiB
Test 1-09 - Admin User Create, Delete and Recreate a User(DB Mode)
Purpose:
To verify that an admin user can create/delete/recreate a user when users are managed locally by Harbor (DB mode).
References:
User guide
Environment:
- This test requires that a Harbor instance is running and available.
- Harbor is set to authenticate against a local database.
- A linux host with Docker CLI installed (Docker client).
Test Steps:
- The admin user logs in to the UI.
- The admin user creates a user from the UI.
- On a different browser, log in as the newly created user.
- The user views his/her own account settings.
- The user create two projects in the UI.
- On a Docker client host, use
docker login <harbor_host>
command to verify the user can log in. - The admin user deletes the user from the UI.
- When clicking on any link on the page, the deleted user's session on the different browswer should be redirected to the login page and logged out.
- On a Docker client host, use
docker login <harbor_host>
command to verify the user cannot log in. - The admin user re-creates a user with the same username of the deleted user.
- On a different browser, log in as the re-created user.
- The user views his/her own account settings.
- The user views "My Projects" to see what projects he/she owns.
- On a Docker client host, use
docker login <harbor_host>
command to verify the re-created user can log in. - The admin user view logs from the dashboard and should see two items of two project creation of the deleted user. The user has special number associated with him/her username.
Expected Outcome:
- The newly created user can log in successfully in Step 3.
- The newly created user can view his/her own settings as entered by the admin in Step 4.
- The newly created user can create project successfully in Step 5.
- The admin should be able to re-create the user in Step 10.
- The re-created user should be able to log in, however, the previous projects no longer belong to him/her (Step 11-13).
- Docker client logs in successfully in Step 14.
- Should see special user id in logs in Step 15.
Possible Problems:
None