-
Notifications
You must be signed in to change notification settings - Fork 71
Add exclude filter to verify_boot_sources_reimported #4983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
43e5566
d8cf506
5e24309
da4e9c4
7cedf10
0816879
e7aef78
1c7104b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| from ocp_resources.pod import Pod | ||
| from ocp_utilities.infra import get_pods_by_name_prefix | ||
|
|
||
| from tests.install_upgrade_operators.constants import CUSTOM_DATASOURCE_NAME | ||
|
coderabbitai[bot] marked this conversation as resolved.
rlobillo marked this conversation as resolved.
rlobillo marked this conversation as resolved.
rlobillo marked this conversation as resolved.
coderabbitai[bot] marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Test Execution Plan
Affected tests to run:
Real tests (cluster required) Error path (the fix — custom DS excluded from reimport check): Expected: teardown completes without Happy path (regression — standard boot sources still verified after re-enable): Expected: all standard DIC-managed DataSources reach |
||
| from tests.install_upgrade_operators.hco_enablement_golden_image_updates.utils import ( | ||
| CUSTOM_TEMPLATE, | ||
| HCO_CR_DATA_IMPORT_SCHEDULE_KEY, | ||
|
|
@@ -15,6 +16,7 @@ | |
| HCO_OPERATOR, | ||
| SSP_CR_COMMON_TEMPLATES_LIST_KEY_NAME, | ||
| ) | ||
| from utilities.hco import disable_common_boot_image_import_hco_spec | ||
| from utilities.ssp import get_ssp_resource | ||
|
|
||
|
|
||
|
|
@@ -113,3 +115,20 @@ def ssp_spec_templates_scope_function(ssp_resource_scope_function): | |
| @pytest.fixture(scope="session") | ||
| def common_templates_scope_session(hyperconverged_status_scope_session): | ||
| return hyperconverged_status_scope_session[SSP_CR_COMMON_TEMPLATES_LIST_KEY_NAME] | ||
|
|
||
|
|
||
| @pytest.fixture() | ||
| def disabled_boot_image_import_excluding_custom_datasource( | ||
| admin_client, | ||
| hyperconverged_resource_scope_function, | ||
| golden_images_namespace, | ||
| golden_images_data_import_crons_scope_function, | ||
| ): | ||
| """Disable common boot image import, skipping verification of the custom DataSource.""" | ||
| yield from disable_common_boot_image_import_hco_spec( | ||
| admin_client=admin_client, | ||
| hco_resource=hyperconverged_resource_scope_function, | ||
| golden_images_namespace=golden_images_namespace, | ||
| golden_images_data_import_crons=golden_images_data_import_crons_scope_function, | ||
| exclude_data_source_names={CUSTOM_DATASOURCE_NAME}, | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.