robottelo.upgrade_utility

Common Upgrade test utilities

Module Contents

Functions

run_goferd(client_hostname=None)

Start the goferd process.

check_package_installed(client_hostname=None, package=None)

Verify if package is installed on docker content host.

install_or_update_package(client_hostname=None, update=False, package=None)

Install/update the package on docker content host.

create_repo(rpm_name, repo_path, post_upgrade=False, other_rpm=None)

Creates a custom yum repository, that will be synced to satellite

host_status(client_container_name=None)

fetch the content host details.

host_location_update(client_container_name=None, logger_obj=None, loc=None)

Check the content host status (as package profile update task does

publish_content_view(org=None, repolist=None)

publish content view and return content view

robottelo.upgrade_utility.run_goferd(client_hostname=None)

Start the goferd process. :param: str client_hostname: It should be container’s id.

robottelo.upgrade_utility.check_package_installed(client_hostname=None, package=None)

Verify if package is installed on docker content host. :param: str client_hostname: It should be container’s id. :param: str package: pass the package name to check the status :return: name of the installed package

robottelo.upgrade_utility.install_or_update_package(client_hostname=None, update=False, package=None)

Install/update the package on docker content host. :param: str client_hostname: It should be container’s id. :param: bool update: :param: str package:

robottelo.upgrade_utility.create_repo(rpm_name, repo_path, post_upgrade=False, other_rpm=None)

Creates a custom yum repository, that will be synced to satellite and later to capsule from satellite :param: str rpm_name : rpm name, required to create a repository. :param: str repo_path: Name of the repository path :param: bool post_upgrade: For Pre-upgrade, post_upgrade value will be False :param: str other_rpm: If we want to clean a specific rpm and update with latest then we pass other rpm.

robottelo.upgrade_utility.host_status(client_container_name=None)

fetch the content host details. :param: str client_container_name: The content host hostname :return: nailgun.entity.host: host

robottelo.upgrade_utility.host_location_update(client_container_name=None, logger_obj=None, loc=None)

Check the content host status (as package profile update task does take time to upload) and update location.

Param

str client_container_name: The content host hostname

Param

str loc: Location

robottelo.upgrade_utility.publish_content_view(org=None, repolist=None)

publish content view and return content view :param: str org: Name of the organisation :param: str repolist: Name of the repolist :return: Return content view