airgun.views.contenthost

Module Contents

Classes

StatusIcon

Small icon indicating subscription or katello-agent status. Can be

InstallableUpdatesCellView

Installable Updates Table Cell View for content host view Table

ContentHostsView

Base view for Satellite pages

ContentHostDetailsView

Base view for Satellite pages

ContentHostTaskDetailsView

Common view for task details screen. Can be found for most of tasks for

SyspurposeBulkActionView

Base view for Satellite pages

ErrataDetailsView

Base view for Satellite pages

class airgun.views.contenthost.StatusIcon(parent, locator=None, logger=None)

Small icon indicating subscription or katello-agent status. Can be colored in either green, yellow or red.

Example html representation:

<span
 ng-class="table.getHostStatusIcon(host.subscription_global_status)"
 class="red host-status pficon pficon-error-circle-o status-error">
</span>

Locator example:

//span[contains(@ng-class, 'host.subscription_global_status')]
//i[contains(@ng-class, 'host.subscription_global_status')]
property color

Returns string representing icon color: ‘red’, ‘yellow’, ‘green’ or ‘unknown’.

read()

Returns current icon color

class airgun.views.contenthost.InstallableUpdatesCellView(parent, logger=None, **kwargs)

Installable Updates Table Cell View for content host view Table

class errata(parent, logger=None, **kwargs)

View is a kind of abstract widget that can hold another widgets. Remembers the order, so therefore it can function like a form with defined filling order.

It looks like this:

class Login(View):
    user = SomeInputWidget('user')
    password = SomeInputWidget('pass')
    login = SomeButtonWidget('Log In')

    def a_method(self):
        do_something()

The view is usually instantiated with an instance of widgetastic.browser.Browser, which will then enable resolving of all of the widgets defined.

Parameters
  • parent – A parent View or widgetastic.browser.Browser

  • additional_context – If the view needs some context, for example - you want to check that you are on the page of user XYZ but you can also be on the page for user FOO, then you shall use the additional_context to pass in required variables that will allow you to detect this.

ROOT = ./a[contains(@ui-sref, 'errata')]
security
bug_fix
enhancement
ROOT = .
class airgun.views.contenthost.ContentHostsView(parent, logger=None, **kwargs)

Base view for Satellite pages

title
export
register
actions
dialog
select_all
table
pagination
property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool

class airgun.views.contenthost.ContentHostDetailsView(parent, logger=None, **kwargs)

Base view for Satellite pages

class details(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

name
uuid
bios_uuid
description
type
katello_agent
virtual_guests
registered_through
subscription_status
details
auto_attach
system_purpose_status
service_level
usage_type
role
addons
os
architecture
number_of_cpus
sockets
cores_per_socket
ram
virtual_guest
security
bug_fix
enhancement
release_version
content_view
lce
registered
registered_by
last_checkin
class provisioning_details(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

TAB_NAME = Provisioning Details
name
status
operating_system
puppet_environment
last_puppet_report
model
host_group
class subscriptions(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

SUB_ITEM = Subscriptions
status
auto_attach
run_auto_attach
service_level
resources
class host_collections(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

TAB_NAME = Host Collections
resources
class packages_actions(parent, logger=None, **kwargs)

Regular primary level Tab with dropdown.

Usage:

@View.nested
class mytab(SatTabWithDropdown):
    TAB_NAME = 'My Tab'
    SUB_ITEM = 'My Tab Dropdown Item'
TAB_NAME = Packages
SUB_ITEM = Actions
action_type
name
perform
update_all_packages
class packages_installed(parent, logger=None, **kwargs)

Regular primary level Tab with dropdown.

Usage:

@View.nested
class mytab(SatTabWithDropdown):
    TAB_NAME = 'My Tab'
    SUB_ITEM = 'My Tab Dropdown Item'
TAB_NAME = Packages
SUB_ITEM = Installed
remove_selected
table
class packages_applicable(parent, logger=None, **kwargs)

Regular primary level Tab with dropdown.

Usage:

@View.nested
class mytab(SatTabWithDropdown):
    TAB_NAME = 'My Tab'
    SUB_ITEM = 'My Tab Dropdown Item'
TAB_NAME = Packages
SUB_ITEM = Applicable
upgrade_selected
update_all_packages
table
class errata(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

lce_filter
searchbox
apply_selected
recalculate
table
select_all
pagination
search(query, lce=None)

Apply available filters before proceeding with searching and automatically set proper search mask if errata id instead of errata title was passed.

Parameters
  • query (str) – search query to type into search field. Both errata id (RHEA-2012:0055) and errata title (Sea_Erratum) are supported.

  • lce (str optional) – filter by lifecycle environment

Returns

list of dicts representing table rows

Return type

list

class module_streams(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

TAB_NAME = Module Streams
status_filter
table
search(query, status='All')

Searches for Module Streams. Apply available filters before proceeding with searching. By default ‘All’ is passed

Parameters
  • query (str) – search query to type into search field.

  • status (str optional) – filter by status of module stream on host

Returns

list of dicts representing table rows

Return type

list

class repository_sets(parent, logger=None, **kwargs)

Regular primary level Tab.

Usage:

@View.nested
class mytab(SatTab):
    TAB_NAME = 'My Tab'
@View.nested
class subscriptions(SatTab):
    # no need to specify 'TAB_NAME', it will be set to 'Subscriptions'
    # automatically
    pass

Note that TAB_NAME is optional and if it’s absent - capitalized class name is used instead, which is useful for simple tab names like ‘Subscriptions’

TAB_NAME = Repository Sets
show_all
limit_to_lce
actions
table
read()

Sometimes no checkboxes are checked off by default, selecting “Show All” in such case.

breadcrumb
unregister
dialog
property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool

class airgun.views.contenthost.ContentHostTaskDetailsView(parent, logger=None, **kwargs)

Common view for task details screen. Can be found for most of tasks for various entities like Products, Repositories, Errata etc.

property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool

class airgun.views.contenthost.SyspurposeBulkActionView(parent, logger=None, **kwargs)

Base view for Satellite pages

title
service_level
role
usage_type
assign
property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool

class airgun.views.contenthost.ErrataDetailsView(parent, logger=None, **kwargs)

Base view for Satellite pages

breadcrumb
advisory
type
title
issued
updated
description
last_updated_on
reboot_suggested
packages
module_streams
property is_displayed

Overrides the Widget.is_displayed(). The difference is that if the view does not have the root locator, it assumes it is displayed.

Returns

bool