Skip to content

Commit 644b57b

Browse files
committed
Fix test and add changelogs
1 parent de45953 commit 644b57b

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "bugfix",
3+
"category": "AWS SDK for Java v2",
4+
"contributor": "",
5+
"description": "Fix credential reloading in defaults when shared credential/config files are modified."
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "bugfix",
3+
"category": "AWS SDK for Java v2",
4+
"contributor": "",
5+
"description": "Gracefully handle missing file in ProfileFileSupplier.reloadWhenModified."
6+
}

core/profiles/src/test/java/software/amazon/awssdk/profiles/ProfileFileSupplierTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,9 @@ public void defaultSupplier_noCredentialsFiles_returnsEmptyProvider() {
593593
}
594594

595595
@Test
596-
public void reloadWhenModified_noCredentialsFiles_returnsEmptyProvider_andRefreshes() {
596+
public void reloadWhenModified_noCredentialsFiles_returnsEmptyProvider_andRefreshes() throws IOException {
597597
Path credentialsFilePath = getTestCredentialsFilePath();
598+
Files.deleteIfExists(credentialsFilePath);
598599

599600
AdjustableClock clock = new AdjustableClock();
600601
ProfileFileSupplier supplier = builderWithClock(clock)

0 commit comments

Comments
 (0)