Skip to content

Commit 9d121c5

Browse files
Adding multipart Integ test
1 parent 592f9a4 commit 9d121c5

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
package software.amazon.awssdk.services.s3.presignedurl;
16+
17+
import org.junit.jupiter.api.BeforeAll;
18+
import software.amazon.awssdk.services.s3.S3AsyncClient;
19+
20+
21+
public class AsyncPresignedUrlExtensionMultipartIntegrationTest extends AsyncPresignedUrlExtensionTestSuite {
22+
23+
@BeforeAll
24+
static void setUpIntegrationTest() {
25+
S3AsyncClient s3AsyncClient = s3AsyncClientBuilder()
26+
.multipartEnabled(true)
27+
.build();
28+
presignedUrlExtension = s3AsyncClient.presignedUrlExtension();
29+
}
30+
31+
@Override
32+
protected S3AsyncClient createS3AsyncClient() {
33+
return s3AsyncClientBuilder().build();
34+
}
35+
}

services/s3/src/it/java/software/amazon/awssdk/services/s3/presignedurl/AsyncPresignedUrlExtensionTestSuite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static void setUpTestSuite() throws Exception {
8686
testGetObjectKey = generateRandomObjectKey();
8787
testLargeObjectKey = generateRandomObjectKey() + "-large";
8888
testObjectContent = "Hello AsyncPresignedUrlExtension Integration Test";
89-
testLargeObjectContent = randomAscii(5 * 1024 * 1024).getBytes(StandardCharsets.UTF_8);
89+
testLargeObjectContent = randomAscii(15 * 1024 * 1024).getBytes(StandardCharsets.UTF_8);
9090

9191
try (ByteArrayInputStream originalStream = new ByteArrayInputStream(testLargeObjectContent)) {
9292
expectedLargeObjectMd5 = Md5Utils.md5AsBase64(originalStream);

0 commit comments

Comments
 (0)