Skip to content

Commit

Permalink
update rhsc verstion to rhel9 from rhel7
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysawant committed Jan 23, 2025
1 parent c5e804d commit ddf6b9c
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions tests/foreman/ui/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@
import pytest

from robottelo.config import settings
from robottelo.constants import DEFAULT_LOC, PRDS, REPOS, REPOSET, RPM_TO_UPLOAD, DataFile
from robottelo.constants import (
DEFAULT_ARCHITECTURE,
DEFAULT_LOC,
PRDS,
REPOS,
REPOSET,
RPM_TO_UPLOAD,
DataFile,
)


@pytest.fixture(scope='module')
Expand Down Expand Up @@ -55,14 +63,13 @@ def module_yum_repo2(module_product, module_target_sat):

@pytest.fixture(scope='module')
def module_rh_repo(module_sca_manifest_org, module_target_sat):
rhsc = module_target_sat.cli_factory.SatelliteCapsuleRepository(cdn=True)
repo_id = module_target_sat.api_factory.enable_rhrepo_and_fetchid(
basearch=rhsc.data['arch'],
basearch=DEFAULT_ARCHITECTURE,
org_id=module_sca_manifest_org.id,
product=rhsc.data['product'],
repo=rhsc.data['repository'],
reposet=rhsc.data['repository-set'],
releasever=rhsc.data['releasever'],
product=REPOS['rhsc9']['product'],
repo=REPOS['rhsc9']['name'],
reposet=REPOSET['rhsc9'],
releasever=REPOS['rhsc9']['version'],
)
module_target_sat.api.Repository(id=repo_id).sync()
return module_target_sat.api.Repository(id=repo_id).read()
Expand Down

0 comments on commit ddf6b9c

Please sign in to comment.