mirror of
https://github.com/pgsty/minio.git
synced 2026-11-01 21:32:03 +03:00
test: reuse replication compatibility fixtures
Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
@@ -106,7 +106,7 @@ func TestReplicateDeleteMarkerTargetSemantics(t *testing.T) {
|
|||||||
|
|
||||||
func testReplicateDeleteMarkerPurge(obj ObjectLayer, instanceType, bucket string, router http.Handler, creds auth.Credentials, t *testing.T, legacy bool) {
|
func testReplicateDeleteMarkerPurge(obj ObjectLayer, instanceType, bucket string, router http.Handler, creds auth.Credentials, t *testing.T, legacy bool) {
|
||||||
ctx := t.Context()
|
ctx := t.Context()
|
||||||
const arn = "arn:minio:replication::00000000-0000-4000-8000-000000000001:replica"
|
const arn = "arn:minio:replication::af470089-d354-4473-934c-9e1f52f6da89:bucket"
|
||||||
const name = "marker"
|
const name = "marker"
|
||||||
version := mustGetUUID()
|
version := mustGetUUID()
|
||||||
remoteBucket := getRandomBucketName()
|
remoteBucket := getRandomBucketName()
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ func TestReplicationMRFDropsVisible(t *testing.T) {
|
|||||||
seen = make(map[string]bool)
|
seen = make(map[string]bool)
|
||||||
for _, family := range families {
|
for _, family := range families {
|
||||||
for name, value := range want {
|
for name, value := range want {
|
||||||
if family.GetName() != "minio_replication_"+name {
|
if family.GetName() != replicationCollectorPath.metricPrefix()+"_"+name {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
seen[name] = true
|
seen[name] = true
|
||||||
|
|||||||
Reference in New Issue
Block a user