Skip to content

Commit c160325

Browse files
Fix test failures for rhel6 client
1 parent 6405b44 commit c160325

File tree

7 files changed

+22
-8
lines changed

7 files changed

+22
-8
lines changed

conf/supportability.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ supportability:
22
content_hosts:
33
default_os_name: "RedHat"
44
rhel:
5-
versions: [6, 7,'7_fips', 8, '8_fips', 9, '9_fips']
5+
versions: [7,'7_fips', 8, '8_fips', 9, '9_fips']

pytest_fixtures/component/provision_capsule_pxe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def capsule_provisioning_rhel_content(
237237
assert task_status['result'] == 'success'
238238
rhel_xy = Version(
239239
constants.REPOS['kickstart'][f'rhel{rhel_ver}']['version']
240-
if rhel_ver == 7
240+
if rhel_ver <= 7
241241
else constants.REPOS['kickstart'][f'rhel{rhel_ver}_bos']['version']
242242
)
243243
o_systems = sat.api.OperatingSystem().search(

pytest_fixtures/component/provision_pxe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def module_provisioning_rhel_content(
9898
assert task_status['result'] == 'success'
9999
rhel_xy = Version(
100100
constants.REPOS['kickstart'][f'rhel{rhel_ver}']['version']
101-
if rhel_ver == 7
101+
if rhel_ver <= 7
102102
else constants.REPOS['kickstart'][f'rhel{rhel_ver}_bos']['version']
103103
)
104104
o_systems = sat.api.OperatingSystem().search(

pytest_fixtures/component/provisioning_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def module_sync_kickstart_content(
9090
assert task_status['result'] == 'success'
9191
rhel_xy = Version(
9292
constants.REPOS['kickstart'][f'rhel{rhel_ver}']['version']
93-
if rhel_ver == 7
93+
if rhel_ver <= 7
9494
else constants.REPOS['kickstart'][f'rhel{rhel_ver}_bos']['version']
9595
)
9696
o_systems = module_target_sat.api.OperatingSystem().search(

robottelo/constants/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@
290290
'rhsc8': 'Red Hat Satellite Capsule 6.16 for RHEL 8 x86_64 (RPMs)',
291291
'rhsc9': 'Red Hat Satellite Capsule 6.16 for RHEL 9 x86_64 (RPMs)',
292292
'rhsc7_iso': 'Red Hat Satellite Capsule 6.4 (for RHEL 7 Server) (ISOs)',
293+
'rhsclient6': 'Red Hat Satellite Client 6 (for RHEL 6 Server - ELS) (RPMs)',
293294
'rhsclient7': 'Red Hat Satellite Client 6 (for RHEL 7 Server) (RPMs)',
294295
'rhsclient8': 'Red Hat Satellite Client 6 for RHEL 8 x86_64 (RPMs)',
295296
'rhsclient9': 'Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs)',
@@ -433,6 +434,15 @@
433434
'id': 'rhel-7-server-satellite-capsule-6.4-isos',
434435
'name': ('Red Hat Satellite Capsule 6.4 for RHEL 7 Server ISOs x86_64'),
435436
},
437+
'rhsclient6': {
438+
'id': 'rhel-6-server-els-satellite-client-6-rpms',
439+
'name': ('Red Hat Satellite Client 6 for RHEL 6 Server - ELS RPMs x86_64'),
440+
'version': '6',
441+
'reposet': REPOSET['rhsclient6'],
442+
'product': PRDS['rhel'],
443+
'distro': 'rhel6',
444+
'key': PRODUCT_KEY_SAT_CLIENT,
445+
},
436446
'rhsclient7': {
437447
'id': 'rhel-7-server-satellite-client-6-rpms',
438448
'name': ('Red Hat Satellite Client 6 for RHEL 7 Server RPMs x86_64'),

tests/foreman/api/test_capsulecontent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ def test_positive_remove_capsule_orphans(
14161416
'repos_collection',
14171417
[
14181418
{
1419-
'distro': 'rhel9',
1419+
'distro': f'rhel{settings.content_host.default_rhel_version}',
14201420
'YumRepository': {'url': settings.repos.yum_0.url},
14211421
}
14221422
],
@@ -1527,14 +1527,14 @@ def test_complete_sync_fixes_metadata(
15271527
'Expected to see the Capsule as the content source'
15281528
)
15291529

1530-
result = rhel_contenthost.execute('dnf repolist')
1530+
result = rhel_contenthost.execute('yum repolist')
15311531
assert result.status == 0
15321532
assert repos_collection.setup_content_data['repos'][0].content_label in result.stdout
15331533

1534-
result = rhel_contenthost.execute('dnf install -y cheetah') # with dependencies
1534+
result = rhel_contenthost.execute('yum install -y cheetah') # with dependencies
15351535
assert result.status == 0
15361536

1537-
result = rhel_contenthost.execute('dnf -y update')
1537+
result = rhel_contenthost.execute('yum -y update')
15381538
assert result.status == 0
15391539

15401540
@pytest.mark.skip_if_not_set('capsule')

tests/foreman/longrun/test_oscap.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,25 @@
3131
'rhel9': f'ak_{gen_string("alpha")}_rhel9',
3232
'rhel8': f'ak_{gen_string("alpha")}_rhel8',
3333
'rhel7': f'ak_{gen_string("alpha")}_rhel7',
34+
'rhel6': f'ak_{gen_string("alpha")}_rhel6',
3435
}
3536
cv_name = {
3637
'rhel9': f'cv_{gen_string("alpha")}_rhel9',
3738
'rhel8': f'cv_{gen_string("alpha")}_rhel8',
3839
'rhel7': f'cv_{gen_string("alpha")}_rhel7',
40+
'rhel6': f'cv_{gen_string("alpha")}_rhel6',
3941
}
4042
profiles = {
4143
'rhel9': OSCAP_PROFILE['ospp8+'],
4244
'rhel8': OSCAP_PROFILE['ospp8+'],
4345
'rhel7': OSCAP_PROFILE['security7'],
46+
'rhel6': OSCAP_PROFILE['security6'],
4447
}
4548
rhel_repos = {
4649
'rhel9': settings.repos.rhel9_os,
4750
'rhel8': settings.repos.rhel8_os,
4851
'rhel7': settings.repos.rhel7_os,
52+
'rhel6': settings.repos.rhel6_os,
4953
}
5054

5155

0 commit comments

Comments
 (0)