OpenOversight icon indicating copy to clipboard operation
OpenOversight copied to clipboard

Mock S3 with folder in dev/testing

Open redshiftzero opened this issue 9 years ago • 4 comments

In PR #169 I added this serve_image function in utils.py that generates a path for the files stored locally in the static/ folder. However in prod and staging images are actually stored on S3. It'd be nice to better mock the S3 setup in dev/testing to be as close as possible to prod/staging (suggested by @r4v5).

redshiftzero avatar Jan 24 '17 06:01 redshiftzero

It turns out that I didn't need this for the other issue, but for future reference, boto 1.10 has it's own nice stubber for s3.

raq929 avatar Jun 06 '18 18:06 raq929

Finishing this puppy up, encountering an unexpected error in test_functional but all other tests and functionality passes. Expect PR soon

fritzdavenport avatar Jul 28 '20 03:07 fritzdavenport

Finished - tests pass locally but die on Travis. Struggling with getting much info for it :/

fritzdavenport avatar Aug 14 '20 01:08 fritzdavenport

Hi @fritzdavenport. Thanks for your work on this! I am pretty excited about having this for local development. I just checked out your branch and ran make test and got the exact same errors that travis is getting 16 passed, 330 error. So maybe you are able to recreate those failures by throwing some docker images away or something

abandoned-prototype avatar Sep 06 '20 06:09 abandoned-prototype