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

Add EDA integration tests CDK Setup (EventBridge Consumer persistent solution) #14

Closed
san99tiago opened this issue Jun 5, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@san99tiago
Copy link
Owner

To the existing EDA example, add the "Infrastructure" for the Testing part

@san99tiago san99tiago added the enhancement New feature or request label Jun 5, 2024
@san99tiago san99tiago self-assigned this Jun 5, 2024
@san99tiago
Copy link
Owner Author

Close Issue by adding this commit:

Important:

  • This will enable the "integration tests CDK part", but the actual "code" to execute the int-tests is still required, which shuold be divided into two parts:
  • The DynamoDB Table items are saved in the table with TTL, so that they are automatically destroyed after 12 hours (to clean the test data after the tests are executed).
    • Part 1: Make sure that the SOURCE code when running the "integration tests" knows to update the "source" of the generated event to be tests, instead of the real source (could be driven by an ENV-VAR, or similar...)
    • Part 2: Add the code for the "integration tests", to execute the SOURCE code + the validation of fetching the DynamoDB table (with retries if possible), to assert that the expected event is saved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant