PASS test/defaultRoleAssumers.spec.ts
getDefaultRoleAssumer
✓ should use supplied source credentials (59 ms)
✓ should return accountId in the credentials (7 ms)
✓ should use the STS client config (64 ms)
✓ should use the parent client config (13 ms)
✓ should use the STS client middleware (5 ms)
getDefaultRoleAssumerWithWebIdentity
✓ should use the STS client config (18 ms)
✓ should return accountId in the credentials (4 ms)
✓ should use the STS client middleware (6 ms)
Test Suites: 1 passed, 1 total
Tests: 8 passed, 8 total
Snapshots: 0 total
Time: 2.76 s, estimated 4 s
Ran all test suites.
Done in 3.48s.
- [x] SSO
```console
PASS src/isSsoProfile.spec.ts (5.651 s)
PASS src/validateSsoProfile.spec.ts (5.806 s)
PASS src/fromSSO.spec.ts (5.911 s)
PASS src/resolveSSOCredentials.spec.ts (6.007 s)
Test Suites: 4 passed, 4 total
Tests: 33 passed, 33 total
Snapshots: 0 total
Time: 6.34 s, estimated 7 s
Ran all test suites.
Done in 7.00s.
Test Suites: 8 passed, 8 total
Tests: 91 passed, 91 total
Snapshots: 0 total
Time: 9.109 s, estimated 10 s
Ran all test suites.
Done in 9.63s.
- [x] Process
```console
PASS src/getValidatedProcessCredentials.spec.ts
PASS src/resolveProcessCredentials.spec.ts
PASS src/fromProcess.spec.ts
Test Suites: 3 passed, 3 total
Tests: 17 passed, 17 total
Snapshots: 0 total
Time: 4.939 s, estimated 5 s
Ran all test suites.
Done in 5.44s.
[x] Env
PASS src/fromEnv.spec.ts
fromEnv
✓ should read credentials from known environment variables (4 ms)
✓ can create credentials without a session token, accountId, or expiration (1 ms)
✓ should include accountId when it is provided in environment variables (1 ms)
✓ should not include accountId when it is not provided in environment variables (1 ms)
✓ throws if env['AWS_ACCESS_KEY_ID'] is not found (1 ms)
✓ throws if env['AWS_SECRET_ACCESS_KEY'] is not found
Test Suites: 1 passed, 1 total
Tests: 6 passed, 6 total
Snapshots: 0 total
Time: 3.716 s
Ran all test suites.
Done in 4.33s.
- [x] Container (PR: https://github.com/smithy-lang/smithy-typescript/pull/1247)
```console
PASS packages/credential-provider-imds/src/remoteProvider/ImdsCredentials.spec.ts
isImdsCredentials
✓ should accept valid ImdsCredentials objects (1 ms)
✓ should reject credentials without an AccessKeyId
✓ should reject credentials without a SecretAccessKey
✓ should reject credentials without a Token
✓ should reject credentials without an Expiration
✓ should reject scalar values
fromImdsCredentials
✓ should convert IMDS credentials to a credentials object (1 ms)
✓ should convert IMDS credentials to a credentials object without accountId when it's not provided (1 ms)
Test Suites: 1 passed, 1 total
Tests: 8 passed, 8 total
Snapshots: 0 total
Time: 3.257 s, estimated 4 s
Issue
Internal JS-4633 Part 1
Description
Sources accountId from credential providers.
Test Suites: 1 passed, 1 total Tests: 8 passed, 8 total Snapshots: 0 total Time: 2.76 s, estimated 4 s Ran all test suites. Done in 3.48s.
Test Suites: 8 passed, 8 total Tests: 91 passed, 91 total Snapshots: 0 total Time: 9.109 s, estimated 10 s Ran all test suites. Done in 9.63s.
Test Suites: 1 passed, 1 total Tests: 6 passed, 6 total Snapshots: 0 total Time: 3.716 s Ran all test suites. Done in 4.33s.
PR to update
AwsCredentialIdentity
interface: https://github.com/smithy-lang/smithy-typescript/pull/1240Testing
To-Do:
AwsCredentialIdentity
interface PR above.spec.ts
forclient-sts
fromcodegen
dir manually (test file isn't being copied properly)By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.