Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.16.z] Remove rhsc7 check from robottelo #17450

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions robottelo/host_helpers/cli_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,53 +912,6 @@ def setup_org_for_a_rh_repo(
)
return result

@staticmethod
def _get_capsule_vm_distro_repos(distro):
"""Return the right RH repos info for the capsule setup"""
rh_repos = []
if distro == 'rhel7':
# Red Hat Enterprise Linux 7 Server
rh_product_arch = constants.REPOS['rhel7']['arch']
rh_product_releasever = constants.REPOS['rhel7']['releasever']
rh_repos.append(
{
'product': constants.PRDS['rhel'],
'repository-set': constants.REPOSET['rhel7'],
'repository': constants.REPOS['rhel7']['name'],
'repository-id': constants.REPOS['rhel7']['id'],
'releasever': rh_product_releasever,
'arch': rh_product_arch,
'cdn': True,
}
)
# Red Hat Software Collections (for 7 Server)
rh_repos.append(
{
'product': constants.PRDS['rhscl'],
'repository-set': constants.REPOSET['rhscl7'],
'repository': constants.REPOS['rhscl7']['name'],
'repository-id': constants.REPOS['rhscl7']['id'],
'releasever': rh_product_releasever,
'arch': rh_product_arch,
'cdn': True,
}
)
# Red Hat Satellite Capsule 6.2 (for RHEL 7 Server)
rh_repos.append(
{
'product': constants.PRDS['rhsc'],
'repository-set': constants.REPOSET['rhsc7'],
'repository': constants.REPOS['rhsc7']['name'],
'repository-id': constants.REPOS['rhsc7']['id'],
'url': settings.repos.capsule_repo,
'cdn': settings.robottelo.cdn or not settings.repos.capsule_repo,
}
)
else:
raise CLIFactoryError(f'distro "{distro}" not supported')

return rh_product_arch, rh_product_releasever, rh_repos

def add_role_permissions(self, role_id, resource_permissions):
"""Create role permissions found in resource permissions dict

Expand Down
2 changes: 1 addition & 1 deletion robottelo/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def enable_repo(self, repo, force=False):
downstream_repo = settings.repos.sattools_repo['rhel7']
elif repo == constants.REPOS['rhst8']['id']:
downstream_repo = settings.repos.sattools_repo['rhel8']
elif repo in (constants.REPOS['rhsc7']['id'], constants.REPOS['rhsc8']['id']):
elif repo in (constants.REPOS['rhsc8']['id'], constants.REPOS['rhsc9']['id']):
downstream_repo = settings.repos.capsule_repo
if force or settings.robottelo.cdn or not downstream_repo:
return self.execute(f'subscription-manager repos --enable {repo}')
Expand Down
Loading