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

Pass S3 Client to smart_open to prevent it from creating own client #178

Merged
merged 4 commits into from
Jul 12, 2024

Conversation

DeanElliott96
Copy link
Contributor

The package smart_open would create an S3 Client and expected to find the environment keys AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY however these were renamed and appended with DEFAULT_ which caused a credentials error. Now smart_open is given the S3 Client and longer has to create the S3 Client which now works as expected.

The package smart_open would create an S3 Client and expected to find
the environment keys `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`
however these were renamed and appended with `DEFAULT_` which caused
a credentials error. Now smart_open is given the S3 Client and longer
has to create the S3 Client which now works as expected.
@DeanElliott96 DeanElliott96 self-assigned this Jul 10, 2024
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

Attention: Patch coverage is 93.54839% with 2 lines in your changes missing coverage. Please review.

Project coverage is 37.63%. Comparing base (bc41621) to head (98744fb).
Report is 9 commits behind head on migration-deploy.

Files Patch % Lines
dnb_direct_plus/monitoring.py 66.66% 1 Missing ⚠️
dnb_direct_plus/tests/test_management.py 95.83% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                 Coverage Diff                  @@
##           migration-deploy     #178      +/-   ##
====================================================
+ Coverage             37.48%   37.63%   +0.14%     
====================================================
  Files                    97       96       -1     
  Lines                  5842     5777      -65     
  Branches                222      212      -10     
====================================================
- Hits                   2190     2174      -16     
+ Misses                 3581     3532      -49     
  Partials                 71       71              

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

@DeanElliott96 DeanElliott96 merged commit aeedaa3 into migration-deploy Jul 12, 2024
3 checks passed
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