From da1790ddecfc922029538e3e8d1005124887b72e Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Fri, 15 May 2026 10:26:42 -0700 Subject: [PATCH 1/4] pick up s3 changes --- crt/aws-c-s3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crt/aws-c-s3 b/crt/aws-c-s3 index a31a65784..f1a52b5e9 160000 --- a/crt/aws-c-s3 +++ b/crt/aws-c-s3 @@ -1 +1 @@ -Subproject commit a31a657840daffbfa7749b63cd0e2a178a6a5d9e +Subproject commit f1a52b5e960c06bd9392cb5e982c6fe04f1ce253 From 8b512a8e3343a523cb28e9835793f62377d10732 Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Fri, 15 May 2026 10:39:44 -0700 Subject: [PATCH 2/4] common as well --- crt/aws-c-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crt/aws-c-common b/crt/aws-c-common index 95515a8b1..7f18168e8 160000 --- a/crt/aws-c-common +++ b/crt/aws-c-common @@ -1 +1 @@ -Subproject commit 95515a8b1ff40d5bb14f965ca4cbbe99ad1843df +Subproject commit 7f18168e834b2abf276c6f92ae3b27af494fcca1 From a1daa23d0f633fa6ed7f87200e03691b2b6bba31 Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Fri, 15 May 2026 11:46:26 -0700 Subject: [PATCH 3/4] more --- crt/aws-c-auth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crt/aws-c-auth b/crt/aws-c-auth index fc4b87655..4b5cf14bf 160000 --- a/crt/aws-c-auth +++ b/crt/aws-c-auth @@ -1 +1 @@ -Subproject commit fc4b87655e5cd3921f18d1859193c74af4102071 +Subproject commit 4b5cf14bfbb7d402ed89c7d614d77e924a65321f From 0df8b4d5b3b78bdc0a39bb77f365821dd0dca865 Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Mon, 18 May 2026 16:33:03 -0700 Subject: [PATCH 4/4] fix test --- crt/aws-c-s3 | 2 +- pom.xml | 4 ++-- .../amazon/awssdk/crt/test/CredentialsProviderTest.java | 9 ++++++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/crt/aws-c-s3 b/crt/aws-c-s3 index f1a52b5e9..a31a65784 160000 --- a/crt/aws-c-s3 +++ b/crt/aws-c-s3 @@ -1 +1 @@ -Subproject commit f1a52b5e960c06bd9392cb5e982c6fe04f1ce253 +Subproject commit a31a657840daffbfa7749b63cd0e2a178a6a5d9e diff --git a/pom.xml b/pom.xml index 81e7d78a6..b221cf735 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,7 @@ -DOSX_ARCH_DUMMY=1 -DOSX_DEPLOYMENT_TARGET_DUMMY=1 OFF - 2.21.0 + 3.2.5 @@ -498,7 +498,7 @@ kill -Daws.crt.memory.tracing=2 -Xcheck:jni alphabetical - false + true false 0 false diff --git a/src/test/java/software/amazon/awssdk/crt/test/CredentialsProviderTest.java b/src/test/java/software/amazon/awssdk/crt/test/CredentialsProviderTest.java index 0e6e7d82b..d6bbe3db5 100644 --- a/src/test/java/software/amazon/awssdk/crt/test/CredentialsProviderTest.java +++ b/src/test/java/software/amazon/awssdk/crt/test/CredentialsProviderTest.java @@ -25,6 +25,8 @@ import java.util.List; import java.util.concurrent.*; +import software.amazon.awssdk.crt.Log; + import static org.junit.Assert.*; import static org.junit.Assert.fail; @@ -289,6 +291,7 @@ public void testCreateDestroyProfile_InvalidProfile() throws IOException { @Test public void testCreateDestroyProfile_MissingCreds() throws ExecutionException, InterruptedException, IOException { + Log.initLoggingToStderr(Log.LogLevel.Trace); Path confPath = Files.createTempFile("testCreateDestroyProfile_ValidProfile_conf_", ""); Path credsPath = Files.createTempFile("testCreateDestroyProfile_ValidProfile_creds_", ""); Files.write(credsPath, Arrays.asList("[default]")); // Contains a section header but no actual credentials @@ -297,18 +300,18 @@ public void testCreateDestroyProfile_MissingCreds() throws ExecutionException, I .withConfigFileNameOverride(confPath.toString()).withCredentialsFileNameOverride(credsPath.toString()); try (ProfileCredentialsProvider provider = builder.build()) { - assertNotNull(provider); + assertNotNull("provider is null", provider); assertTrue(provider.getNativeHandle() != 0); try { provider.getCredentials().join(); fail("Expected credential fetching to throw an exception since creds are missing from profile"); } catch (CompletionException e) { - assertNotNull(e.getCause()); + assertNotNull("exception is null", e.getCause()); Throwable innerException = e.getCause(); // Check that the right exception type caused the completion error in the future - assertTrue(innerException.getMessage().contains("Parser encountered an error")); + assertEquals(innerException.getMessage(), "Valid credentials could not be sourced by a profile provider"); assertEquals(CrtRuntimeException.class, innerException.getClass()); } } finally {