mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-07 19:22:08 +01:00
1.3 KiB
1.3 KiB
Test 7-06 - Immediate trigger
Purpose:
To verify the immediate replication rule can work as expected.
References:
User guide
Environment:
- This test requires that at least two Harbor instances are running and available.
- Create a new replication rule whose triggering condition is set to immediate and no filter is configured.
Test Steps:
- Push an image to the project that the replication is applied to.
- Login UI as admin user.
- In
Administration->Replications
page, edit the rule and make sure theDelete remote images when locally deleted
is checked. - Delete the image pushed in step 1 on UI.
- In
Administration->Replications
page, edit the rule and make sure theDelete remote images when locally deleted
is unchecked. - Push the image to the project that the replication is applied to again.
- Delete the image pushed in step 6 on UI.
Expect Outcome:
- In step 1, a job should be started and the image should be replicated to the remote registry.
- In step 4, a job should be started and the image should be deleted from the remote registry.
- In step 6, a job should be started and the image should be replicated to the remote registry.
- In step 7, a job should be started and the image should not be deleted from the remote registry.
Possible Problems:
None