2017-12-14 03:53:42 +01:00
|
|
|
10-09
|
|
|
|
=======
|
|
|
|
# Purpose:
|
2021-02-18 03:54:32 +01:00
|
|
|
To test normal user can pull scanned images.
|
2017-12-14 03:53:42 +01:00
|
|
|
|
|
|
|
# Reference:
|
|
|
|
User guide.
|
|
|
|
|
|
|
|
# Environment:
|
2021-02-18 03:54:32 +01:00
|
|
|
* This test requires that one Harbor instance is running and available.
|
2020-11-26 10:13:37 +01:00
|
|
|
* Harbor is installed with trivy enable.
|
2017-12-14 03:53:42 +01:00
|
|
|
* A Linux host with Docker client installed.
|
2020-11-26 10:13:37 +01:00
|
|
|
* Trivy has been updated to the latest.
|
2017-12-14 03:53:42 +01:00
|
|
|
* Vulnerability severity limit is disabled.
|
|
|
|
|
|
|
|
# Test Step:
|
|
|
|
**Note**:
|
|
|
|
In below test, user A is a non-admin user. User A should be replaced by meaningful names.
|
|
|
|
|
|
|
|
1. Login as user A.
|
|
|
|
2. Create a project and push an image.
|
|
|
|
3. Login as admin and scan the image.
|
2021-02-18 03:54:32 +01:00
|
|
|
4. On a Docker client, user A pull the scanned image.
|
2017-12-14 03:53:42 +01:00
|
|
|
|
|
|
|
# Expect Outcome:
|
|
|
|
* Step 4 user can pull the image.
|
|
|
|
|
|
|
|
# Possible Problems:
|
|
|
|
None
|