2017-12-14 03:53:42 +01:00
|
|
|
10-07 user fix vulnerability
|
|
|
|
=======
|
|
|
|
# Purpose:
|
2021-02-18 03:54:32 +01:00
|
|
|
To test trivy scan image vulnerability correct after user fix it.
|
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
|
|
|
|
|
|
|
# Test Steps:
|
|
|
|
1. Login Harbor as admin.
|
|
|
|
2. Push some images with vulnerability.
|
|
|
|
3. Scan an image with vulnerability and record the result.
|
2021-02-18 03:54:32 +01:00
|
|
|
4. Upgrade the image to fix vulnerability.
|
2017-12-14 03:53:42 +01:00
|
|
|
5. Rescan the same image and check the result.
|
|
|
|
|
|
|
|
# Expect Outcome:
|
|
|
|
* Step5 number of vulnerability should less than step3.
|
|
|
|
|
|
|
|
# Possible Problem:
|
|
|
|
None
|