generated from techservicesillinois/secdev-template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
good to goAn acceptable task list is present in this issueAn acceptable task list is present in this issue
Description
clearpass-api/src/clearpass/client.py
Lines 86 to 91 in 0239dd8
| def test_connectivity(self): | |
| try: | |
| self._get_access_token() | |
| return True | |
| except Exception: | |
| return False |
Lines 90 and 91 are not allowing the exception to bubble up to the SOAR log so we don't know what is happening when the test_connectivity function fails in the SOAR Clearpass app. Removing those lines should give us a clearer error message.
Tasks
- remove the catch for
Exception - probably - call
raise_on_status - add a catch for 403 Forbidden
- add a catch for 500 Server Error
- add a catch for 404 Not Found
- stretch - think about how we want to handle time-outs - Ed doesn't mind leaving these to bubble up, though.
- update CHANGELOG and add a tag with a bumped up micro revision to this library
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good to goAn acceptable task list is present in this issueAn acceptable task list is present in this issue