mirror of https://github.com/minio/minio.git
update 3-site replication tests
This commit is contained in:
parent
abb1916bda
commit
2af5445309
|
|
@ -181,5 +181,12 @@ mc cp --quiet /etc/hosts sitea/bucket
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
echo "Verifying the metadata difference between source and target"
|
echo "Verifying the metadata difference between source and target"
|
||||||
diff -pruN <(mc stat --json sitea/bucket/hosts | jq .) <(mc stat --json siteb/bucket/hosts | jq .)
|
if diff -pruN <(mc stat --json sitea/bucket/hosts | jq .) <(mc stat --json siteb/bucket/hosts | jq .) | grep -q 'COMPLETED\|REPLICA'; then
|
||||||
diff -pruN <(mc stat --json sitea/bucket/hosts | jq .) <(mc stat --json sitec/bucket/hosts | jq .)
|
echo "verified sitea-> COMPLETED, siteb-> REPLICA"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if diff -pruN <(mc stat --json sitea/bucket/hosts | jq .) <(mc stat --json sitec/bucket/hosts | jq .) | grep -q 'COMPLETED\|REPLICA'; then
|
||||||
|
echo "verified sitea-> COMPLETED, sitec-> REPLICA"
|
||||||
|
fi
|
||||||
|
|
||||||
|
catch
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue