2017-12-14 03:53:42 +01:00
|
|
|
Test 10-05 Schedule daily scan
|
|
|
|
=======
|
|
|
|
|
|
|
|
# Purpose:
|
|
|
|
To verify daily scan work 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.
|
2020-11-26 10:13:37 +01:00
|
|
|
* Trivy has been updated to the latest.
|
2017-12-14 03:53:42 +01:00
|
|
|
|
|
|
|
# Test Step
|
|
|
|
1. Login Harbor as admin.
|
|
|
|
2. Create at least 3 projects.
|
|
|
|
3. Push at least 2 images to each project.
|
|
|
|
4. Schedule a daily scan that time is before current time.
|
|
|
|
5. Wait one day.
|
|
|
|
6. Check the timestamp of scan.
|
|
|
|
7. Schedule a daily scan that time is after current time.
|
|
|
|
8. Wait until time is after the scheduled time.
|
|
|
|
9. Check the timestamp of scan.
|
|
|
|
|
|
|
|
# Expected Outcome:
|
|
|
|
* Step6 the timestamp should be the same as scheduled.
|
|
|
|
* Step9 the timestamp should be the same as scheduled.
|
|
|
|
|
|
|
|
# Posssible Problems:
|
|
|
|
None
|