mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 09:22:49 -05:00
test: move compatibility tests into this repo (#225)
* test: move compatibility tests into this repo * fix: add StatisticValues parsing to CloudWatchMetricsJsonHandler * fix: add missing required abstract methods to EmulatorConfig in EventBridgeSchedulerIntegrationTest * test: add sdk tests for multipart S3 copy coverage * fix: cover and fix smithy cbor and multipart s3 copy regressions * test: migrate more test coverage to new folder * test: add missing ec2 expectation in healthcheck test * docs: update READMEs in `./compatibility-tests`
This commit is contained in:
1 parent
9b2a987fec
commit
eeefb729c4
165 files changed
+29969
-15
No files matched your search
+1
@@ -39,6 +39,7 @@ class HealthControllerIntegrationTest {
|
||||
"acm": "running",
|
||||
"email": "running",
|
||||
"es": "running",
|
||||
"ec2": "running",
|
||||
"ecs": "running"
|
||||
},
|
||||
"edition": "floci-always-free",
|
||||
|
||||
@@ -360,4 +360,18 @@ class S3ServiceTest {
|
||||
assertEquals("STANDARD_IA", copy.getStorageClass());
|
||||
assertEquals("dest", copy.getMetadata().get("owner"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void copyObjectWithNonASCIIKey() {
|
||||
s3Service.createBucket("test-bucket", "us-east-1");
|
||||
String nonASCIIKey = "src/テスト画像.png";
|
||||
s3Service.putObject("test-bucket", nonASCIIKey, "image-data".getBytes(), "image/png", null);
|
||||
|
||||
String destKey = "dst/テスト画像.png";
|
||||
S3Object copy = s3Service.copyObject("test-bucket", nonASCIIKey, "test-bucket", destKey);
|
||||
assertNotNull(copy.getETag());
|
||||
|
||||
S3Object retrieved = s3Service.getObject("test-bucket", destKey);
|
||||
assertArrayEquals("image-data".getBytes(), retrieved.getData());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user