DataDog / datadog-cdk-constructs

CDK construct library to automagically instrument your Lambda functions with Datadog
Apache License 2.0
65 stars 28 forks source link

chore: Refactor run_integration_tests.sh by adding stack language check #305

Closed lym953 closed 1 month ago

lym953 commented 1 month ago

Background

Motivation

The test only covers TypeScript stacks. We want to cover Python and Go stacks as well to prevent issues like https://github.com/DataDog/datadog-cdk-constructs/issues/294, where the Python package was broken.

What does this PR do?

  1. Move the Typescript stacks to a typescript/ directory
  2. Make run_integration_tests.sh check the language of each stack, instead of assuming all stacks are in Typescript. Make the script require that path of a typescript stack should be like typescript/<name>.ts.

Testing Guidelines

Run aws-vault exec sso-serverless-sandbox-account-admin -- scripts/run_integration_tests.sh. It finished successfully and the output was same as before.

Additional Notes

Types of Changes

Check all that apply