Hello again. We're using rest-assured to test our object storage cloud solution and most of our tests are successful but when we attempt to upload an object with a length that's greater than the maximum permitted by the system the test fails. Here's the code we've been using:--
given().spec(adminAStroageAccessBasicAuth)).
contentType(ContentType.BINARY).
content(new BufferedInputStream(new FileInputStream(file))).
when().
put("/" + containerName + "/" + testFile6G).
then().
statusCode(413);
What's interesting is that the file completes upload, then the backend responds with a '413' error. I think I have a theory for this behaviour, it's because an incorrect value for Content-Length is being sent in the 'PUT', the value I captured with Wireshark is '0'.
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.