From 4b01a7945d9187439430cc3cf98ba8e17ec8630d Mon Sep 17 00:00:00 2001 From: vijay sawant Date: Tue, 20 Feb 2024 21:58:16 +0530 Subject: [PATCH] =?UTF-8?q?deleted=20tc's=20by=20considering=20recommendat?= =?UTF-8?q?ion=20present=20in=20repositories=20co=E2=80=A6=20(#14132)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deleted tc's by considering recommendation present in repositories component audit --- tests/foreman/api/test_docker.py | 16 - tests/foreman/api/test_repository.py | 180 ------------ tests/foreman/cli/test_repository.py | 418 --------------------------- tests/foreman/ui/test_repository.py | 28 -- tests/foreman/ui/test_sync.py | 20 -- 5 files changed, 662 deletions(-) diff --git a/tests/foreman/api/test_docker.py b/tests/foreman/api/test_docker.py index b11cc4bc126..eab9d213db5 100644 --- a/tests/foreman/api/test_docker.py +++ b/tests/foreman/api/test_docker.py @@ -191,22 +191,6 @@ def test_positive_create_repos_using_multiple_products(self, module_org, module_ product = product.read() assert repo.id in [repo_.id for repo_ in product.repository] - @pytest.mark.tier1 - def test_positive_sync(self, module_product, module_target_sat): - """Create and sync a Docker-type repository - - :id: 80fbcd84-1c6f-444f-a44e-7d2738a0cba2 - - :expectedresults: A repository is created with a Docker repository and - it is synchronized. - - :CaseImportance: Critical - """ - repo = _create_repository(module_target_sat, module_product) - repo.sync(timeout=600) - repo = repo.read() - assert repo.content_counts['docker_manifest'] >= 1 - @pytest.mark.tier1 @pytest.mark.parametrize('new_name', **parametrized(valid_docker_repository_names())) def test_positive_update_name(self, repo, new_name): diff --git a/tests/foreman/api/test_repository.py b/tests/foreman/api/test_repository.py index 06d93a90cfe..c1be460abef 100644 --- a/tests/foreman/api/test_repository.py +++ b/tests/foreman/api/test_repository.py @@ -689,20 +689,6 @@ def test_positive_update_gpg(self, module_org, module_product, module_target_sat repo = repo.update(['gpg_key']) assert repo.gpg_key.id == gpg_key_2.id - @pytest.mark.tier2 - def test_positive_update_contents(self, repo): - """Create a repository and upload RPM contents. - - :id: 8faa64f9-b620-4c0a-8c80-801e8e6436f1 - - :expectedresults: The repository's contents include one RPM. - - """ - # Upload RPM content. - repo.upload_content(files={'content': DataFile.RPM_TO_UPLOAD.read_bytes()}) - # Verify the repository's contents. - assert repo.read().content_counts['rpm'] == 1 - @pytest.mark.tier1 @pytest.mark.upgrade def test_positive_upload_delete_srpm(self, repo, target_sat): @@ -1595,37 +1581,6 @@ def test_positive_create(self, repo_options, repo): for k in 'name', 'docker_upstream_name', 'content_type': assert getattr(repo, k) == repo_options[k] - @pytest.mark.tier1 - @pytest.mark.parametrize( - 'repo_options', - **datafactory.parametrized( - { - constants.CONTAINER_UPSTREAM_NAME: { - 'content_type': 'docker', - 'docker_upstream_name': constants.CONTAINER_UPSTREAM_NAME, - 'name': gen_string('alphanumeric', 10), - 'url': constants.CONTAINER_REGISTRY_HUB, - } - } - ), - indirect=True, - ) - def test_positive_synchronize(self, repo): - """Create and sync a Docker-type repository - - :id: 27653663-e5a7-4700-a3c1-f6eab6468adf - - :parametrized: yes - - :expectedresults: A repository is created with a Docker repository and - it is synchronized. - - :CaseImportance: Critical - """ - # TODO: add timeout support to sync(). This repo needs more than the default 300 seconds. - repo.sync() - assert repo.read().content_counts['docker_manifest'] >= 1 - @pytest.mark.tier3 @pytest.mark.parametrize( 'repo_options', @@ -1769,44 +1724,6 @@ def test_positive_synchronize_private_registry(self, repo): repo.sync() assert repo.read().content_counts['docker_manifest'] >= 1 - @pytest.mark.tier2 - @pytest.mark.parametrize( - 'repo_options', - **datafactory.parametrized( - { - 'private_registry': { - 'content_type': 'docker', - 'docker_upstream_name': settings.docker.private_registry_name, - 'name': gen_string('alpha'), - 'upstream_username': settings.docker.private_registry_username, - 'upstream_password': 'ThisIsaWrongPassword', - 'url': settings.docker.private_registry_url, - } - } - ), - indirect=True, - ) - def test_negative_synchronize_private_registry_wrong_password(self, repo_options, repo): - """Create and try to sync a Docker-type repository from a private - registry providing wrong credentials the sync must fail with - reasonable error message. - - :id: 2857fce2-fed7-49fc-be20-bf2e4726c9f5 - - :parametrized: yes - - :expectedresults: A repository is created with a private Docker \ - repository and sync fails with reasonable error message. - - :customerscenario: true - - :BZ: 1475121, 1580510 - - """ - msg = "401, message=\'Unauthorized\'" - with pytest.raises(TaskFailedError, match=msg): - repo.sync() - @pytest.mark.tier2 @pytest.mark.parametrize( 'repo_options', @@ -2374,27 +2291,6 @@ def test_positive_upload_file_to_file_repo(self, repo, target_sat): ) assert constants.RPM_TO_UPLOAD == filesearch[0].name - @pytest.mark.stubbed - @pytest.mark.tier1 - def test_positive_file_permissions(self): - """Check file permissions after file upload to File Repository - - :id: 03b4b7dd-0505-4302-ae00-5de33ad420b0 - - :Setup: - 1. Create a File Repository - 2. Upload an arbitrary file to it - - :steps: Retrieve file permissions from File Repository - - :expectedresults: uploaded file permissions are kept after upload - - :CaseImportance: Critical - - :CaseAutomation: NotAutomated - """ - pass - @pytest.mark.tier1 @pytest.mark.upgrade @pytest.mark.parametrize( @@ -2428,82 +2324,6 @@ def test_positive_remove_file(self, repo, target_sat): repo.remove_content(data={'ids': [file_detail[0].id], 'content_type': 'file'}) assert repo.read().content_counts['file'] == 0 - @pytest.mark.stubbed - @pytest.mark.tier2 - @pytest.mark.upgrade - def test_positive_remote_directory_sync(self): - """Check an entire remote directory can be synced to File Repository - through http - - :id: 5c29b758-004a-4c71-a860-7087a0e96747 - - :Setup: - 1. Create a directory to be synced with a pulp manifest on its root - 2. Make the directory available through http - - :steps: - 1. Create a File Repository with url pointing to http url - created on setup - 2. Initialize synchronization - - - :expectedresults: entire directory is synced over http - - :CaseAutomation: NotAutomated - """ - pass - - @pytest.mark.stubbed - @pytest.mark.tier1 - def test_positive_local_directory_sync(self): - """Check an entire local directory can be synced to File Repository - - :id: 178145e6-62e1-4cb9-b825-44d3ab41e754 - - :Setup: - 1. Create a directory to be synced with a pulp manifest on its root - locally (on the Satellite/Foreman host) - - :steps: - 1. Create a File Repository with url pointing to local url - created on setup - 2. Initialize synchronization - - - :expectedresults: entire directory is synced - - :CaseImportance: Critical - - :CaseAutomation: NotAutomated - """ - pass - - @pytest.mark.stubbed - @pytest.mark.tier1 - def test_positive_symlinks_sync(self): - """Check synlinks can be synced to File Repository - - :id: 438a8e21-3502-4995-86db-c67ba0f3c469 - - :Setup: - 1. Create a directory to be synced with a pulp manifest on its root - locally (on the Satellite/Foreman host) - 2. Make sure it contains synlinks - - :steps: - 1. Create a File Repository with url pointing to local url - created on setup - 2. Initialize synchronization - - :expectedresults: entire directory is synced, including files - referred by symlinks - - :CaseImportance: Critical - - :CaseAutomation: NotAutomated - """ - pass - @pytest.mark.skip_if_not_set('container_repo') class TestTokenAuthContainerRepository: diff --git a/tests/foreman/cli/test_repository.py b/tests/foreman/cli/test_repository.py index e9de150b008..0fa9ae19079 100644 --- a/tests/foreman/cli/test_repository.py +++ b/tests/foreman/cli/test_repository.py @@ -213,27 +213,6 @@ def test_positive_create_with_yum_repo(self, repo_options, repo): for key in 'url', 'content-type': assert repo.get(key) == repo_options[key] - @pytest.mark.tier1 - @pytest.mark.upgrade - @pytest.mark.parametrize( - 'repo_options', - **parametrized([{'content-type': 'file', 'url': CUSTOM_FILE_REPO}]), - indirect=True, - ) - def test_positive_create_with_file_repo(self, repo_options, repo): - """Create file repository - - :id: 46f63419-1acc-4ae2-be8c-d97816ba342f - - :parametrized: yes - - :expectedresults: file repository is created - - :CaseImportance: Critical - """ - for key in 'url', 'content-type': - assert repo.get(key) == repo_options[key] - @pytest.mark.tier1 @pytest.mark.parametrize( 'repo_options', @@ -701,40 +680,6 @@ def test_negative_create_non_yum_with_download_policy(self, repo_options, module ): module_target_sat.cli_factory.make_repository(repo_options) - @pytest.mark.tier1 - @pytest.mark.parametrize( - 'repo_options', - **parametrized( - [ - {'content-type': 'yum', 'url': url} - for url in ( - settings.repos.yum_1.url, - settings.repos.yum_3.url, - settings.repos.yum_4.url, - ) - ] - ), - indirect=True, - ) - def test_positive_synchronize_yum_repo(self, repo_options, repo, target_sat): - """Check if repository can be created and synced - - :id: e3a62529-edbd-4062-9246-bef5f33bdcf0 - - :parametrized: yes - - :expectedresults: Repository is created and synced - - :CaseImportance: Critical - """ - # Repo is not yet synced - assert repo['sync']['status'] == 'Not Synced' - # Synchronize it - target_sat.cli.Repository.synchronize({'id': repo['id']}) - # Verify it has finished - repo = target_sat.cli.Repository.info({'id': repo['id']}) - assert repo['sync']['status'] == 'Success' - @pytest.mark.tier1 @pytest.mark.parametrize( 'repo_options', @@ -920,38 +865,6 @@ def test_verify_checksum_container_repo(self, repo, target_sat): new_repo = target_sat.cli.Repository.info({'id': repo['id']}) assert new_repo['sync']['status'] == 'Success' - @pytest.mark.tier2 - @pytest.mark.upgrade - @pytest.mark.parametrize( - 'repo_options', - **parametrized( - [ - { - 'content-type': 'docker', - 'docker-upstream-name': CONTAINER_UPSTREAM_NAME, - 'url': CONTAINER_REGISTRY_HUB, - 'include-tags': 'latest', - } - ] - ), - indirect=True, - ) - def test_positive_synchronize_docker_repo_with_tags_whitelist( - self, repo_options, repo, target_sat - ): - """Check if only whitelisted tags are synchronized - - :id: aa820c65-2de1-4b32-8890-98bd8b4320dc - - :parametrized: yes - - :expectedresults: Only whitelisted tag is synchronized - """ - target_sat.cli.Repository.synchronize({'id': repo['id']}) - repo = _validated_image_tags_count(repo=repo, sat=target_sat) - assert repo_options['include-tags'] in repo['container-image-tags-filter'] - assert int(repo['content-counts']['container-image-tags']) == 1 - @pytest.mark.tier2 @pytest.mark.parametrize( 'repo_options', @@ -1413,27 +1326,6 @@ def test_negative_create_checksum_with_on_demand_policy(self, repo_options, modu with pytest.raises(CLIFactoryError): module_target_sat.cli_factory.make_repository(repo_options) - @pytest.mark.tier1 - @pytest.mark.parametrize( - 'repo_options', - **parametrized([{'name': name} for name in valid_data_list().values()]), - indirect=True, - ) - def test_positive_delete_by_id(self, repo, target_sat): - """Check if repository can be created and deleted - - :id: bcf096db-0033-4138-90a3-cb7355d5dfaf - - :parametrized: yes - - :expectedresults: Repository is created and then deleted - - :CaseImportance: Critical - """ - target_sat.cli.Repository.delete({'id': repo['id']}) - with pytest.raises(CLIReturnCodeError): - target_sat.cli.Repository.info({'id': repo['id']}) - @pytest.mark.tier1 @pytest.mark.upgrade @pytest.mark.parametrize( @@ -2009,50 +1901,6 @@ def test_positive_create_get_update_delete_module_streams( with pytest.raises(CLIReturnCodeError): module_target_sat.cli.Repository.info({'id': repo['id']}) - @pytest.mark.tier1 - @pytest.mark.parametrize( - 'repo_options', - **parametrized([{'content-type': 'yum', 'url': settings.repos.module_stream_0.url}]), - indirect=True, - ) - @pytest.mark.parametrize( - 'repo_options_2', - **parametrized([{'content-type': 'yum', 'url': settings.repos.module_stream_1.url}]), - ) - def test_module_stream_list_validation( - self, module_org, repo, repo_options_2, module_target_sat - ): - """Check module-stream get with list on hammer. - - :id: 9842a0c3-8532-4b16-a00a-534fc3b0a776ff89f23e-cd00-4d20-84d3-add0ea24abf8 - - :parametrized: yes - - :Setup: - 1. valid yum repo with Module Streams. - - :steps: - 1. Create Yum Repositories with url contain module-streams and Products - 2. Initialize synchronization - 3. Verify the module-stream list with various inputs options - - :expectedresults: Verify the module-stream list response. - - :CaseAutomation: Automated - """ - module_target_sat.cli.Repository.synchronize({'id': repo['id']}) - - prod_2 = module_target_sat.cli_factory.make_product({'organization-id': module_org.id}) - repo_options_2['organization-id'] = module_org.id - repo_options_2['product-id'] = prod_2['id'] - repo_2 = module_target_sat.cli_factory.make_repository(repo_options_2) - - module_target_sat.cli.Repository.synchronize({'id': repo_2['id']}) - module_streams = module_target_sat.cli.ModuleStream.list() - assert len(module_streams) > 13, 'Module Streams list failed' - module_streams = module_target_sat.cli.ModuleStream.list({'product-id': prod_2['id']}) - assert len(module_streams) == 7, 'Module Streams list by product failed' - @pytest.mark.tier1 @pytest.mark.parametrize( 'repo_options', @@ -2768,177 +2616,6 @@ def test_positive_sync_publish_promote_cv(self, repo, module_org, module_product assert result.stdout -class TestGitPuppetMirror: - """Tests for creating the hosts via CLI. - - Notes for GIT puppet mirror content - - This feature does not allow us to actually sync / update the content in a - GIT repo. Instead, we essentially "snapshot" a repo's contents at any - given time. The ability to update the GIT puppet mirror is / should - be provided by Pulp itself, via a script. However, we should be able to - # create a sync schedule against the mirror to make sure it is periodically - updated to contain the latest and greatest. - """ - - @pytest.mark.stubbed - @pytest.mark.tier2 - def test_positive_git_local_create(self): - """Create repository with local git puppet mirror. - - :id: 89211cd5-82b8-4391-b729-a7502e57f824 - - :Setup: Assure local GIT puppet has been created and found by pulp - - :steps: Create link to local puppet mirror via cli - - :expectedresults: Content source containing local GIT puppet mirror - content is created - - :CaseAutomation: NotAutomated - """ - - @pytest.mark.stubbed - @pytest.mark.tier2 - def test_positive_git_local_update(self): - """Update repository with local git puppet mirror. - - :id: 341f40f2-3501-4754-9acf-7cda1a61f7db - - :Setup: Assure local GIT puppet has been created and found by pulp - - :steps: Modify details for existing puppet repo (name, etc.) via cli - - :expectedresults: Content source containing local GIT puppet mirror - content is modified - - :CaseAutomation: NotAutomated - """ - - @pytest.mark.stubbed - @pytest.mark.tier2 - @pytest.mark.upgrade - def test_positive_git_local_delete(self): - """Delete repository with local git puppet mirror. - - :id: a243f5bb-5186-41b3-8e8a-07d5cc784ccd - - :Setup: Assure local GIT puppet has been created and found by pulp - - :steps: Delete link to local puppet mirror via cli - - :expectedresults: Content source containing local GIT puppet mirror - content no longer exists/is available. - - :CaseAutomation: NotAutomated - """ - - @pytest.mark.stubbed - @pytest.mark.tier2 - def test_positive_git_remote_create(self): - """Create repository with remote git puppet mirror. - - :id: 8582529f-3112-4b49-8d8f-f2bbf7dceca7 - - :Setup: Assure remote GIT puppet has been created and found by pulp - - :steps: Create link to local puppet mirror via cli - - :expectedresults: Content source containing remote GIT puppet mirror - content is created - - :CaseAutomation: NotAutomated - """ - - @pytest.mark.stubbed - @pytest.mark.tier2 - def test_positive_git_remote_update(self): - """Update repository with remote git puppet mirror. - - :id: 582c50b3-3b90-4244-b694-97642b1b13a9 - - :Setup: Assure remote GIT puppet has been created and found by pulp - - :steps: modify details for existing puppet repo (name, etc.) via cli - - :expectedresults: Content source containing remote GIT puppet mirror - content is modified - - :CaseAutomation: NotAutomated - """ - - @pytest.mark.stubbed - @pytest.mark.tier2 - @pytest.mark.upgrade - def test_positive_git_remote_delete(self): - """Delete repository with remote git puppet mirror. - - :id: 0a23f969-b202-4c6c-b12e-f651a0b7d049 - - :Setup: Assure remote GIT puppet has been created and found by pulp - - :steps: Delete link to remote puppet mirror via cli - - :expectedresults: Content source containing remote GIT puppet mirror - content no longer exists/is available. - - :CaseAutomation: NotAutomated - """ - - @pytest.mark.stubbed - @pytest.mark.tier2 - def test_positive_git_sync(self): - """Sync repository with git puppet mirror. - - :id: a46c16bd-0986-48db-8e62-aeb3907ba4d2 - - :Setup: git mirror (local or remote) exists as a content source - - :steps: Attempt to sync content from mirror via cli - - :expectedresults: Content is pulled down without error - - :expectedresults: Confirmation that various resources actually exist in - local content repo - - :CaseAutomation: NotAutomated - """ - - @pytest.mark.stubbed - @pytest.mark.tier2 - def test_positive_git_sync_schedule(self): - """Scheduled sync of git puppet mirror. - - :id: 0d58d180-9836-4524-b608-66b67f9cab12 - - :Setup: git mirror (local or remote) exists as a content source - - :steps: Attempt to create a scheduled sync content from mirror, via cli - - :expectedresults: Content is pulled down without error on expected - schedule - - :CaseAutomation: NotAutomated - """ - - @pytest.mark.stubbed - @pytest.mark.tier2 - def test_positive_git_view_content(self): - """View content in synced git puppet mirror - - :id: 02f06092-dd6c-49fa-be9f-831e52476e41 - - :Setup: git mirror (local or remote) exists as a content source - - :steps: Attempt to list contents of repo via cli - - :expectedresults: Spot-checked items (filenames, dates, perhaps - checksums?) are correct. - - :CaseAutomation: NotAutomated - """ - - class TestFileRepository: """Specific tests for File Repositories""" @@ -2985,26 +2662,6 @@ def test_positive_upload_file_to_file_repo(self, repo_options, repo, target_sat) ) assert RPM_TO_UPLOAD == filesearch[0].name - @pytest.mark.stubbed - @pytest.mark.tier1 - def test_positive_file_permissions(self): - """Check file permissions after file upload to File Repository - - :id: 03da888a-69ba-492f-b204-c62d85948d8a - - :Setup: - 1. Create a File Repository - 2. Upload an arbitrary file to it - - :steps: Retrieve file permissions from File Repository - - :expectedresults: uploaded file permissions are kept after upload - - :CaseAutomation: NotAutomated - - :CaseImportance: Critical - """ - @pytest.mark.tier1 @pytest.mark.upgrade @pytest.mark.parametrize( @@ -3239,81 +2896,6 @@ def test_file_repo_contains_only_newer_file(self, repo_options, repo, target_sat assert 'Second File' in textfile.text -@pytest.mark.stubbed -@pytest.mark.tier2 -def test_copy_package_group_between_repos(): - """ - Copy a group of packages from one repo to another. - - :id: 18d832fc-7e27-4067-99ea-5da9eef22253 - - :Setup: - 1. Add a product and sync a repo which has package groups (repo 1) - 2. Create another product and create a yum repo (repo 2) - 3. Select the package group from repo 1 and sync it to repo 2 - - :steps: - Assert the list of package in repo 2 matches the group list from repo 1 - - :CaseAutomation: NotAutomated - - :CaseImportance: Medium - """ - - -@pytest.mark.stubbed -@pytest.mark.tier2 -def test_include_and_exclude_content_units(): - """ - Select two packages and include and exclude some dependencies - and then copy them from one repo to another. - - :id: 073a0ade-6860-4b34-b64f-0f1a75025356 - - :Setup: - 1. Add a product and sync a repo which has packages with dependencies (repo 1) - 2. Create another product and create a yum repo (repo 2) - 3. Select a package and include its dependencies - 4. Select a package and exclude its dependencies - 5. Copy packages from repo 1 to repo 2 - - :steps: - Assert the list of packages in repo 2 matches the packages selected in repo 1, - including only those dependencies expected. - - :CaseAutomation: NotAutomated - - :CaseImportance: Medium - """ - - -@pytest.mark.stubbed -@pytest.mark.tier2 -def test_copy_erratum_and_RPMs_within_a_date_range(): - """ - Select some packages, filer by date range, - and then copy them from one repo to another. - - :id: da48011b-841a-4706-84b5-2dcfe371c30a - - :Setup: - 1. Add a product and sync a repo which has packages with dependencies (repo 1) - 2. Create another product and create a yum repo (repo 2) - 3. Select some packages and include dependencies - 4. Filter by date range - 5. Copy filtered list of items from repo 1 to repo 2 - 6. Repeat using errata in place of RPMs - - :steps: - Assert the list of packages or errata in repo 2 matches those selected - and filtered in repo 1, including those dependencies expected. - - :CaseAutomation: NotAutomated - - :CaseImportance: Medium - """ - - @pytest.mark.tier2 def test_positive_syncable_yum_format_repo_import(target_sat, module_org): """Verify that you can import syncable yum format repositories diff --git a/tests/foreman/ui/test_repository.py b/tests/foreman/ui/test_repository.py index 18089c2a9a7..374b51b8e30 100644 --- a/tests/foreman/ui/test_repository.py +++ b/tests/foreman/ui/test_repository.py @@ -31,7 +31,6 @@ ) from robottelo.constants.repos import ( ANSIBLE_GALAXY, - CUSTOM_3RD_PARTY_REPO, CUSTOM_RPM_SHA, ) from robottelo.hosts import get_sat_version @@ -1243,33 +1242,6 @@ def test_positive_sync_sha_repo(session, module_org, module_target_sat): assert result['result'] == 'success' -@pytest.mark.tier2 -def test_positive_sync_third_party_repo(session, module_org, module_target_sat): - """Sync third part repo successfully - - :id: 655161e0-aa90-4c7c-9a0d-cb5b9f56eac3 - - :customerscenario: true - - :BZ: 1920511 - - :SubComponent: Pulp - """ - repo_name = gen_string('alpha') - product = module_target_sat.api.Product(organization=module_org).create() - with session: - session.repository.create( - product.name, - { - 'name': repo_name, - 'repo_type': REPO_TYPE['yum'], - 'repo_content.upstream_url': CUSTOM_3RD_PARTY_REPO, - }, - ) - result = session.repository.synchronize(product.name, repo_name) - assert result['result'] == 'success' - - @pytest.mark.tier2 def test_positive_able_to_disable_and_enable_rhel_repos( session, module_org_with_manifest, target_sat diff --git a/tests/foreman/ui/test_sync.py b/tests/foreman/ui/test_sync.py index fe16cc94f35..d4351bc4923 100644 --- a/tests/foreman/ui/test_sync.py +++ b/tests/foreman/ui/test_sync.py @@ -36,26 +36,6 @@ def module_custom_product(module_org, module_target_sat): return module_target_sat.api.Product(organization=module_org).create() -@pytest.mark.tier2 -@pytest.mark.skipif((not settings.robottelo.REPOS_HOSTING_URL), reason='Missing repos_hosting_url') -def test_positive_sync_custom_repo(session, module_custom_product, module_target_sat): - """Create Content Custom Sync with minimal input parameters - - :id: 00fb0b04-0293-42c2-92fa-930c75acee89 - - :expectedresults: Sync procedure is successful - - :CaseImportance: Critical - """ - repo = module_target_sat.api.Repository( - url=settings.repos.yum_1.url, product=module_custom_product - ).create() - with session: - results = session.sync_status.synchronize([(module_custom_product.name, repo.name)]) - assert len(results) == 1 - assert results[0] == 'Syncing Complete.' - - @pytest.mark.run_in_one_thread @pytest.mark.skip_if_not_set('fake_manifest') @pytest.mark.tier2