Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changes/963ddb76-2622-44d7-bb41-3439a5f033a5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"id": "963ddb76-2622-44d7-bb41-3439a5f033a5",
"type": "misc",
"description": "Upgrade aws-crt-java to 0.31.3"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ProfileCredentialsProviderTest {

@Test
fun `it should create a provider for a valid profile`() = runBlocking {
val configPath = Files.createTempFile("ProfileCredentialsProviderTest_config", "")
val credsPath = Files.createTempFile("ProfileCredentialsProviderTest_creds", "")
credsPath.toFile().writeText(
"""
Expand All @@ -30,6 +31,7 @@ class ProfileCredentialsProviderTest {

try {
val provider = ProfileCredentialsProvider.build {
configFileName = configPath.toString()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aws-crt-java v0.30.7 changed the priority order of profile credentials to resolve credential_process before static credentials.

This test was picking up my local ~/.aws/config which had credential_process configured, causing the test to resolve process credentials instead of the static credentials we configured here.

credentialsFileName = credsPath.toString()
}
val actual = provider.getCredentials()
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kotlin-version = "2.0.21"
aws-kotlin-repo-tools-version = "0.4.12"

# libs
crt-java-version = "0.30.5"
crt-java-version = "0.31.3"
coroutines-version = "1.9.0"

# testing
Expand Down
Loading