Phoenix controller test for chunked multipart upload

I’ve created a Phoenix controller that accepts a chunked multipart upload on a given endpoint that I’m using to stream logs from a remote process in real time. The endpoint seems to be working find when I use curl to stream data over but I’d like to write a unit test for my controller. I’m having a hard time figuring out how to do this from within a unit test using Phoenix.ConnTest and friends. Since the unit tests don’t seem to start a real server, I can’t rely on HTTPoison or spawn an external curl command to simulate a log stream. I’ve found plenty of examples for file upload via forms but haven’t found anything related to streaming a body using ConnTest.

1 Like

FWIW, I ended up switching to using a websocket for various reasons. Never ended up finding a solution to this particular issue.