Skip to content

Commit

Permalink
[Comp Eval] Remove duplicate repo discovery test (SatelliteQE#16073)
Browse files Browse the repository at this point in the history
* Adding pit marker for tests

* test

Signed-off-by: Cole Higgins <[email protected]>

* Remove dupe repo discovery test

* Remove extra commit

---------

Signed-off-by: Cole Higgins <[email protected]>
  • Loading branch information
ColeHiggins2 authored Aug 29, 2024
1 parent bf9df19 commit 8467035
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions tests/foreman/ui/test_contentcredentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,50 +250,6 @@ def test_positive_add_repo_from_product_with_repos(session, target_sat, module_o
assert values['repositories']['table'][0]['Name'] == repo1.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_add_product_using_repo_discovery(session, gpg_path):
"""Create gpg key with valid name and valid gpg key
then associate it with custom product using Repo discovery method
:id: 7490a5a6-8575-45eb-addc-298ed3b62649
:expectedresults: gpg key is associated with product as well as with
the repositories
:BZ: 1210180, 1461804, 1595792
"""
name = gen_string('alpha')
product_name = gen_string('alpha')
repo_name = 'fakerepo01'
with session:
session.contentcredential.create(
{
'name': name,
'content_type': CONTENT_CREDENTIALS_TYPES['gpg'],
'upload_file': gpg_path,
}
)
assert session.contentcredential.search(name)[0]['Name'] == name
session.product.discover_repo(
{
'repo_type': 'Yum Repositories',
'url': settings.repos.repo_discovery.url,
'discovered_repos.repos': repo_name,
'create_repo.product_type': 'New Product',
'create_repo.product_content.product_name': product_name,
'create_repo.product_content.gpg_key': name,
}
)
values = session.contentcredential.read(name)
assert len(values['products']['table']) == 1
assert values['products']['table'][0]['Name'] == product_name
assert len(values['repositories']['table']) == 1
assert values['repositories']['table'][0]['Name'].split(' ')[-1] == repo_name


@pytest.mark.tier2
@pytest.mark.skipif((not settings.robottelo.REPOS_HOSTING_URL), reason='Missing repos_hosting_url')
def test_positive_add_product_and_search(session, target_sat, module_org, gpg_content):
Expand Down

0 comments on commit 8467035

Please sign in to comment.