update replication tests with latest 'mc' (#16348)

This commit is contained in:
Harshavardhana
2023-01-03 22:54:39 -08:00
committed by GitHub
parent a2514ffeed
commit 14d29b77ae
4 changed files with 27 additions and 86 deletions

View File

@@ -76,14 +76,11 @@ done
./mc mb siteb/bucket/
./mc version enable siteb/bucket/
echo "adding replication config for site a -> site b"
remote_arn=$(./mc admin bucket remote add sitea/bucket/ \
http://minio:minio123@127.0.0.1:9004/bucket \
--service "replication" --json | jq -r ".RemoteARN")
echo "adding replication rule for a -> b : ${remote_arn}"
echo "adding replication rule for site a -> site b"
./mc replicate add sitea/bucket/ \
--remote-bucket "${remote_arn}"
--remote-bucket http://minio:minio123@127.0.0.1:9004/bucket
remote_arn=$(./mc replicate ls sitea/bucket --json | jq -r .rule.Destination.Bucket)
sleep 1
./mc replicate resync start sitea/bucket/ --remote-bucket "${remote_arn}"