Skip to content

Add tests which verify EventBridge rules behavior #6124

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

Merged
merged 11 commits into from
Jun 7, 2022

Conversation

lukqw
Copy link
Member

@lukqw lukqw commented May 23, 2022

This PR adds three tests which verify correct behavior of EventBridge rules:

@lukqw lukqw temporarily deployed to localstack-ext-tests May 23, 2022 10:19 Inactive
@github-actions
Copy link

github-actions bot commented May 23, 2022

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to LocalStack! Thanks for raising your first Pull Request and landing in your contributions. Our team will reach out with any reviews or feedbacks that we have shortly. We recommend joining our Slack Community and share your PR on the #community channel to share your contributions with us. Please make sure you are following our contributing guidelines and our Code of Conduct.

@lukqw
Copy link
Member Author

lukqw commented May 23, 2022

I have read the CLA Document and I hereby sign the CLA

@github-actions
Copy link

github-actions bot commented May 23, 2022

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 9m 46s ⏱️ + 11m 2s
1 086 tests +7  1 048 ✔️ +2  38 💤 +5  0 ±0 
1 386 runs  +7  1 321 ✔️ +2  65 💤 +5  0 ±0 

Results for commit 53c4a7f. ± Comparison against base commit b536b1f.

♻️ This comment has been updated with latest results.

Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

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

Good job tackling such a fairly complex case (in terms of testing) this early on.

Only the f-strings and the waiting need to be fixed for the approval, otherwise it's mostly just some notes and explanations 👍

logs_client.delete_log_stream(
logGroupName=log_group_name, logStreamName=log_stream["logStreamName"]
)
logs_client.delete_log_group(logGroupName=log_group_name)
Copy link
Member

Choose a reason for hiding this comment

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

This might actually be a good time to clean up the test_events.py file and bring it up to date in terms of testing patterns in a separate PR if you're interested 👍

Copy link
Member

Choose a reason for hiding this comment

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

small remark to the cleanup function (don't need to fix this): any exception in here will cause all cleanups afterwards to be skipped. This is mostly a problem when dealing with tests against AWS (e.g. when debugging). You'll be creating a lot of orphaned resources this way.

@lukqw lukqw temporarily deployed to localstack-ext-tests May 25, 2022 17:31 Inactive
@lukqw lukqw requested a review from dominikschubert May 25, 2022 17:41
@lukqw lukqw temporarily deployed to localstack-ext-tests May 27, 2022 09:51 Inactive
Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

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

minor nit regarding aggregating name generation in individual tests.

Otherwise LGTM 🥳 More parity coverage 📈

@lukqw lukqw temporarily deployed to localstack-ext-tests May 30, 2022 09:13 Inactive
@lukqw lukqw temporarily deployed to localstack-ext-tests May 30, 2022 09:27 Inactive
@lukqw lukqw temporarily deployed to localstack-ext-tests June 7, 2022 09:50 Inactive
@lukqw lukqw merged commit d37775a into master Jun 7, 2022
@lukqw lukqw deleted the events-test-rule-behavior branch June 7, 2022 12:51
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants