You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Issue number:**
### PR Type
**What kind of change does this PR introduce?**
* [ ] Feature
* [ ] Bug Fix
* [x] Refactoring (no functional or API changes)
* [ ] Documentation Update
* [ ] Maintenance (dependency updates, CI, etc.)
## Summary
### Changes
Added a try except block for the unit test case `test_const.py` to
handle 403 Forbidden errors, which occur when Splunk documentation
blocks automated requests.
Now, while directly accessing the `url` if it throws an exception, the
test case will automatically retry the request by adding a User-Agent
header to mimic browser behaviour.
### User experience
No change in user experience.
## Checklist
If an item doesn't apply to your changes, leave it unchecked.
### Review
* [x] self-review - I have performed a self-review of this change
according to the [development
guidelines](https://splunk.github.io/addonfactory-ucc-generator/contributing/#development-guidelines)
* [ ] Changes are documented. The documentation is understandable,
examples work [(more
info)](https://splunk.github.io/addonfactory-ucc-generator/contributing/#documentation-guidelines)
* [x] PR title and description follows the [contributing
principles](https://splunk.github.io/addonfactory-ucc-generator/contributing/#pull-requests)
* [ ] meeting - I have scheduled a meeting or recorded a demo to explain
these changes (if there is a video, put a link below and in the ticket)
### Tests
See [the testing
doc](https://splunk.github.io/addonfactory-ucc-generator/contributing/#build-and-test).
* [x] Unit - tests have been added/modified to cover the changes
* [ ] Smoke - tests have been added/modified to cover the changes
* [ ] UI - tests have been added/modified to cover the changes
* [x] coverage - I have checked the code coverage of my changes [(see
more)](https://splunk.github.io/addonfactory-ucc-generator/contributing/#checking-the-code-coverage)
**Demo/meeting:**
*Reviewers are encouraged to request meetings or demos if any part of
the change is unclear*
0 commit comments