Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add a missing TypeScript stack to integration test #306

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

lym953
Copy link
Contributor

@lym953 lym953 commented Oct 8, 2024

Background

run_integration_tests.sh runs cdk synth on a few example stacks, then compares the result with snapshots generated before, to check if a PR causes unexpected changes on the stack to be deployed.

Motivation

Right now the test script uses 8 example stacks. A stack lambda-function-stack-legacy-datadog-api.ts was added in #285, but it's not set up correctly to be used by the test script.

What does this PR do?

Make run_integration_tests.sh cover the new stack as well.

Testing Guidelines

aws-vault exec sso-serverless-sandbox-account-admin -- scripts/run_integration_tests.sh runs successfully.

Additional Notes

Types of Changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog

@lym953 lym953 requested a review from a team as a code owner October 8, 2024 20:14
Comment on lines +5 to +7
# aws-vault exec sso-serverless-sandbox-account-admin -- ./scripts/run_integration_tests.sh
# To regenerate snapshots:
# UPDATE_SNAPSHOTS=true aws-vault exec serverless-sandbox-account-admin -- ./scripts/run_integration_tests.sh
# UPDATE_SNAPSHOTS=true aws-vault exec sso-serverless-sandbox-account-admin -- ./scripts/run_integration_tests.sh
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing the wrong commands in doc

Base automatically changed from yiming.luo/python-stack-test-1 to main October 8, 2024 20:18
@lym953 lym953 force-pushed the yiming.luo/python-stack-test-2 branch from cd25993 to 11b23f2 Compare October 8, 2024 20:19
@lym953 lym953 changed the title Add a missing TypeScript stack to integration test chore: Add a missing TypeScript stack to integration test Oct 8, 2024
@lym953 lym953 merged commit 0415606 into main Oct 8, 2024
10 of 11 checks passed
@lym953 lym953 deleted the yiming.luo/python-stack-test-2 branch October 8, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants