mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix: return 400 when encoded s3 copy source is malformed (#244)
fix: replace silent exception swallowing and add per-test timeout in Python test suite test: misc compatibility-tests cleanups - Added sync comments to both main.tf files - Created compatibility-tests/.dockerignore - Cached CRC32 table in Node setup.ts - Removed >/dev/null 2>&1 from 3 Dockerfiles test: add missing .terraform.lock.hcl chore: remove .terraform.lock.hcl
This commit is contained in:
1 parent
d02a1d9a13
commit
f4f1752b0d
17 files changed
+84
-51
No files matched your search
@@ -371,6 +371,30 @@ class S3IntegrationTest {
|
||||
given().delete("/" + bucket);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(21)
|
||||
void copyObjectWithMalformedEncodedSourceReturns400() {
|
||||
given()
|
||||
.header("x-amz-copy-source", "/test-bucket/%ZZinvalid")
|
||||
.when()
|
||||
.put("/test-bucket/dest-key")
|
||||
.then()
|
||||
.statusCode(400)
|
||||
.body(containsString("InvalidArgument"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(22)
|
||||
void copyObjectWithEmptyBucketReturns400() {
|
||||
given()
|
||||
.header("x-amz-copy-source", "/key-only-no-bucket")
|
||||
.when()
|
||||
.put("/test-bucket/dest-key")
|
||||
.then()
|
||||
.statusCode(400)
|
||||
.body(containsString("InvalidArgument"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(21)
|
||||
void putLargeObject() {
|
||||
|
||||
Reference in new issue
Block a user