|
21 | 21 | get_resource_by_name, |
22 | 22 | get_resource_from_module_name, |
23 | 23 | ) |
24 | | -from utilities.constants import HPP_POOL |
| 24 | +from utilities.constants import HCO_BEARER_AUTH, HPP_POOL |
25 | 25 | from utilities.hco import ResourceEditorValidateHCOReconcile, get_hco_version |
26 | 26 | from utilities.infra import ( |
27 | 27 | get_daemonset_by_name, |
28 | 28 | get_deployment_by_name, |
29 | 29 | get_pod_by_name_prefix, |
| 30 | + is_jira_open, |
30 | 31 | ) |
31 | 32 | from utilities.operator import ( |
32 | 33 | disable_default_sources_in_operatorhub, |
@@ -204,10 +205,17 @@ def ocp_resource_by_name(admin_client, ocp_resources_submodule_list, related_obj |
204 | 205 |
|
205 | 206 |
|
206 | 207 | @pytest.fixture() |
207 | | -def related_object_from_hco_status(hco_status_related_objects, cnv_related_object_matrix__function__): |
| 208 | +def related_object_from_hco_status( |
| 209 | + is_jira_70251_open, |
| 210 | + hco_status_related_objects, |
| 211 | + cnv_related_object_matrix__function__, |
| 212 | +): |
208 | 213 | LOGGER.info(cnv_related_object_matrix__function__) |
209 | 214 | kind_name = list(cnv_related_object_matrix__function__.values())[0] |
210 | 215 | related_object_name = list(cnv_related_object_matrix__function__.keys())[0] |
| 216 | + |
| 217 | + if related_object_name == HCO_BEARER_AUTH and is_jira_70251_open: |
| 218 | + pytest.xfail(f"Skipping related object {related_object_name}, kind {kind_name} because of CNV-70251") |
211 | 219 | LOGGER.info(f"Looking for related object {related_object_name}, kind {kind_name}") |
212 | 220 | for obj in hco_status_related_objects: |
213 | 221 | if obj.name == related_object_name and obj.kind == kind_name: |
@@ -235,3 +243,8 @@ def updated_resource( |
235 | 243 | wait_for_reconcile_post_update=True, |
236 | 244 | ): |
237 | 245 | yield cr |
| 246 | + |
| 247 | + |
| 248 | +@pytest.fixture(scope="session") |
| 249 | +def is_jira_70251_open(): |
| 250 | + return is_jira_open(jira_id="CNV-70251") |
0 commit comments