citrusframework / citrus

Framework for automated integration tests with focus on messaging integration
https://citrusframework.org
Apache License 2.0
445 stars 135 forks source link

Fix: use explicitly declared values instead of random values (OpenAPI) #1169

Closed ueberfuhr closed 3 weeks ago

ueberfuhr commented 1 month ago

When generating the request message, random data is used for the payload and for parameters - even when values are explicitly specified. I changed this behavior to prefer explicitly declared values and to skip random data generation in this case.

Resolves #1168

bbortt commented 1 month ago

I think that a test would do good here too.. but honestly, I have no clue if something exists at all. did you check @ueberfuhr?

ueberfuhr commented 3 weeks ago

@bbortt - I have added a test. Please review.