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

Support client context params for s3control #2797

Merged
merged 2 commits into from
Oct 27, 2022

Conversation

jonemo
Copy link
Contributor

@jonemo jonemo commented Oct 27, 2022

Context: #2740 introduced support for context params into Botocore. #2785 introduced a new way of resolving endpoints that utilizes context parameters.

There are three types of context params: Static, dynamic, and client context params. Botocore currently intends to support client context params only for the S3 services. The code in #2785 limits the use of client context params to s3 only. This PR expands this to additionally include s3control.

This PR also introduces functional test coverage that uses minimal fake models and rulesets to assert that all three types of context param are passed into the endpoint provider when expected, and not otherwise.

@jonemo jonemo requested a review from nateprewitt October 27, 2022 04:59
@codecov-commenter
Copy link

codecov-commenter commented Oct 27, 2022

Codecov Report

Base: 93.57% // Head: 93.57% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (d594326) compared to base (72df8fa).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2797   +/-   ##
========================================
  Coverage    93.57%   93.57%           
========================================
  Files           63       63           
  Lines        13300    13302    +2     
========================================
+ Hits         12445    12447    +2     
  Misses         855      855           
Impacted Files Coverage Δ
botocore/args.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @jonemo!

@jonemo jonemo merged commit 7d5a59f into boto:develop Oct 27, 2022
@jonemo jonemo deleted the client-context-params-for-s3control branch October 27, 2022 15:59
aws-sdk-python-automation added a commit that referenced this pull request Oct 27, 2022
* release-1.28.3:
  Bumping version to 1.28.3
  Update to latest endpoints
  Update to latest models
  Support client context params for s3control (#2797)
  Make Baseclient constructor signature backwards compatible with <1.28.0 (#2796)
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.

3 participants