mirror of
https://github.com/pgsty/minio.git
synced 2026-09-17 07:48:27 +03:00
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:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user