-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix CLI integration tests (#4198)
* chore: fix CLI integration tests Fix breakage introduced by #3782, which changed the wrong string. Update other expectation to match change introduced in #3772. * Use substitutions in error message * Rewrite how CLI tests are being run * Extract environment setup from tests * Need to not ignore integ test Javascript files
- Loading branch information
1 parent
bdae54f
commit 7ce8112
Showing
28 changed files
with
456 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,7 @@ dist | |
.LAST_PACKAGE | ||
.jsii | ||
|
||
*.tsbuildinfo | ||
*.tsbuildinfo | ||
|
||
# Include .jsii | ||
!.jsii |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,7 @@ dist | |
.LAST_PACKAGE | ||
.jsii | ||
|
||
*.tsbuildinfo | ||
*.tsbuildinfo | ||
|
||
# Include .jsii | ||
!.jsii |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,7 @@ dist | |
.LAST_PACKAGE | ||
.jsii | ||
|
||
*.tsbuildinfo | ||
*.tsbuildinfo | ||
|
||
# Include .jsii | ||
!.jsii |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,7 @@ dist | |
.LAST_PACKAGE | ||
.jsii | ||
|
||
*.tsbuildinfo | ||
*.tsbuildinfo | ||
|
||
# Include .jsii | ||
!.jsii |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ dist | |
*.snk | ||
|
||
!lib/init-templates/*/*/tsconfig.json | ||
!test/integ/cli/**/*.js | ||
|
||
*.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# CDK CLI Integration Tests | ||
|
||
These tests require AWS credentials, and exercise various aspects of the | ||
CLI on a simple JavaScript CDK app (stored in `app/`). | ||
|
||
## Entry point | ||
|
||
``` | ||
./test.sh | ||
``` | ||
|
||
## Configuration | ||
|
||
AWS credentials must be configured. | ||
|
||
Optional configuration: | ||
|
||
* `AWS_DEFAULT_REGION`, what region to deploy the stacks in. | ||
* `STACK_NAME_PREFIX`, used to run multiple instances of these tests in the | ||
same account side-by-side without them stepping on each other. Using | ||
a unique name on every run is risky since the account may overflow with | ||
stacks if cleanup happens to fail. Defaults based on the value of `IS_CANARY` | ||
if not supplied. | ||
* `IS_CANARY`, true or false. Affects the default stack name prefix to make | ||
integration test and canary runs unique. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.