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

Modifies the tests to use the defaults created in configprovider.py #3334

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

ubaskota
Copy link
Contributor

@ubaskota ubaskota commented Jan 13, 2025

Botocore has a number of unit tests that create a client using an empty ConfigValueStore object. Doing this causes the client constructor to lose the default arguments for configurations. This creates some extra work when we are resolving the arguments; for request_min_compression_size_bytes, we just skip the validation all-together if the value is None due to this test.
This PR fixes the tests to use the default botocore ConfigValueStore object. This allows us to re-enable the validation on request_min_compression_size_bytes , properly throwing an error for a None value. It also allows for future configurations to rely on their defaults when validating an input configuration value without having to code around these tests.

@ubaskota ubaskota changed the title Modifies the tests to usse the defaults created in configprovider.py and formats the newly addded changes Modifies the tests to use the defaults created in configprovider.py and formats the newly addded changes Jan 13, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (develop@e87c9b7). Learn more about missing BASE report.
Report is 92 commits behind head on develop.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #3334   +/-   ##
==========================================
  Coverage           ?   93.19%           
==========================================
  Files              ?       66           
  Lines              ?    14411           
  Branches           ?        0           
==========================================
  Hits               ?    13431           
  Misses             ?      980           
  Partials           ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ubaskota ubaskota changed the title Modifies the tests to use the defaults created in configprovider.py and formats the newly addded changes Modifies the tests to use the defaults created in configprovider.py Jan 13, 2025
@jonathan343 jonathan343 merged commit 3d5b6ab into boto:develop Jan 14, 2025
40 checks passed
aws-sdk-python-automation added a commit that referenced this pull request Jan 14, 2025
* release-1.35.99:
  Bumping version to 1.35.99
  Update endpoints model
  Update to latest models
  Modifies the tests to usse the defaults created in configprovider.py and formats the newly addded changes (#3334)
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.

4 participants