mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-01 08:09:59 +01:00
1.3 KiB
1.3 KiB
Test 1-03 - User update password (DB Mode)
Purpose:
To verify that a non-admin user can update password 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. ( auth_mode is set to db_auth .) The user data is stored in a local database.
- A linux host with Docker CLI installed (Docker client).
Test Steps:
NOTE: Use a non-admin user for this test case. Admin user has other test cases.
- A non-admin user logs in to the UI by username.
- The user changes his/her own password.
- The user logs out.
- The same user logs in to the UI by email using the new password.
- The user can log in using
docker login
command using the new password. - The user goes to the page to change his/her own password. Provide invalid values of input to see if validation works:
- old password is incorrect
- password input does not compliant to password rule
- two passwords do not match
Expected Outcome:
- Password can be changed in Step 2.
- User can log in using new password in Step 4.
- In Step 6, the user cannot change password due to various errors. Proper error message should be displayed.
Possible Problems:
None