Skip to content

Commit 8244764

Browse files
committed
Self review
1 parent 18c80e7 commit 8244764

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/auth/credentials/DefaultChainCredentialsProvider.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ public class DefaultChainCredentialsProvider constructor(
4646
httpClient: HttpClientEngine? = null,
4747
public val region: String? = null,
4848
) : CloseableCredentialsProvider {
49+
4950
private val manageEngine = httpClient == null
5051
private val engine = httpClient ?: DefaultHttpEngine()
5152

5253
private val chain = CredentialsProviderChain(
5354
SystemPropertyCredentialsProvider(platformProvider::getProperty),
5455
EnvironmentCredentialsProvider(platformProvider::getenv),
5556
LazilyInitializedCredentialsProvider("EnvironmentStsWebIdentityCredentialsProvider") {
57+
// STS web identity provider can be constructed from either the profile OR 100% from the environment
5658
StsWebIdentityCredentialsProvider.fromEnvironment(
5759
platformProvider = platformProvider,
5860
httpClient = httpClient,

aws-runtime/aws-config/jvm/test/aws/sdk/kotlin/runtime/auth/credentials/DefaultChainCredentialsProviderTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class DefaultChainCredentialsProviderTest {
184184
assertEquals(expected.creds, creds)
185185

186186
if (expected.businessMetrics.isNotEmpty()) {
187-
assertEquals(expected.businessMetrics, attributes[BusinessMetrics]) // TODO: FILL OUT TESTS
187+
assertEquals(expected.businessMetrics, attributes[BusinessMetrics])
188188
}
189189

190190
// assert http traffic to the extent we can. These tests do not have specific timestamps they

0 commit comments

Comments
 (0)