Skip to content

fix: multiple IAM based authenticator overrides#124

Merged
pyrooka merged 5 commits into
mainfrom
fix-multiple-iam-auth-issue
Aug 24, 2021
Merged

fix: multiple IAM based authenticator overrides#124
pyrooka merged 5 commits into
mainfrom
fix-multiple-iam-auth-issue

Conversation

@pyrooka
Copy link
Copy Markdown
Member

@pyrooka pyrooka commented Aug 24, 2021

This PR fixes an issue which happens when the user creates more than one IAM based authenticator in the same service/project/file. The cause of this issue is the request_payload class variable, because it should be an instance variable.
Tests have been added, fixed and improved.

Closes #123

Update: there are also some unicode string and utf-8 encoding related changes in this PR to make the code compatible with the latest pylint release.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 24, 2021

Codecov Report

Merging #124 (aacfde8) into main (4ac1246) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #124   +/-   ##
=======================================
  Coverage   99.50%   99.50%           
=======================================
  Files          22       22           
  Lines         815      815           
=======================================
  Hits          811      811           
  Misses          4        4           
Impacted Files Coverage Δ
...sdk_core/token_managers/container_token_manager.py 100.00% <100.00%> (ø)
.../token_managers/iam_request_based_token_manager.py 100.00% <100.00%> (ø)
ibm_cloud_sdk_core/utils.py 99.33% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4ac1246...aacfde8. Read the comment docs.

@pyrooka pyrooka requested a review from padamstx August 24, 2021 16:25
Copy link
Copy Markdown
Contributor

@padamstx padamstx left a comment

Choose a reason for hiding this comment

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

LGTM!

@pyrooka pyrooka merged commit b142e9e into main Aug 24, 2021
@pyrooka pyrooka deleted the fix-multiple-iam-auth-issue branch August 24, 2021 16:54
ibm-devx-sdk pushed a commit that referenced this pull request Aug 24, 2021
## [3.11.3](v3.11.2...v3.11.3) (2021-08-24)

### Bug Fixes

* multiple IAM based authenticator overrides ([#124](#124)) ([b142e9e](b142e9e))
@ibm-devx-sdk
Copy link
Copy Markdown

🎉 This PR is included in version 3.11.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

About connection failure to multiple Watson services

3 participants