We have an API endpoint which accepts only zip and I tried uploading with application/zip and application/x-zip-compressed but I always get "java.net.SocketException: Software caused connection abort: socket write error"
Below is the scenario:
'''Scenario: upload.feature: Verify upload Given def reqPaylod = read ('mtm//testdata//externalModelService//createModel.json') Given reqPaylod.name = "Sample"+now() Given path emsAPI,'models' Given request reqPaylod When method POST Then status 200 # Given path emsAPI,'models',$.id,'upload' # And multipart file File = { read: 'mpl_hate_speech_bert.zip',contentType:' multipart/form-data'} # And multipart field message = 'hello world' # And method post # Then status 200 Given path emsAPI,'models', 'binary' And param name = 'TestData.zip' And request read('TestData.zip') And method post Then status 200'''
The one commented and with binary were also tried. Both returned same error