From 507510f32d1dc33b86a6f8258fc281e30954fcbb Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Wed, 20 Dec 2023 08:06:19 -0500 Subject: [PATCH] [6.14.z] Bring back changes reverted by #11544 (#13522) Bring back changes reverted by #11544 (cherry picked from commit 1f59e24c2f146a012428f577ba24ed4811d74b7b) Co-authored-by: Vladimir Sedmik --- tests/foreman/cli/test_satellitesync.py | 69 +------------------------ 1 file changed, 1 insertion(+), 68 deletions(-) diff --git a/tests/foreman/cli/test_satellitesync.py b/tests/foreman/cli/test_satellitesync.py index 0251b4901e8..aa660748303 100644 --- a/tests/foreman/cli/test_satellitesync.py +++ b/tests/foreman/cli/test_satellitesync.py @@ -101,23 +101,6 @@ def function_import_org_with_manifest(target_sat, function_import_org): return function_import_org -@pytest.fixture(scope='class') -def docker_repo(module_target_sat, module_org): - product = module_target_sat.cli_factory.make_product({'organization-id': module_org.id}) - repo = module_target_sat.cli_factory.make_repository( - { - 'organization-id': module_org.id, - 'product-id': product['id'], - 'content-type': REPO_TYPE['docker'], - 'download-policy': 'immediate', - 'url': 'https://quay.io', - 'docker-upstream-name': 'quay/busybox', - } - ) - module_target_sat.cli.Repository.synchronize({'id': repo['id']}) - return repo - - @pytest.fixture(scope='module') def module_synced_custom_repo(module_target_sat, module_org, module_product): repo = module_target_sat.cli_factory.make_repository( @@ -1224,6 +1207,7 @@ def test_postive_export_cv_with_mixed_content_repos( :BZ: 1726457 :customerscenario: true + """ content_view = target_sat.cli_factory.make_content_view( {'organization-id': function_org.id} @@ -1253,57 +1237,6 @@ def test_postive_export_cv_with_mixed_content_repos( exported_packages = target_sat.cli.Package.list( {'content-view-version-id': exporting_cvv['id']} ) - product = target_sat.cli_factory.make_product( - { - 'organization-id': function_org.id, - 'name': gen_string('alpha'), - } - ) - nonyum_repo = target_sat.cli_factory.make_repository( - { - 'content-type': 'docker', - 'docker-upstream-name': 'quay/busybox', - 'organization-id': function_org.id, - 'product-id': product['id'], - 'url': CONTAINER_REGISTRY_HUB, - }, - ) - target_sat.cli.Repository.synchronize({'id': nonyum_repo['id']}) - yum_repo = target_sat.cli_factory.make_repository( - { - 'name': gen_string('alpha'), - 'download-policy': 'immediate', - 'mirroring-policy': 'mirror_content_only', - 'product-id': product['id'], - } - ) - target_sat.cli.Repository.synchronize({'id': yum_repo['id']}) - content_view = target_sat.cli_factory.make_content_view( - {'organization-id': function_org.id} - ) - # Add docker and yum repo - target_sat.cli.ContentView.add_repository( - { - 'id': content_view['id'], - 'organization-id': function_org.id, - 'repository-id': nonyum_repo['id'], - } - ) - target_sat.cli.ContentView.add_repository( - { - 'id': content_view['id'], - 'organization-id': function_org.id, - 'repository-id': yum_repo['id'], - } - ) - target_sat.cli.ContentView.publish({'id': content_view['id']}) - exporting_cv_id = target_sat.cli.ContentView.info({'id': content_view['id']}) - assert len(exporting_cv_id['versions']) == 1 - exporting_cvv_id = exporting_cv_id['versions'][0] - # check packages - exported_packages = target_sat.cli.Package.list( - {'content-view-version-id': exporting_cvv_id['id']} - ) assert len(exported_packages) # Verify export directory is empty assert target_sat.validate_pulp_filepath(function_org, PULP_EXPORT_DIR) == ''