robottelo.utils.issue_handlers.bugzilla
¶
Module Contents¶
Functions¶
|
Check if specific BZ is open consulting a cached data dict or |
|
Check if test should be deselected based on marked issue. |
Recursivelly load the duplicate data |
|
return target_milestone or min(versions flags) or 0 |
|
|
Try to fetch issue from given data cache or previous loaded on pytest. |
|
Collect data from BUgzilla API and aggregate in a dictionary. |
|
Recursivelly find for duplicates |
|
Recursivelly find for clones. |
|
Get a list of marked BZ data and query Bugzilla REST API. |
|
Call BZ API to get a single BZ data and cache it |
|
This is the default BZ data when it is not possible to reach BZ api |
Attributes¶
- robottelo.utils.issue_handlers.bugzilla.LOGGER¶
- robottelo.utils.issue_handlers.bugzilla.VERSION_RE¶
- robottelo.utils.issue_handlers.bugzilla.is_open_bz(issue, data=None)¶
Check if specific BZ is open consulting a cached data dict or calling Bugzilla REST API.
- Arguments:
issue {str} – The BZ reference e.g: BZ:123456 data {dict} – Issue data indexed by <handler>:<number> or None
- robottelo.utils.issue_handlers.bugzilla.should_deselect_bz(issue, data=None)¶
Check if test should be deselected based on marked issue.
Resolution WONTFIX/CANTFIX/DEFERRED should deselect
- Arguments:
issue {str} – The BZ reference e.g: BZ:123456 data {dict} – Issue data indexed by <handler>:<number> or None
- robottelo.utils.issue_handlers.bugzilla.follow_duplicates(bz)¶
Recursivelly load the duplicate data
- robottelo.utils.issue_handlers.bugzilla.extract_min_version(bz)¶
return target_milestone or min(versions flags) or 0
- robottelo.utils.issue_handlers.bugzilla.try_from_cache(issue, data=None)¶
Try to fetch issue from given data cache or previous loaded on pytest.
- Arguments:
issue {str} – The BZ reference e.g: BZ:123456 data {dict} – Issue data indexed by <handler>:<number> or None
- robottelo.utils.issue_handlers.bugzilla.collect_data_bz(collected_data, cached_data)¶
Collect data from BUgzilla API and aggregate in a dictionary.
- Arguments:
collected_data {dict} – dict with BZs collected by pytest cached_data {dict} – Cached data previous loaded from API
- robottelo.utils.issue_handlers.bugzilla.collect_dupes(bz, collected_data, cached_data=None)¶
Recursivelly find for duplicates
- robottelo.utils.issue_handlers.bugzilla.collect_clones(bz, collected_data, cached_data=None)¶
Recursivelly find for clones. This handler does not process clones as part of skipping logic. but the data is fetched here to feed nagger script later.
- robottelo.utils.issue_handlers.bugzilla.CACHED_RESPONSES¶
- robottelo.utils.issue_handlers.bugzilla.get_data_bz(bz_numbers, cached_data=None)¶
Get a list of marked BZ data and query Bugzilla REST API.
- Arguments:
bz_numbers {list of str} – [‘123456’, …] cached_data
- Returns:
[list of dicts] – [{‘id’:…, ‘status’:…, ‘resolution’: …}]
- robottelo.utils.issue_handlers.bugzilla.get_single_bz(number, cached_data=None)¶
Call BZ API to get a single BZ data and cache it
- robottelo.utils.issue_handlers.bugzilla.get_default_bz(number)¶
This is the default BZ data when it is not possible to reach BZ api