2018-03-12 07:20:37 +01:00
|
|
|
Test 10-12 Scan Image on Push
|
|
|
|
=======
|
|
|
|
|
|
|
|
# Purpose:
|
2020-11-26 10:13:37 +01:00
|
|
|
To verify that trivy can automatic scan image when image is pushed.
|
2018-03-12 07:20:37 +01:00
|
|
|
|
|
|
|
# References:
|
|
|
|
User guide
|
|
|
|
|
|
|
|
# Environment:
|
|
|
|
* This test requires that a Harbor instance is running and available.
|
2020-11-26 10:13:37 +01:00
|
|
|
* Harbor is installed with trivy enable.
|
2018-03-12 07:20:37 +01:00
|
|
|
* A linux host with Docker CLI installed.
|
2020-11-26 10:13:37 +01:00
|
|
|
* Trivy has been updated to the latest.
|
2018-03-12 07:20:37 +01:00
|
|
|
|
|
|
|
# Test Steps:
|
|
|
|
1. Login Harbor as admin.
|
|
|
|
2. Create a new project.
|
|
|
|
3. Goto project configuration page.
|
|
|
|
4. Enable automatically scan.
|
|
|
|
5. Push an image not scanned before to the project.
|
|
|
|
|
|
|
|
# Expected Outcome:
|
|
|
|
* Step5 image should be scaned automatically.
|
|
|
|
|