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
stale-issue-message: 'This issue has gone 30 days without any activity and meets the project’s definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!'
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.
*Note:* Upgrades to or from flex clusters are currently unavailable. We expect to support upgrades to or from flex clusters in the forseeable future.
116
118
117
119
*Important:* Use the `CfnCluster` resource instead of the [CfnFlexCluster](https://github.com/mongodb/awscdk-resources-mongodbatlas/blob/main/src/l1-resources/flex-cluster/README.md) resource to create and manage flex clusters. `CfnCluster` supports flex clusters and future upgrades will only be available through this resource.
@@ -128,4 +130,4 @@ This library is auto-generated and published to all supported programming langua
0 commit comments