mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-09 20:21:53 +01:00
1.6 KiB
1.6 KiB
Test 1-01 - User Registration (DB Mode)
Purpose:
To verify that a user can register an account (singup) 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:
- On the Harbor's home page, click "Sign Up"
- Enter user information to register a user.
- Use the username of the newly registered user to log in to the UI.
- Log out from the UI.
- Use the email of the newly registered user to log in to the UI.
- On a Docker client host, use
docker login <harbor_host>
command to verify the user can log in by either the username or email . (verify both) - Log out from the UI and register a another new user. Try to provide invalid values of input to see if validation works:
- username is the same as an existing user
- username is very long in length
- wrong email formatting
- email is very long in length
- password input does not compliant to password rule
- two passwords not matching
Expected Outcome:
- A new user created in step 2.
- The new user can log in via UI in Step 3 and Step 5.
- The new user can log in via docker client in Step 6 by email and username.
- Invalid input during sign up can be rejected, proper error messages can be displayed in Step 7.
Possible Problems:
None