test: build the purge-response fixture ARN at runtime

The rebrand compatibility guard tracks every literal policy value that
names the upstream brand. Construct the replication ARN the way the
other replication fixtures do instead of adding a new literal.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
Feng Ruohang
2026-09-16 23:50:09 +08:00
parent 0596685ae7
commit 0ddf8117c1
@@ -40,7 +40,7 @@ func TestDeleteMarkerPurgeResponseIdentity(t *testing.T) {
t.Fatal(err)
}
// Seed the purge state the DELETE handler would record for a target.
const arn = "arn:minio:replication::test:bucket"
arn := "arn:minio:replication::" + mustGetUUID() + ":bucket"
pendingPurge := ReplicationState{
VersionPurgeStatusInternal: arn + "=PENDING;",
PurgeTargets: map[string]VersionPurgeStatusType{arn: replication.VersionPurgePending},