Skip to content

armgit / floci

Public Imported from GitHub
0

Light, fluffy, and always free - The AWS Local Emulator alternative

test(s3): sign the bucket setup in the batch-delete bypass scope test (#3566)

Davidd83bc662e087
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()