Skip to content

Commit

Permalink
Add RHEL7 ELS repository constants and use it for Convert2RHEL tests
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Talreja <[email protected]>
  • Loading branch information
Gauravtalreja1 committed Jan 10, 2025
1 parent 2c0bf49 commit 94bacfa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
20 changes: 18 additions & 2 deletions robottelo/constants/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,14 @@
'rhel8': 'Red Hat Enterprise Linux for x86_64',
'rhel9': 'Red Hat Enterprise Linux for x86_64',
'rhel10_beta': 'Red Hat Enterprise Linux for x86_64 Beta',
'rhel_els': 'Red Hat Enterprise Linux Server - Extended Life Cycle Support',
}

REPOSET = {
'rhct6': 'Red Hat CloudForms Tools for RHEL 6 (RPMs)',
'rhel6': 'Red Hat Enterprise Linux 6 Server (RPMs)',
'rhel7': 'Red Hat Enterprise Linux 7 Server (RPMs)',
'rhel7_els': 'Red Hat Enterprise Linux 7 Server - Extended Life Cycle Support (RPMs)',
'rhva6': ('Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)'),
'rhs7': 'Red Hat Satellite 6.11 (for RHEL 7 Server) (RPMs)',
'rhs8': 'Red Hat Satellite 6.13 for RHEL 8 x86_64 (RPMs)',
Expand Down Expand Up @@ -356,8 +358,22 @@
'releasever': '7Server',
'arch': 'x86_64',
'distro': 'rhel7',
'reposet': REPOSET['rhel7'],
'product': PRDS['rhel'],
'reposet': REPOSET['rhel7_els'],
'product': PRDS['rhel_els'],
'major_version': 7,
'distro_repository': True,
'key': 'rhel',
'version': '7.9',
'basearch': 'x86_64',
},
'rhel7_els': {
'id': 'rhel-7-server-els-rpms',
'name': 'Red Hat Enterprise Linux 7 Server - Extended Life Cycle Support RPMs x86_64',
'releasever': '7Server',
'arch': 'x86_64',
'distro': 'rhel7',
'reposet': REPOSET['rhel7_els'],
'product': PRDS['rhel_els'],
'major_version': 7,
'distro_repository': True,
'key': 'rhel',
Expand Down
2 changes: 1 addition & 1 deletion tests/foreman/api/test_convert2rhel.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def enable_rhel_subscriptions(module_target_sat, module_els_sca_manifest_org, ve
repo_names = ['rhel8_bos', 'rhel8_aps']
minor = version[1:]
else:
repo_names = ['rhel7']
repo_names = ['rhel7_els']

rh_repos = []
tasks = []
Expand Down

0 comments on commit 94bacfa

Please sign in to comment.