Skip to content

Conversation

maxhoheiser
Copy link
Member

Motivation

Keep test cleanly separated into separate test files where reasonable to improve readability of test files.
We have a separate test file for testing event bridge targets.
It also makes sense to separate API endpoints and connections functionality in a separate test file.

Changes

  • move all tests of api functionality of custom connections and api endpoints to separate file
  • move test api endpoint end to end with event to target test file

@maxhoheiser maxhoheiser added aws:events Amazon EventBridge semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases labels Dec 6, 2024
@maxhoheiser maxhoheiser requested a review from zaingz December 6, 2024 17:12
@maxhoheiser maxhoheiser self-assigned this Dec 6, 2024
@maxhoheiser maxhoheiser requested a review from joe4dev as a code owner December 6, 2024 17:12
Copy link

github-actions bot commented Dec 6, 2024

LocalStack Community integration with Pro

    2 files      2 suites   1h 52m 41s ⏱️
3 893 tests 3 583 ✅ 310 💤 0 ❌
3 895 runs  3 583 ✅ 312 💤 0 ❌

Results for commit f4d8f31.

♻️ This comment has been updated with latest results.

policyName=policy_name, policyDocument=json.dumps(resource_policy)
)
class TestEventsTargetApiDestination:
# TODO validate against AWS
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a particular reason for not validating against AWS? I would prefer to validate it against AWS so we don't have to revisit this.

Copy link
Member Author

Choose a reason for hiding this comment

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

this pr is only refactoring no changes per see - also would be great if you can do this since you are now more familiar with this test and API endpoints

@maxhoheiser maxhoheiser requested a review from zaingz December 9, 2024 11:46
@maxhoheiser maxhoheiser force-pushed the refactor/events/custom-api-destination-tests branch from 8b9c3bd to 382cc1c Compare December 13, 2024 10:58
@maxhoheiser maxhoheiser merged commit 072d250 into master Dec 16, 2024
31 checks passed
@maxhoheiser maxhoheiser deleted the refactor/events/custom-api-destination-tests branch December 16, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:events Amazon EventBridge semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants