mirror of
https://github.com/pgsty/minio.git
synced 2026-09-10 12:34:06 +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) {
|
||||
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"
|
||||
version := mustGetUUID()
|
||||
remoteBucket := getRandomBucketName()
|
||||
|
||||
@@ -79,7 +79,7 @@ func TestReplicationMRFDropsVisible(t *testing.T) {
|
||||
seen = make(map[string]bool)
|
||||
for _, family := range families {
|
||||
for name, value := range want {
|
||||
if family.GetName() != "minio_replication_"+name {
|
||||
if family.GetName() != replicationCollectorPath.metricPrefix()+"_"+name {
|
||||
continue
|
||||
}
|
||||
seen[name] = true
|
||||
|
||||
Reference in New Issue
Block a user