2020-11-26 10:13:37 +01:00
|
|
|
Test 10-01 Trivy can not scan some images
|
2017-12-14 03:53:42 +01:00
|
|
|
=======
|
|
|
|
|
|
|
|
# Purpose:
|
2020-11-26 10:13:37 +01:00
|
|
|
To verify that trivy can not scan some image.
|
2017-12-14 03:53:42 +01:00
|
|
|
|
|
|
|
# References:
|
|
|
|
User guide
|
|
|
|
|
|
|
|
# Environment:
|
|
|
|
* This test requires that a Harbor instance is running and available.
|
|
|
|
* A linux host with Docker CLI 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.
|
2020-11-26 10:13:37 +01:00
|
|
|
2. Create a project and push an image trivy does not recognize(for example: photon).
|
2017-12-14 03:53:42 +01:00
|
|
|
3. Scan the pushed image.
|
|
|
|
4. View the scan result.
|
|
|
|
5. Rescan it.
|
|
|
|
|
|
|
|
# Expected Outcome:
|
|
|
|
* Step3 should show view log link.
|
|
|
|
* Step4 the scan log should be can not scan.
|
|
|
|
* Step5 should be the same as step3.
|
|
|
|
|
|
|
|
# Possible Problems:
|
|
|
|
None
|