sergehuber opened a new pull request, #794:
URL: https://github.com/apache/unomi/pull/794
## Plain-language summary
Bad JSON sent to Unomi can crash a request with a server error instead of a
clear “bad request” response. This change adds automated integration tests that
send invalid payloads to the context API and to rule/segment create endpoints,
and check that Unomi returns HTTP 400.
These tests lock in the fixes from earlier REST error-handling work so the
same bugs do not come back in a release.
## What changed
* Added JSON fixtures for invalid context requests (garbage body, empty
event source/target), rules, and segments.
* Extended `InputValidationIT` with UNOMI-933 cases for `/context.json`.
* Added `RestCreateValidationIT` for POST `/cxs/rules` and `/cxs/segments`
returning 400 with `{"errorMessage":"badRequest"}`.
* Registered the new test class in `AllITs`.
## Test plan
- [x] `mvn test-compile` in `itests/` (local)
- [ ] Full PaxExam IT suite in CI
## References
UNOMI-933, UNOMI-934, UNOMI-935
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]