Skip to content

Commit

Permalink
Remove one redundant discover repo case
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik committed Jun 14, 2024
1 parent 9d2d8f4 commit 6107397
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions tests/foreman/ui/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,48 +295,6 @@ def test_positive_discover_repo_via_new_product(session, module_org):
assert repo_name in session.repository.search(product_name, repo_name)[0]['Name']


@pytest.mark.tier2
@pytest.mark.upgrade
@pytest.mark.skipif((not settings.robottelo.REPOS_HOSTING_URL), reason='Missing repos_hosting_url')
@pytest.mark.usefixtures('allow_repo_discovery')
def test_positive_discover_module_stream_repo_via_existing_product(
session, module_org, module_target_sat
):
"""Create repository with module streams via repo-discovery under an existing product.
:id: e7b9e2c4-7ecd-4cde-8f74-961fbac8919c
:BZ: 1676642
:steps:
1. Create a product.
2. From Content > Products, click on the Repo Discovery button.
3. Enter a url containing a yum repository with module streams, e.g.,
settings.repos.module_stream_1.url.
4. Click the Discover button.
:expectedresults: Repositories are discovered.
"""
repo_name = gen_string('alpha')
repo_label = gen_string('alpha')
product = module_target_sat.api.Product(organization=module_org).create()
with session:
session.organization.select(org_name=module_org.name)
session.product.discover_repo(
{
'repo_type': 'Yum Repositories',
'url': settings.repos.module_stream_1.url,
'discovered_repos.repos': "/",
'create_repo.product_type': 'Existing Product',
'create_repo.product_content.product_name': product.name,
'create_repo.create_repos_table': [
{"Repository Name": repo_name, "Repository Label": repo_label}
],
}
)
assert repo_name in session.repository.search(product.name, repo_name)[0]['Name']


@pytest.mark.tier2
@pytest.mark.upgrade
@pytest.mark.skipif((not settings.robottelo.REPOS_HOSTING_URL), reason='Missing repos_hosting_url')
Expand Down

0 comments on commit 6107397

Please sign in to comment.