Ben Eyres
03/30/2022, 5:44 PM.withFileUpload("file",
"some.json",
"multipart/form-data",
new byte[]{10,40,61,153,16})
but what im struggling with is how to add non-file key:values pairs? a curl example would be:
curl --location --request POST '<http://localhost:8888/v1/some/ep>' \
--form 'data1="abc"' \
--form 'data2="def' \ \
--form 'fileData=@"/some/file_dir/some_file.gz"'
Can anyone explain how i add data1
and data2
to my pact? Thanks a lot!uglyog
Ben Eyres
03/30/2022, 10:07 PMuglyog
uglyog
addTextBody
to add other parts to the requestBen Eyres
04/01/2022, 5:18 PMBen Eyres
04/05/2022, 5:34 PMBen Eyres
04/05/2022, 5:34 PMBen Eyres
04/05/2022, 5:49 PMuglyog
uglyog
Ben Eyres
04/05/2022, 11:31 PMWhat are you using to verify the provider?@uglyog Python's Pact Verifier cli tool
uglyog
Ben Eyres
04/05/2022, 11:32 PMBen Eyres
04/05/2022, 11:33 PMuglyog
uglyog
Ben Eyres
04/05/2022, 11:51 PMuglyog
Ben Eyres
04/06/2022, 6:08 AM