File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
hll/s3-transfer-manager/common/test/aws/sdk/kotlin/hll/s3transfermanager Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 55
66package aws.sdk.kotlin.hll.s3transfermanager
77
8+ import aws.sdk.kotlin.runtime.auth.credentials.StaticCredentialsProvider
89import aws.sdk.kotlin.runtime.http.interceptors.businessmetrics.AwsBusinessMetric
910import aws.sdk.kotlin.services.s3.S3Client
11+ import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
12+ import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials.Companion.invoke
1013import aws.smithy.kotlin.runtime.businessmetrics.containsBusinessMetric
1114import aws.smithy.kotlin.runtime.client.ProtocolResponseInterceptorContext
1215import aws.smithy.kotlin.runtime.content.ByteStream
@@ -31,6 +34,7 @@ class BusinessMetricInterceptorTest {
3134 region = " us-west-2"
3235 httpClient = TestEngine ()
3336 interceptors + = testInterceptor
37+ credentialsProvider = StaticCredentialsProvider (Credentials (" akid" , " secret" ))
3438 }.use { s3Client ->
3539 S3TransferManager {
3640 client = s3Client
Original file line number Diff line number Diff line change 55
66package aws.sdk.kotlin.hll.s3transfermanager
77
8+ import aws.sdk.kotlin.runtime.auth.credentials.StaticCredentialsProvider
89import aws.sdk.kotlin.services.s3.S3Client
910import aws.sdk.kotlin.services.s3.model.CompleteMultipartUploadRequest
1011import aws.sdk.kotlin.services.s3.model.PutObjectRequest
1112import aws.sdk.kotlin.services.s3.model.PutObjectResponse
13+ import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials
14+ import aws.smithy.kotlin.runtime.auth.awscredentials.Credentials.Companion.invoke
1215import aws.smithy.kotlin.runtime.content.ByteStream
1316import aws.smithy.kotlin.runtime.httptest.TestEngine
1417import kotlinx.coroutines.runBlocking
@@ -22,6 +25,7 @@ class TransferInterceptorTest {
2225 S3Client {
2326 region = " us-west-2"
2427 httpClient = TestEngine ()
28+ credentialsProvider = StaticCredentialsProvider (Credentials (" akid" , " secret" ))
2529 }.use { s3Client ->
2630 S3TransferManager {
2731 client = s3Client
You can’t perform that action at this time.
0 commit comments