fix: update DefaultAwsCredentialsManager tests for new AWS SDK internals

The AWS SDK now uses @aws-sdk/nested-clients/sts internally in
fromTemporaryCredentials, so the tests need to mock both the regular
and nested STS clients. Also adapts to the new $source metadata on
credentials and the new @smithy/shared-ini-file-loader for ini profile
mocking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
This commit is contained in:
Fredrik Adelöw
2026-03-06 13:54:19 +01:00
parent 7a1278bc0b
commit f3f5cac4d1
3 changed files with 86 additions and 54 deletions
+1
View File
@@ -4429,6 +4429,7 @@ __metadata:
"@backstage/config-loader": "workspace:^"
"@backstage/errors": "workspace:^"
"@backstage/test-utils": "workspace:^"
"@smithy/shared-ini-file-loader": "npm:^4.4.6"
aws-sdk-client-mock: "npm:^4.0.0"
aws-sdk-client-mock-jest: "npm:^4.0.0"
languageName: unknown