kurtosis-tech / kurtosis

A platform for packaging and launching ephemeral backend stacks with a focus on approachability for the average developer.
https://docs.kurtosistech.com/
Apache License 2.0
352 stars 47 forks source link

Need to submit binary content through a multi part POST call in Starlark #511

Open adschwartz opened 1 year ago

adschwartz commented 1 year ago

Background & motivation

I'd like to upload a binary (a jar file) using PostHttpRequestRecipe but I can use it for several reasons:

While I can set the content_type to be a binary format, I cannot do a multi-part upload of a binary since the body is expected to String. While the returned content of the POST I need to make is a json structure, we should generally not always assume that to be the case. It's possible a service can return any type of data.

Desired behaviour

The PostHttpRequestRecipe supports POSTing and receiving back any form of data (to and from the endpoint).

How important is this to you?

Critical; Kurtosis is unusable for me without it.

adschwartz commented 1 year ago

We want to do this ticket but it's not so urgent that the on call must handle it. We can move it to the front burner