From d83bc662e087c7963ad65dd3b970d6e4e5d2fdb1 Mon Sep 17 00:00:00 2001 From: David Date: Sun, 13 Sep 2026 22:52:41 +0100 Subject: [PATCH] test(s3): sign the bucket setup in the batch-delete bypass scope test (#3566) #3366 added batchDeleteBypassPermissionOnlyAppliesToGovernanceLockedEntries to the enforce-auth test class with an anonymous CreateBucket and an anonymous PutBucketPolicy in its setup. #2335, merged the same day, makes both of those return 403 under enforce-auth, as AWS does. Each PR was green against its own base; together they fail S3AuthEnforcementIntegrationTest on main. Sign the two setup calls with the class's legacy key, the same change every other setup in the class received in #2335. --- .../floci/services/s3/S3AuthEnforcementIntegrationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/io/github/hectorvent/floci/services/s3/S3AuthEnforcementIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/s3/S3AuthEnforcementIntegrationTest.java index dac9a2fa4f..866c01423e 100644 --- a/src/test/java/io/github/hectorvent/floci/services/s3/S3AuthEnforcementIntegrationTest.java +++ b/src/test/java/io/github/hectorvent/floci/services/s3/S3AuthEnforcementIntegrationTest.java @@ -1398,7 +1398,7 @@ class S3AuthEnforcementIntegrationTest { String bucket = "auth-batch-bypass-scope-bucket"; String unlockedKey = "unlocked.txt"; String lockedKey = "locked.txt"; - given().when().put("/" + bucket).then().statusCode(200); + given().header("Authorization", LOCAL_AUTH_HEADER).when().put("/" + bucket).then().statusCode(200); given() .header("Authorization", LOCAL_AUTH_HEADER) @@ -1419,6 +1419,7 @@ class S3AuthEnforcementIntegrationTest { .statusCode(200); given() + .header("Authorization", LOCAL_AUTH_HEADER) .contentType("application/json") .body(publicObjectActionPolicy(bucket, "s3:DeleteObject")) .when()