-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathcrrReplicationS3utils.feature
More file actions
38 lines (35 loc) · 2.06 KB
/
Copy pathcrrReplicationS3utils.feature
File metadata and controls
38 lines (35 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Feature: Replication
This feature tests replication using the script crrExistingObjects.js from S3utils,
that replicates objects created before the replication was enabled on source the bucket.
@2.12.0
@PreMerge
@ReplicationTest
Scenario Outline: Objects created before setting up replication should not be replicated automatically
Given an existing bucket "source-bucket-0" "with" versioning, "without" ObjectLock "without" retention mode
And an object "source-object-1" that "exists"
And a replication configuration to "awsbackendmismatch" location
Then the object replication should "never happen" within 30 seconds
@2.12.0
@PreMerge
@ReplicationTest
Scenario Outline: Replicate objects created before creating the replication rule
Given an existing bucket "source-bucket-1" "with" versioning, "without" ObjectLock "without" retention mode
And an object "source-object-1" that "exists"
And a replication configuration to "awsbackendmismatch" location
When the job to replicate existing objects with status "NEW" is executed
Then the object replication should "succeed" within 300 seconds
And the replicated object should be the same as the source object
@2.12.0
@PreMerge
@ReplicationTest
@Lockawsbackendreplicationctstfail
Scenario Outline: Re-replicate objects that failed to replicate
Given an existing bucket "source-bucket2" "with" versioning, "without" ObjectLock "without" retention mode
And a replication configuration to "awsbackendreplicationctstfail" location
And a deleted destination bucket on that location
And an object "source-object-2" that "exists"
Then the object replication should "fail" within 500 seconds
When the destination bucket on the location is created again
And the job to replicate existing objects with status "FAILED" is executed
Then the object replication should "succeed" within 300 seconds
And the replicated object should be the same as the source object