I have a canister that I want to test that makes HTTP outcalls. This service is an external one that I want to mock out and respond to the canister without actually hitting the service. Is this possible? If so, how?
One alternative I considered is to use compile time environment variables (option_env! in rust) for testing, but that has a lot of overhead like actually running an HTTP(s?) server. This overhead wouldn’t exist if I can intercept the call right from pocket_ic and tell it how to respond to the canister