-
Notifications
You must be signed in to change notification settings - Fork 638
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 loadoptions to configure BaseEndpoint #2837
Conversation
@@ -0,0 +1,187 @@ | |||
package main |
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.
this package being main is tripping the integ tests
found packages s3 (api_test.go) and main (endpoint_url_test.go) in /codebuild/output/src1559507751/src/github.com/aws/aws-sdk-go-v2/service/internal/integrationtest/s3
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 also 100% did not apply the integration test flag so that needs fixed.
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.
fixed
I didn't prefix the new test with |
"AWS_ENDPOINT_URL_S3": "https://service-env.com", | ||
}, | ||
SharedConfig: ` | ||
[default] |
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.
thought, non blocking: I understand why multi-line strings are like this, but boy are they not pretty to read
s3 = | ||
endpoint_url = https://service-cfg.com | ||
`, | ||
Expect: "https://service-cfg.com", |
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.
love the urls <3
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.
excellent url naming
Adds in-code hook for configuring a global endpoint override in config loading.
Also adds an integration test that verifies the SEP-defined precedence of endpoint overrides with actual env and shared config in place.
Closes #2422
Related ekristen/aws-nuke#376