2016-10-31 05:13:13 +01:00
|
|
|
Test 7-01 - Create Replication Policy
|
|
|
|
=======
|
|
|
|
|
|
|
|
# Purpose:
|
|
|
|
|
2017-08-07 12:12:01 +02:00
|
|
|
To verify that admin user can create a replication rule.
|
2016-10-31 05:13:13 +01:00
|
|
|
|
|
|
|
# References:
|
2017-08-07 12:12:01 +02:00
|
|
|
|
2016-10-31 05:13:13 +01:00
|
|
|
User guide
|
|
|
|
|
|
|
|
# Environment:
|
2017-08-07 12:12:01 +02:00
|
|
|
|
|
|
|
* This test requires that at least two Harbor instances are running and available.
|
2016-10-31 05:13:13 +01:00
|
|
|
|
|
|
|
# Test Steps:
|
|
|
|
|
2017-08-07 12:12:01 +02:00
|
|
|
1. Login UI as admin user.
|
2018-01-23 07:16:50 +01:00
|
|
|
2. In `Administration->Replications` page, create a new rule and fill in name and description.
|
|
|
|
3. Choose a project by clicking the icon on the right of `Projects`.
|
|
|
|
4. Add repository and tag filter.
|
|
|
|
5. Choose an endpoint, create a new one if no endpoint exists.
|
2021-02-18 03:54:32 +01:00
|
|
|
6. Select a triggering condition: Immediate/Manual/Scheduled, check/uncheck the `Delete remote images when locally deleted` if choosing `Immediate`.
|
2018-01-23 07:16:50 +01:00
|
|
|
7. Check/uncheck the option `Replicate existing images immediately`.
|
|
|
|
8. Save the rule.
|
2017-08-07 12:12:01 +02:00
|
|
|
|
2018-01-23 07:16:50 +01:00
|
|
|
Repeat steps 1-8 under `Projects->Project_Name->Replication` page.
|
2016-10-31 05:13:13 +01:00
|
|
|
|
|
|
|
# Expected Outcome:
|
|
|
|
|
2018-01-23 07:16:50 +01:00
|
|
|
* In step8, a rule will be added.
|
2016-10-31 05:13:13 +01:00
|
|
|
|
|
|
|
# Possible Problems:
|
2017-08-07 12:12:01 +02:00
|
|
|
None
|