Skip to content
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 a "mock" region for which the endpoint URL is not rewritten #171

Closed
wants to merge 1 commit into from

Conversation

mguillaume
Copy link

For offline testing (like, when you're on a train), it's nice to be able to use a fake S3 server (eg fakes3).
However, the fix_s3_host function in handlers.py rewrites them to things like http://test.s3.amazonaws.com

This commit adds a fake "mock" region in the RESTRICTED_REGIONS so that custom endpoint_url used with this fake region are not rewritten to valid S3 endpoints. (this may not be the best way to do it, but it has the advantage to be super simple and have little chance to break anything).

@jamesls
Copy link
Member

jamesls commented Aug 20, 2015

Closing out old pull request. The internals have changed in botocore have changed quite a bit such that this is possible without having to modify any botocore code.

@jamesls jamesls closed this Aug 20, 2015
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.

2 participants