jeudi 1 avril 2021

Writing tests for proxy

I have a specific test case. I am writing a test in which I need to send a message via http to a proxy which forwards the message to the endpoint. However, I know that after sending it I will not get any response for the http client, which leads to an error, because the framework used for testing requires this response for the client.

One idea is to create a proxy that will forward the message during testing and return OK as a response.

My question is, are you able to recommend any effective solution to such a problem or any suggestions for solving it?

Aucun commentaire:

Enregistrer un commentaire