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 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 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 {