2017-12-14 03:53:42 +01:00
|
|
|
Test 10-06 Change scan configuration
|
|
|
|
=======
|
|
|
|
|
|
|
|
# Purpose:
|
|
|
|
To verify scan configuration can be changed correctly.
|
|
|
|
|
|
|
|
# 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.
|
2017-12-14 03:53:42 +01:00
|
|
|
* A linux host with Docker CLI installed.
|
|
|
|
|
|
|
|
# Test Step
|
|
|
|
|
|
|
|
1. Login harbor as admin.
|
|
|
|
2. Push a image to a project.
|
|
|
|
3. Click configuration.
|
2021-02-18 03:54:32 +01:00
|
|
|
4. Click vulnerability.
|
2017-12-14 03:53:42 +01:00
|
|
|
5. Set scan all to none.
|
|
|
|
6. Click scan now.
|
|
|
|
7. Check scan now button.
|
|
|
|
8. Check the image scan time.
|
|
|
|
|
|
|
|
# Expected Outcome:
|
|
|
|
* Step 4 if a new installed Harbor,vulnerability not ready hit should exist.
|
|
|
|
* Step 5 schedule time input should disappear.
|
|
|
|
* Step 7 after click scan now, scan now button should be disabled.
|
|
|
|
* Step 8 scan timestamp should be the time when click scan now.
|
|
|
|
|
|
|
|
# Possible Problems:
|
|
|
|
None
|