Skip to content

Commit 609dcec

Browse files
committed
Minor update to 'Testing AWS CDK applications' page
1 parent 4e0ff67 commit 609dcec

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

v2/best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ In general, environment variable lookups should be limited to the top level of a
102102

103103
### Unit test your infrastructure<a name="best-practices-constructs-test"></a>
104104

105-
To consistently run a full suite of unit tests at build time in all environments, avoid network lookups during synthesis and model all your production stages in code\. \(These best practices are covered later\.\) If any single commit always results in the same generated template, you can trust the unit tests that you write to confirm that the generated templates look the way you expect\. For more information, see [Testing constructs](testing.md)\.
105+
To consistently run a full suite of unit tests at build time in all environments, avoid network lookups during synthesis and model all your production stages in code\. \(These best practices are covered later\.\) If any single commit always results in the same generated template, you can trust the unit tests that you write to confirm that the generated templates look the way you expect\. For more information, see [Test AWS CDK applications](testing.md)\.
106106

107107
### Don't change the logical ID of stateful resources<a name="best-practices-constructs-logicalid"></a>
108108

v2/cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ The CDK CLI actually runs your app and synthesizes fresh templates before most o
326326

327327
See `cdk synth --help` for all available options\. A few of the most frequently used options are covered in the following section\.
328328

329-
### Specify context values<a name="w92aac61c33c11"></a>
329+
### Specify context values<a name="w92aac65c33c11"></a>
330330

331331
Use the `--context` or `-c` option to pass [runtime context](context.md) values to your CDK app\.
332332

@@ -345,15 +345,15 @@ When deploying multiple stacks, the specified context values are normally passed
345345
cdk synth --context Stack1:key=value Stack2:key=value Stack1 Stack2
346346
```
347347

348-
### Specify display format<a name="w92aac61c33c13"></a>
348+
### Specify display format<a name="w92aac65c33c13"></a>
349349

350350
By default, the synthesized template is displayed in YAML format\. Add the `--json` flag to display it in JSON format instead\.
351351

352352
```
353353
cdk synth --json MyStack
354354
```
355355

356-
### Specify the output directory<a name="w92aac61c33c15"></a>
356+
### Specify the output directory<a name="w92aac65c33c15"></a>
357357

358358
Add the `--output` \(`-o`\) option to write the synthesized templates to a directory other than `cdk.out`\.
359359

@@ -429,7 +429,7 @@ Git\-style wildcards, both `*` and `**`, can be used in the `"watch"` and `"buil
429429
**Important**
430430
Watch mode is not recommended for production deployments\.
431431

432-
### Specify AWS CloudFormation parameters<a name="w92aac61c35c19"></a>
432+
### Specify AWS CloudFormation parameters<a name="w92aac65c35c19"></a>
433433

434434
The CDK CLI supports specifying AWS CloudFormation [parameters](parameters.md) at deployment\. You may provide these on the command line following the `--parameters` flag\.
435435

@@ -451,7 +451,7 @@ cdk deploy MyStack YourStack --parameters MyStack:uploadBucketName=UploadBucket
451451

452452
By default, the AWS CDK retains values of parameters from previous deployments and uses them in later deployments if they are not specified explicitly\. Use the `--no-previous-parameters` flag to require all parameters to be specified\.
453453

454-
### Specify outputs file<a name="w92aac61c35c21"></a>
454+
### Specify outputs file<a name="w92aac65c35c21"></a>
455455

456456
If your stack declares AWS CloudFormation outputs, these are normally displayed on the screen at the conclusion of deployment\. To write them to a file in JSON format, use the `--outputs-file` flag\.
457457

v2/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ sponsored by Amazon.
6666
+ [Deploy AWS CDK applications](deploy.md)
6767
+ [AWS CDK policy validation at synthesis time](policy-validation-synthesis.md)
6868
+ [Continuous integration and delivery (CI/CD) using CDK Pipelines](cdk_pipeline.md)
69+
+ [Test AWS CDK applications](testing.md)
6970
+ [AWS CDK CLI reference](cli.md)
7071
+ [AWS CDK CLI command reference](ref-cli-cmd.md)
7172
+ [cdk acknowledge](ref-cli-cmd-ack.md)
@@ -91,7 +92,6 @@ sponsored by Amazon.
9192
+ [Example: Create a CDK app with multiple stacks](stack_how_to_create_multiple_stacks.md)
9293
+ [Example: Create an AWS Fargate service using the AWS CDK](ecs_example.md)
9394
+ [Use other tools with the AWS CDK](tools.md)
94-
+ [Testing constructs](testing.md)
9595
+ [Security for the AWS Cloud Development Kit (AWS CDK)](security.md)
9696
+ [Identity and access management for the AWS Cloud Development Kit (AWS CDK)](security-iam.md)
9797
+ [Compliance validation for the AWS Cloud Development Kit (AWS CDK)](compliance-validation.md)

v2/serverless_example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ CdkHelloWorldStack: destroying... [1/1]
14941494

14951495
## Troubleshooting<a name="serverless-example-troubleshooting"></a>
14961496

1497-
### Error: \{“message”: “Internal server error”\}%<a name="w92aac73c11c55b5"></a>
1497+
### Error: \{“message”: “Internal server error”\}%<a name="w92aac77c11c55b5"></a>
14981498

14991499
When invoking the deployed Lambda function, you receive this error\. This error could occur for multiple reasons\.
15001500

v2/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Testing constructs<a name="testing"></a>
1+
# Test AWS CDK applications<a name="testing"></a>
22

33
With the AWS CDK, your infrastructure can be as testable as any other code you write\. The standard approach to testing AWS CDK apps uses the AWS CDK's [assertions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.assertions-readme.html) module and popular test frameworks like [Jest](https://jestjs.io/) for TypeScript and JavaScript or [Pytest](https://docs.pytest.org/en/6.2.x/) for Python\.
44

0 commit comments

Comments
 (0)