diff --git a/robottelo/constants/__init__.py b/robottelo/constants/__init__.py index 7ef51f27892..ba7e7498492 100644 --- a/robottelo/constants/__init__.py +++ b/robottelo/constants/__init__.py @@ -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)', @@ -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', diff --git a/tests/foreman/api/test_convert2rhel.py b/tests/foreman/api/test_convert2rhel.py index 830a455fdbf..43697ff6fbf 100644 --- a/tests/foreman/api/test_convert2rhel.py +++ b/tests/foreman/api/test_convert2rhel.py @@ -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 = []