airgun.entities.contenthost
¶
Module Contents¶
Classes¶
Navigate to All Content Hosts screen. |
|
Navigate to Content Host details screen. |
|
Navigate to Errata details screen. |
- class airgun.entities.contenthost.ContentHostEntity(browser)¶
- endpoint_path = /content_hosts¶
- delete(entity_name)¶
Delete existing content host
- search(value)¶
Search for specific content host
- read_all(widget_names=None)¶
Read all values from content host title page. Optionally, read only the widgets in widget_names.
- read(entity_name, widget_names=None)¶
Read content host details, optionally read only the widgets in widget_names.
- execute_package_action(entity_name, action_type, value, installed_via='rex')¶
Execute remote package action on a content host.
The installation method is not set here, but the path changes according to the method used. For katello-agent, the Content Hosts’ Task tab displays the progress. If REX is used, the Job Invocation view displays the progress. In 6.10, REX became the default method.
- Parameters
entity_name – content host name to remotely execute package action on
action_type – remote action to execute. Can be one of 5: ‘Package Install’, ‘Package Update’, ‘Package Remove’, ‘Group Install’ or ‘Group Remove’
value – Package or package group group name to remotely install/upgrade/remove (depending on action_type)
installed_via – what installation method was used (REX or katello-agent)
- Returns
Returns a dict containing task status details
- bulk_set_syspurpose(hosts, values)¶
Set system purpose for multiple hosts
- execute_module_stream_action(entity_name, action_type, module_name, stream_version, customize=False, customize_values=None)¶
Execute remote module_stream action on a content
- Parameters
entity_name – content host name
action_type – remote action to execute on content host. Action value can be one of them e.g. ‘Enable’, ‘Disable’, ‘Install’, ‘Update’, ‘Remove’, ‘Reset’
module_name – Module Stream name to remotely install/upgrade/remove (depending on action_type)
stream_version – String with Stream Version of Module
customize – Boolean indicating if additional custom action should be called
customize_values – Dict with custom actions to run. Mandatory if customize is True
- Returns
Returns a dict containing job status details
- search_package(entity_name, package_name)¶
Search for specific package installed in content host
- search_module_stream(entity_name, module_name, stream_version=None, status='All')¶
Search for specific package installed in content host
- install_errata(entity_name, errata_id, install_via=None)¶
Install errata on a content host
- Parameters
name – content host name to apply errata on
errata_id – errata id or title, e.g. ‘RHEA-2012:0055’
install_via (str) – via which mean to install errata. Available options: “katello”, “rex”, “rex_customize”
- Returns
Returns a dict containing task status details
- search_errata(entity_name, errata_id, environment=None)¶
Search for specific errata applicable for content host.
- read_errata_details(entity_name, errata_id, environment=None)¶
Read Details for specific errata applicable for content host.
- export()¶
Export content hosts list.
- Return str
path to saved file
- add_subscription(entity_name, subscription_name)¶
Add a subscription to content host.
- update(entity_name, values)¶
Update content host values.
- class airgun.entities.contenthost.ShowAllContentHosts(obj, navigate_obj, logger=None)¶
Navigate to All Content Hosts screen.
- VIEW¶
- step(*args, **kwargs)¶
Describes the work to be done to get to the destination after the prequisite is met.
This is a default and is generally overridden.
- class airgun.entities.contenthost.EditContentHost(obj, navigate_obj, logger=None)¶
Navigate to Content Host details screen.
- Parameters
entity_name – name of content host
- VIEW¶
- prerequisite(*args, **kwargs)¶
Describes a step that must be carried our prior to this one.
This often calls a previous navigate_to, often using one of the helpers, NavigateToSibling which will navigate to a given destination using the same object, or NavigateToAttribute which will navigate to a destination against an object describe by the attribute of the parent object.
This is a default and is generally overridden.
- step(*args, **kwargs)¶
Describes the work to be done to get to the destination after the prequisite is met.
This is a default and is generally overridden.
Navigate to Errata details screen.
- Parameters
entity_name – name of content host
errata_id – id of errata
Describes a step that must be carried our prior to this one.
This often calls a previous navigate_to, often using one of the helpers, NavigateToSibling which will navigate to a given destination using the same object, or NavigateToAttribute which will navigate to a destination against an object describe by the attribute of the parent object.
This is a default and is generally overridden.
Describes the work to be done to get to the destination after the prequisite is met.
This is a default and is generally overridden.