Closed binaryArrow closed 10 months ago
Hi @binaryArrow. Thank you for raising this. I'll do a bit of investigation and get back.
Support for configurable response codes is available starting with this commit : https://github.com/Endava/cats/commit/0bb6d87eeb90228f1ec85c04046bf5e988407179. And also in the next release.
nice!
Details about usage here: https://endava.github.io/cats/docs/advanced-topics/fuzzers-config
Issue While using CATS in my project, I've found it to be a valuable tool. However, a challenge has surfaced with the
AbugidasInStringFields
Fuzzer. This particular fuzzer anticipates an error code of400
, whereas my API, built withrestEasy
therefore implementingJAX-RS
, is designed to return a404
.For Example the fuzzer is applied to query parameters of type
string
with the formatdate
. As per the JAX-RS specification: Link to JAX-RS Specification, query parameters that don't conform to the specified type (in this case,date
) are expected to yield an error code of404
.This discrepancy arises because certain Field Fuzzers, including
AbugidasInStringFields
, anticipate an error code of400
, which contradicts the JAX-RS specification.Proposal Introduce configurability for expected error codes in Field Fuzzers.