moto/tests/test_events
Brian Pandola 30c2aeab29
Fix Exists pattern matching with None values (#5134)
Exists matching works on the presence or absence of a field in the JSON of the event.
The value of the field is not considered when evaluating a match.[1]

* Add sentinel to distinguish between missing fields and existing fields with None values
* Update event pattern matching tests to cover this specific use-case.
* Add integrated test to cover this scenario within a larger context.

[1]: https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html
2022-05-13 15:06:48 -07:00
..
__init__.py Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_event_pattern.py Fix Exists pattern matching with None values (#5134) 2022-05-13 15:06:48 -07:00
test_events_cloudformation.py Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
test_events_integration.py Fix Exists pattern matching with None values (#5134) 2022-05-13 15:06:48 -07:00
test_events.py events: delete_rule implementation update (#5056) 2022-04-24 10:03:28 +00:00