Skip to content

Correctly use endpoint in s3overrides #79

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

Merged
merged 3 commits into from
Nov 14, 2019

Conversation

kylebarron
Copy link
Contributor

I believe this fixes #77 . This correctly passes the endpoint override to the AWS SDK. I haven't figured out how to test this in the full parse-server yet though.

@codecov
Copy link

codecov bot commented Nov 14, 2019

Codecov Report

Merging #79 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #79      +/-   ##
==========================================
+ Coverage   94.23%   94.26%   +0.03%     
==========================================
  Files           2        2              
  Lines         156      157       +1     
  Branches       33       33              
==========================================
+ Hits          147      148       +1     
  Misses          9        9
Impacted Files Coverage Δ
lib/optionsFromArguments.js 95.77% <100%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 866073a...fe7b899. Read the comment docs.

@kylebarron
Copy link
Contributor Author

kylebarron commented Nov 14, 2019

That does appear to work correctly for me now on Parse Server

@dplewis
Copy link
Member

dplewis commented Nov 14, 2019

Can you add a test case? Here is an example https://github.com/parse-community/parse-server-s3-adapter/pull/50/files

Apparently the constructor function exists within the Endpoint object 
after calling AWS.Endpoint() but not once passed through S3Adapter, but 
this doesn't matter anyways.
@kylebarron
Copy link
Contributor Author

I think it's good now

Copy link
Member

@dplewis dplewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endpoint not correctly overridden
2 participants