moto/moto/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 Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
exceptions.py Pylinting on moto/d and moto/e directories (#4728) 2021-12-28 21:26:56 -01:00
models.py Fix Exists pattern matching with None values (#5134) 2022-05-13 15:06:48 -07:00
responses.py Pylint - Enable more rules on source and tests-directory (#4929) 2022-03-11 20:28:45 -01:00
urls.py Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
utils.py Paginator - make development easier + docs (#4650) 2021-12-03 15:33:35 -01:00