Can I use Pactum to intercept HTTP requests ? #278
mihirsasmal
started this conversation in
General
Replies: 2 comments
-
It sounds like component testing. Please check the docs. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have a similar need to Mihir, have read the documentation (including component testing, mock servers, interaction handlers, ...), but still could not get it to work for my use case. My application receives a POST request, and in the background makes a POST request to an external service. I am trying to mock a response from that 2nd call, to validate the logic of the rest of my application. But that part does not seem to work. Is this something Pactum can do? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can I use Pactum to intercept HTTP requests ?
I have to test some interactions with external applications. I was hoping if I can intercept those HTTP requests to the external application and send my response back, then I can test my application services easily.
I was wondering whether pactum has that capability or not, I could not find anything similar in the documentation.
Hopefully, the community can provide an answer.
Thanks,
Mihir
Beta Was this translation helpful? Give feedback.
All reactions