-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic skeleton for aws_s3 testing towards a mocked S3 #133
Conversation
cf23cf6
to
d4d6542
Compare
d4d6542
to
380927f
Compare
380927f
to
b56c0ac
Compare
Added regression tests for #134 |
b56c0ac
to
5905fc1
Compare
5905fc1
to
655e086
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm mildly +1 on this because S3 has such a terrible API that nearly all developers will want some sugar on top of it to smooth out the rough bits and who wants to reinvent the wheel? Overall, though, I don't know if we should be providing sugar for other AWS APIs.
If we are going to start layering sugar over a set of AWS APIs, I think that should be a in a new separate project. We leave the underlying raw AWS APIs as-is and have a new top-level library that consumes this one to provide sugar. That's just my own personal aesthetic about how to separate concerns.
While I see your point and can agree to it, where should the tests live in that case? In the separate repo or here and this one pulls them in for testing? Each time a change is made to How does the following sound?
Either way, I'd like to merge this PR as is and do the steps outlined above separately :-) I'm personally not in favor in leaving @jadeallenx @andreashasse Your thoughts on that approach? |
I think what we have here is fine - I just think that if we add more sugar for other AWS services, that should be in its own repo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 cool!
I will try to copy this work for the aws-elixir
in the (near) future.
aws_s3_util
sits under/test
for the time being as I'd like to get some mileage on it when we're ready to start the testing towards a real AWS instance. It's heavily based on a module we use at $DAYJOB so in theory it should work but don't want to commit to it being available to the outside world until it's been properly tested.Furthermore I touched up the README a bit here and there and included a mention of
aws_s3_presigned_url
as it's additional functionality we provide that wasn't totally clear (got a question on Erlanger slack on whether that should be considered "legacy" and want to make it clear in the README that it is not 👍 😄