mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
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.
This commit is contained in:
1 parent
a40409f591
commit
d83bc662e0
1 file changed
+2
-1
+2
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user