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: integration-tests/README.md
+26-57Lines changed: 26 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,91 +4,60 @@ This directory contains integration tests for the Datadog Lambda Extension.
4
4
5
5
The general flow is:
6
6
1. Deploy test setup using CDK.
7
-
2. Invoke lambda function.
8
-
3.Call Datadog to get telemetry data.
9
-
4. Check telemtry data based on test requirements.
7
+
2. Invoke lambda functions.
8
+
3.Wait ~10 minutes for data to propagate to Datadog.
9
+
3. Call Datadog to get telemetry data and check the data based on test requirements.
10
10
11
11
For simplicity, integraiton tests are setup to only test against ARM runtimes.
12
12
13
-
### Local Development
13
+
##Guidelines
14
14
15
-
1.**Datadog API Keys**: Set environment variables
15
+
### Naming
16
+
* An `identifier` is used to differentiate the different stacks. For local development, the identifier is automatically set using the command `whoami` and parses the user's first name. For gitlab pipelines, the identifier is the git commit short sha.
17
+
* Stacks should be named `integ-<identifier>-<stack name>`
18
+
* Lambda functions should be named `<stack-id>-<function name>`
19
+
20
+
### Stacks
21
+
* Stacks automatically get deployed as part of the gitlab integration pipeline. Stack should be setup to not retain resources. A helper function `createLogGroup` exists with `removalPolicy: cdk.RemovalPolicy.DESTROY`.
22
+
23
+
24
+
## Local Development
25
+
26
+
### Prerequisites Set env variables
27
+
**Datadog API Keys**: Set environment variables
16
28
```bash
17
29
export DD_API_KEY="your-datadog-api-key"
18
30
export DD_APP_KEY="your-datadog-app-key"
19
-
```
20
-
21
-
2.**AWS Secrets Manager**: You need a secret ARN for the Datadog API key that Lambda functions will use
0 commit comments