You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TESTING.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ npx projen test
38
38
39
39
## Testing the resource in a CFN stack:
40
40
1. Build the construct by running `npx projen build`.
41
-
2.Navigate inside `/dist/js` and copy the`.tgz` file. You will use this in the next steps.
41
+
2.It will generate a `.tgz` file in `dist/js` that we will reference later.
42
42
3. Create a CDK test app: We will be using a CDK app to test our construct by using the app to create, update and delete AWS CloudFormation stacks.
43
43
Create the CDK app by running the following in a terminal: ([refer AWS walkthrough for details](https://docs.aws.amazon.com/cdk/v2/guide/hello_world.html#hello_world_tutorial_create_app)):
5. Import your CDK construct in a testing project.
53
56
6. Use the construct in your app with appropriate parameters.
54
-
-[Optional, not applicable for L2/L3 constructs] If you need help getting test parameters to use with the constructs you can use `./cfn-resources/cfn-testing-helper.sh`. Refer “Getting test parameters” for creating a stack here for details.
55
57
7. Build your app again.
56
58
57
59
#### Create a stack:
@@ -79,4 +81,4 @@ cdk deploy
79
81
2. Stack **Outputs** should show required data correctly.
80
82
3.**Create** - Stack should complete successfully and resource should be created and correctly configured in Atlas account.
81
83
4.**Update** - Stack should complete successfully and resource should be updated and correctly configured in Atlas account.
82
-
5.**Delete** - Stack should complete successfully and resource should be deleted from your Atlas account.
84
+
5.**Delete** - Stack should complete successfully and resource should be deleted from your Atlas account.
This library is auto-generated and published to all supported programming languages by the [cdklabs/cdk-cloudformation] project based on the API schema published for `MongoDB::Atlas::Cluster`.
@@ -102,4 +121,4 @@ This library is auto-generated and published to all supported programming langua
0 commit comments