mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-17 15:55:26 +01:00
1.3 KiB
1.3 KiB
Test 4-03 - Admin Views Logs (DB Mode)
Purpose:
To verify that an admin user can views logs 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 a Docker client host, use
docker login <harbor_host>
command to log in as a non-admin user. - Run some
docker push
anddocker pull
commands to push images to the registry and pull from the registry. - Log in to the UI as the non-admin user.
- Delete a few images from the project.
- Log out non-admin user and log in to the UI as the admin user.
- View the logs of the project of the non-admin user.
- Try below search criteria to see if the search result is correct:
- push only
- pull only
- pull and push
- delete only
- all
- push and delete
- different date ranges
- date range and push
Expected Outcome:
- All operations of non-admin users in Step 2 & 4 should be logged.
- Logs can be viewed in Step 6, check if the time and operations are correct.
- Logs can be filtered in Step 7.
Possible Problems:
None