harbor/tests/testcases/Group10-Vulnerability/Test-10-12-Scan-image-on-push.md
DQ 590212b485 Remove clair related code
- clair code in harbor core
- clair code in frontend
- clair code in robotcase

Signed-off-by: DQ <dengq@vmware.com>
2020-11-27 14:01:04 +08:00

656 B

Test 10-12 Scan Image on Push

Purpose:

To verify that trivy can automatic scan image when image is pushed.

References:

User guide

Environment:

  • This test requires that a Harbor instance is running and available.
  • Harbor is installed with trivy enable.
  • A linux host with Docker CLI installed.
  • Trivy has been updated to the latest.

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.