Hi I am new to contract testing. We have couple of...
# general
b
Hi I am new to contract testing. We have couple of api which requires client to upload binary stream data (Not Multipart uploads) we want to implement bi-directional contract testing for this api's . Is this recommended ? If yes we are not able to verify open api specification files with Dredd or Schemathesis . Is there any other tools we can use to verify oas file with provider implementation?
m
You can use any tool you want to verify your API, we just have a few different examples. There are literally 100s of them so pick which ever works for you
b
Hi Thanks for the response, Can you please provide a tool name which can verify image,pdf uploads (binary streams) without base64 encoding , with provider api ?
m
ReadyAPI is a powerful tool
Have you looked at any here: https://openapi.tools/
b
Hi Matt Yes I have looked at https://openapi.tools/ page and so many tools does not support uploading image and pdf files as a binary streams. Few of them encoding files as base64 strings. Our provider does not support this.
m
Are you trying to validate the payload itself? i.e. check the binary contents is correct?
I’m not sure how useful that test is, at least as a contract test
b
Nope I am trying to validate the provider response that is aligned with the documented open api specification. Our Provider accepts image/jpeg and application/pdf content types in binary streams. When we used dredd to validate the response we are getting 5xx series error due to base64 encoding. Are there any other tools that we can use to validate open api specification files with provider response that encode as binary streams.
We want to validate the Request and response of provider api not the binary content validation.
m
In any case, you’ll need to go digging to find tools that support your use case - google is your friend 😉
b
Thanks Matt I will look into this. Have a good day.
🙌 1