rubenkaiser / serverless-offline-eventBridge

A serverless offline plugin that enables eventBridge events
57 stars 33 forks source link

Anything-but filter in the event source not working #94

Open ebarriosjr opened 3 hours ago

ebarriosjr commented 3 hours ago

I have a case where I am adding:

  events: [
                {
                    eventBridge: {
                        pattern: {
                            'detail-type': ['item.detail'],
                            source: [{ 'anything-but': ['com.example.pepe'] }],
                        },
                    },
                },
            ],

But the messages sent with this source, are actually triggering my handler.

Is this a known bug?

rubenkaiser commented 2 hours ago

Checking the code I believe to have found the bug. I've just published a beta version. Can you verify that this works properly?

https://www.npmjs.com/package/serverless-offline-aws-eventbridge/v/2.2.3-beta.0

ebarriosjr commented 1 hour ago

Sadly no, the bug still persists. When I trigger the event I get into an infinite loop.