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
5. Ensure unit tests for each resource (located in `[resource-folder]/test/index.test.ts)` are updated and successful.
24
+
5. Ensure unit tests for each resource (located in `/test/[resource-folder]/index.test.ts)` are updated and successful.
25
25
- Run unit tests with `npx projen test` inside the resource folder
26
26
```
27
27
# if you created an L1 resource
28
-
cd cdk/cdk-resouces/[resource-folder]
28
+
cd test/l1-resources/[resource-folder]
29
29
30
30
# if you created an L2 resource
31
-
cd cdk/l2-cdk-resources/[resource-folder]
31
+
cd test/l2-resources/[resource-folder]
32
32
33
33
# if you created an L3 resource
34
-
cd cdk/l3-cdk-resources/[resource-folder]
34
+
cd test/l3-resources/[resource-folder]
35
35
36
36
npx projen test
37
37
```
38
38
39
39
## Testing the resource in a CFN stack:
40
-
1. Build the construct by running `npx projen build` inside the `[resource-folder]`.
41
-
2. Navigate inside `/[resource-folder]/dist/js` and copy the`.tgz` file. You will use this in the next steps.
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.
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)):
* Human-readable label that indicates whether the new database user authenticates with the Amazon Web Services (AWS) Identity and Access Management (IAM) credentials associated with the user or the user's role.
19
+
* Human-readable label that indicates whether the new database user authenticates with the Amazon Web Services (AWS) Identity and Access Management (IAM) credentials associated with the user or the user's role. Default value is `NONE`.
* MongoDB database against which the MongoDB database user authenticates. MongoDB database users must provide both a username and authentication database to log into MongoDB.
26
+
* MongoDB database against which the MongoDB database user authenticates. MongoDB database users must provide both a username and authentication database to log into MongoDB. Default value is `admin`.
* Human-readable label that represents the user that authenticates to MongoDB.
82
+
* Human-readable label that represents the user that authenticates to MongoDB. The format of this label depends on the method of authentication. This will be USER_ARN or ROLE_ARN if AWSIAMType is USER or ROLE. Refer https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Database-Users/operation/createDatabaseUser for details.
83
83
*
84
84
* @schema CfnDatabaseUserProps#Username
85
85
*/
86
86
readonlyusername: string;
87
87
88
88
/**
89
-
* Profile used to provide credentials information, (a secret with the cfn/atlas/profile/{Profile}, is required), if not provided default is used
89
+
* Profile used to provide credentials information, (a secret with the cfn/atlas/profile/{Profile}, is required), if not provided `default` is used
90
90
*
91
91
* @schema CfnDatabaseUserProps#Profile
92
92
*/
@@ -177,7 +177,7 @@ export function toJson_LabelDefinition(
177
177
/* eslint-enable max-len, quote-props */
178
178
179
179
/**
180
-
* Method by which the provided username is authenticated. If no value is given, Atlas uses the default value of NONE.
180
+
* Method by which the provided username is authenticated. Default value is `NONE`.
0 commit comments