cyberark / cyberark-conjur-cli

CyberArk Conjur command line interface written in Python
https://www.conjur.org
Apache License 2.0
17 stars 16 forks source link

Wrap http exceptions from requests lib with internal exceptions #369

Closed abrahamko closed 2 years ago

abrahamko commented 2 years ago

http_wrapper should not throw exceptions from its internal library, requests. Instead, it takes the necessary info from the exceptions and use it to create new internal exception. This will allow replacing requests lib without impacting code outside of http_wrapper.

Desired Outcome

Please describe the desired outcome for this PR. Said another way, what was the original request that resulted in these code changes? Feel free to copy this information from the connected issue.

Implemented Changes

Describe how the desired outcome above has been achieved with this PR. In particular, consider:

Connected Issue/Story

Resolves #[relevant GitHub issue(s), e.g. 76]

CyberArk internal issue link: [insert issue ID]()

Definition of Done

At least 1 todo must be completed in the sections below for the PR to be merged.

Changelog

Test coverage

Documentation

Behavior

Security