dwyl / dwyl/imgup

How to test S3 image uploading on your project?

Open
#43 2 comments 0 reactions 1 assignee Claimed by @Cleop View on GitHub
enhancement help wanted question starter technical
Dominant language
Elixir
Stars
108
Forks
20
Avg merge
21h 46m
Merged PRs (30d)
4

Description

How should we test the image uploading functionality on a project?

I can see this nightwatch example on this repo:
https://github.com/dwyl/image-uploads/blob/master/examples/sdk-upload/test/e2e/sdk-upload.test.js

However my concern is that every time you perform this test you are uploading a new file to S3. Unless someone in a team remembers to delete the test files on a regular basis you could end up with a lot of files. This comes as a cost on S3 if it was a large amount of data being stored.

Would it be possible/better to delete the files once they're uploaded? Or can we mock the upload in some way but still test it?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.