airgun.views.lifecycleenvironment

Module Contents

Classes

LCEView

Base view for Satellite pages

LCECreateView

Base view for Satellite pages

LCEEditView

Base view for Satellite pages

class airgun.views.lifecycleenvironment.LCEView(parent, logger=None, **kwargs)

Base view for Satellite pages

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

Parametrized view for the lifecycle environement, takes an LCE name on instantiation

ROOT
PARAMETERS = ['lce_name']
LAST_ENV = //div[@ng-repeat='path in paths']//table//th[last()]
current_env
envs_table
new_child
classmethod all(browser)

Helper method which returns list of tuples with all available LCE names (last available environment is used as a name). It’s required for read() to work properly.

read()

Returns content views and count hosts count per each available lifecycle environment We get dictionary in next format:

{
    'LCE_1': {'Content Views': 0, 'Content Hosts': 1},
    'LCE_2': {'Content Views': 1, 'Content Hosts': 2},
}
title
new_path
edit_parent_env
parent_env_cvs_count
parent_env_products_count
parent_env_products_errata
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.lifecycleenvironment.LCECreateView(parent, logger=None, **kwargs)

Base view for Satellite pages

breadcrumb
name
label
description
submit
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.lifecycleenvironment.LCEEditView(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
label
description
unauthenticated_pull
registry_name_pattern
class content_views(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 = Content Views
resources
class packages(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’

cv_filter
repo_filter
searchbox
table
search(query, cv=None, repo=None)

Apply available filters before proceeding with searching.

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

  • cv (str optional) – filter by content view name

  • repo (str optional) – filter by repository name

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
cv_filter
repo_filter
searchbox
table
search(query, cv=None, repo=None)

Apply available filters before proceeding with searching.

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

  • cv (str optional) – filter by content view name

  • repo (str optional) – filter by repository name

Returns

list of dicts representing table rows

Return type

list

breadcrumb
remove
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