Testing using the sdk-upload using Hapi's server.inject #37
Labels
enhancement
New feature or enhancement of existing functionality
help wanted
If you can help make progress with this issue, please comment!
question
A question needs to be answered before progress can be made on this issue
We are not using nightwatch in our project at the moment, but the tests in the sdk-upload example are only done using nightwatch. It would be really helpful to see another way to test this upload method.
We are using Hapi's
server.inject
method and after a lot of playing around, eventually managed to upload a file; we only managed this with a .txt file. There are a couple of working examples linked at the bottom which may hold the solution.Here is a link to the PR on my project that contains the image upload with a test that successfully uploads a file to our S3 bucket using server.inject.
I thought it would be useful to copy our method into an issue here, and we can develop it as and when we work out a better/more comprehensive way of testing
This test passes, the payload string was taken and adapted from this issue on the hapi repo
It looks like there might be a slightly simpler way of testing the file upload in this issue
Finally this is a working example of the potentially more simple way of solving this problem
The text was updated successfully, but these errors were encountered: