Skip to content

test(eventBridge): add regression test for content filtering operators in event patterns#729

Open
VirtueMe wants to merge 1 commit intomasterfrom
test-513-eventbridge-content-filter
Open

test(eventBridge): add regression test for content filtering operators in event patterns#729
VirtueMe wants to merge 1 commit intomasterfrom
test-513-eventbridge-content-filter

Conversation

@VirtueMe
Copy link
Copy Markdown
Collaborator

What

Adds a regression test covering EventBridge content filtering operators (prefix, numeric, exists, anything-but) in event patterns for both cloudwatchEvent and eventBridge event sources.

Why

Content filtering was reported as missing in #513, but the feature already works — the event object is serialised directly via JSON.stringify with no schema restriction on its shape, so all EventBridge content filtering operators pass through unchanged.

No test existed to confirm this or guard against a future regression.

Closes #513

Test plan

  • New itParam test covering both cloudwatchEvent and eventBridge sources with prefix, numeric, exists, and anything-but operators
  • npm test — 499 passing

🤖 Generated with Claude Code

…s in event patterns

Verifies that content filtering patterns (prefix, numeric, exists,
anything-but) pass through compilation unchanged into the EventPattern
property of the generated AWS::Events::Rule resource.

The feature was already supported via direct JSON serialisation of the
event object — this test guards against a future regression.

Closes #513

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/serverless-operations/serverless-step-functions@729

commit: f6df7f3

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.

Add content filtering to event patterns

1 participant