From 1b00911dca61a0f2192cc90efdc8328ea0f0f60b Mon Sep 17 00:00:00 2001 From: Vladimir Sedmik Date: Wed, 17 Jan 2024 18:46:29 +0100 Subject: [PATCH] Address comments --- tests/foreman/cli/test_satellitesync.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/foreman/cli/test_satellitesync.py b/tests/foreman/cli/test_satellitesync.py index 65736325041..8be539fde91 100644 --- a/tests/foreman/cli/test_satellitesync.py +++ b/tests/foreman/cli/test_satellitesync.py @@ -2073,7 +2073,7 @@ def test_positive_custom_cdn_with_credential( @pytest.mark.rhel_ver_list([8]) @pytest.mark.parametrize( 'function_synced_rh_repo', - ['rhae2.9_el8'], + ['rhsclient8'], indirect=True, ) def test_positive_export_import_consume_incremental_yum_repo( @@ -2091,7 +2091,7 @@ def test_positive_export_import_consume_incremental_yum_repo( :id: f5515168-c3c9-4351-9f83-ba6265689db3 :setup: - 1. Enabled and synced RH yum repository (Ansible Engine for this case). + 1. Enabled and synced RH yum repository (RH Satellite Client for this case). 2. An unregistered RHEL8 host. :steps: @@ -2100,7 +2100,7 @@ def test_positive_export_import_consume_incremental_yum_repo( 3. On the importing side import version 1, check the package count. 4. Create an AK with the imported CV, register the content host and check the package count available to install. Filtered package should be missing. - 5. Update the fiter so no package is left behind, publish version 2 and export it. + 5. Update the filter so no package is left behind, publish version 2 and export it. 6. Import version 2, check the package count. 7. Check the package count available to install on the content host. 8. Install the package. @@ -2113,9 +2113,6 @@ def test_positive_export_import_consume_incremental_yum_repo( :customerscenario: true """ - res = rhel_contenthost.execute('dnf config-manager --set-disabled ubi-8-appstream-rpms') - assert res.status == 0, 'disablement of ubi-8-appstream-rpms failed' - # Create a CV with the RH yum repository. exp_cv = target_sat.cli_factory.make_content_view( { @@ -2125,7 +2122,7 @@ def test_positive_export_import_consume_incremental_yum_repo( ) # Add exclude RPM filter to filter out one package, publish version 1 and export it. - filtered_pkg = 'sshpass' + filtered_pkg = 'katello-host-tools' cvf = target_sat.cli_factory.make_content_view_filter( {'content-view-id': exp_cv['id'], 'type': 'rpm'} )