Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: unit test the aws module #44

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
591220f
chore: create release branches for v2 and v3
TheRealAmazonKendra Aug 5, 2024
bf4baf3
chore(deps): upgrade dependencies (#4)
aws-cdk-automation Aug 6, 2024
37b9c05
chore(deps): upgrade dependencies (#6)
aws-cdk-automation Aug 7, 2024
0471c78
chore(deps): upgrade dependencies (#8)
aws-cdk-automation Aug 8, 2024
858b890
chore(deps): upgrade dependencies (#10)
aws-cdk-automation Aug 9, 2024
d3ebf87
chore(deps): upgrade dependencies (#12)
aws-cdk-automation Aug 10, 2024
8193654
chore(deps): upgrade dependencies (#14)
aws-cdk-automation Aug 11, 2024
22c788e
chore(deps): upgrade dependencies (#16)
aws-cdk-automation Aug 13, 2024
ef81c90
chore(deps): upgrade dependencies (#19)
aws-cdk-automation Aug 13, 2024
f4629fd
chore(deps): upgrade dependencies (#21)
aws-cdk-automation Aug 15, 2024
bffb501
chore(deps): upgrade dependencies (#23)
aws-cdk-automation Aug 16, 2024
44047f8
chore(deps): upgrade dependencies (#25)
aws-cdk-automation Aug 17, 2024
bc6b26c
chore(deps): upgrade dependencies (#27)
aws-cdk-automation Aug 18, 2024
7e83fd8
chore(deps): upgrade dependencies (#30)
aws-cdk-automation Aug 20, 2024
27c2071
chore(deps): upgrade dependencies (#32)
aws-cdk-automation Aug 21, 2024
ecd13a1
chore(deps): upgrade dependencies (#34)
aws-cdk-automation Aug 22, 2024
e32e763
chore(deps): upgrade dependencies (#36)
aws-cdk-automation Aug 23, 2024
3051c9c
chore(deps): upgrade dependencies (#39)
aws-cdk-automation Aug 24, 2024
38b00c6
chore(deps): upgrade dependencies (#43)
aws-cdk-automation Aug 26, 2024
dd58897
mid work
iliapolo Aug 26, 2024
5d22e4e
mid work
iliapolo Aug 26, 2024
3e28218
chore(deps): upgrade dependencies (#46)
aws-cdk-automation Aug 27, 2024
28d1a9b
Merge branch 'main' into epolon/aws-client-tests
iliapolo Aug 27, 2024
cdd8cf9
mid work
iliapolo Aug 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 78 additions & 0 deletions .github/workflows/release-v2-main.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

89 changes: 89 additions & 0 deletions .github/workflows/upgrade-v2-main.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 35 additions & 6 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import { typescript } from 'projen';
const project = new typescript.TypeScriptProject({
defaultReleaseBranch: 'main',
name: 'cdk-assets',
projenrcTs: true,
publishDryRun: true,
defaultReleaseBranch: 'main',
majorVersion: 3,
prerelease: 'rc',
releaseBranches: {
'v2-main': {
majorVersion: 2,
},
},
autoApproveUpgrades: true,
autoApproveOptions: {
allowedUsernames: ['aws-cdk-automation'],
Expand Down Expand Up @@ -31,6 +38,7 @@ const project = new typescript.TypeScriptProject({
'@types/glob',
'@types/mime',
'@types/yargs',
'@types/mock-fs',
'fs-extra',
'graceful-fs',
'jszip',
Expand Down
6 changes: 4 additions & 2 deletions jest.config.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/aws.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as os from 'os';
import type { ClientConfiguration as STSClientConfiguration } from 'aws-sdk/clients/sts';

/**
* AWS SDK operations required by Asset Publishing
Expand Down Expand Up @@ -111,7 +112,7 @@ export class DefaultAwsClient implements IAws {
};
}

private async awsOptions(options: ClientOptions) {
private async awsOptions(options: ClientOptions): Promise<STSClientConfiguration> {
let credentials;

if (options.assumeRoleArn) {
Expand Down
Loading