Skip to content

ESM v2: Add EventSourceMappingArn field #11675

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 4 commits into from
Oct 17, 2024
Merged

ESM v2: Add EventSourceMappingArn field #11675

merged 4 commits into from
Oct 17, 2024

Conversation

gregfurman
Copy link
Contributor

@gregfurman gregfurman commented Oct 11, 2024

Motivation

This PR introduces increases parity with AWS by includng a new field in ESM responses.

Changes

  • Add new EventSourceMappingArn field to config:
    • Skips this field for tests where parity snapshots are not yet updated and for appropriate ESM v1 cases.
    • Changes transformer settings in ESM's conftest.py to better cater for this case of multiple UUIDs being snapshot.

@gregfurman gregfurman added aws:lambda AWS Lambda semver: patch Non-breaking changes which can be included in patch releases labels Oct 11, 2024
@gregfurman gregfurman added this to the 4.0 milestone Oct 11, 2024
@gregfurman gregfurman self-assigned this Oct 11, 2024
@@ -21,6 +21,6 @@ def snapshot(request, _snapshot_session: SnapshotSession, account_id, region_nam
RegexTransformer(f"arn:{get_partition(region_name)}:", "arn:<partition>:"), priority=2
)

_snapshot_session.add_transformer(SNAPSHOT_BASIC_TRANSFORMER_NEW, priority=2)
_snapshot_session.add_transformer(SNAPSHOT_BASIC_TRANSFORMER_NEW, priority=0)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The uuid of each ESM was being snapshot as a resource, this priority ordering change fixes that.

Copy link

github-actions bot commented Oct 11, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 40m 49s ⏱️ - 1m 6s
3 496 tests ±0  3 083 ✅ ±0  413 💤 ±0  0 ❌ ±0 
3 498 runs  ±0  3 083 ✅ ±0  415 💤 ±0  0 ❌ ±0 

Results for commit 5242c7b. ± Comparison against base commit ed6f7ec.

♻️ This comment has been updated with latest results.

@gregfurman gregfurman changed the title ESM-v2: Parity improvements and more behaviour testing ESM v2: Add EventSourceMappingArn field Oct 14, 2024
@gregfurman gregfurman force-pushed the add/esm/new-fields branch 2 times, most recently from 336edd5 to ba5069a Compare October 14, 2024 19:16
@gregfurman gregfurman marked this pull request as ready for review October 15, 2024 08:07
Copy link
Member

@pinzon pinzon left a comment

Choose a reason for hiding this comment

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

The changes looks good, just wondering why the attribute wasn't in the snapshots?

@gregfurman
Copy link
Contributor Author

@pinzon The EventSourceMappingArn field was only added a couple of days ago 🫠

@gregfurman gregfurman requested a review from pinzon October 17, 2024 08:53
Copy link
Member

@pinzon pinzon left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

@gregfurman gregfurman merged commit 46b1f5e into master Oct 17, 2024
34 checks passed
@gregfurman gregfurman deleted the add/esm/new-fields branch October 17, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:lambda AWS Lambda semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants