-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unrevert s3 config #673
Unrevert s3 config #673
Conversation
Valid keys are: | ||
* 'addressing_style' -- Refers to the style in which to address | ||
s3 endpoints. Values must be a string that equals: | ||
* auto -- Addressing style is chosen for user. Depending |
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.
It would be worth mentioning this is the default value.
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.
Yep
Just had some small feedback. |
99f271a
to
4c04307
Compare
@jamesls I updated based on feedback |
@kyleknap Can we get a test added for kyleknap@4c04307? |
@jamesls We already have one: https://github.com/boto/botocore/blob/develop/tests/unit/test_s3_addressing.py#L87. Or did you want a test for if it us-gov-west-1 is used but a path style of virtual is specified? |
I didn't see a case for the scenario we've been discussing:
Is there a test for this? |
Oh no I can add one for that then. |
@jamesls Test case added. |
Looks good. |
This puts back in place the s3 configuration options that I reverted because CLI integration tests were failing. Fixed the tests by putting back the
fix_s3_host
registering to the default section so when the event for unregistering is called in the CLI with--endpoint-url
, the registered handler does exist so it does get unregistered. This seemed like the safest way to ensure there was no breaking behavior in the CLI.Looked into trying to modify the session in the CLI, but that would have required making the session more mutable and adding more functionality to the session, which is not necessarily desired.
cc @Jamels @mtdowling @rayluo @JordonPhillips