airgun.views.host_new

Module Contents

Classes

Card

Each card in host view has it's own title with same locator

DropdownWithDescripton

Dropdown with description below items

HostDetailsCard

Details card body contains multiple host detail information

NewHostDetailsView

Base view for Satellite pages

InstallPackagesView

Install packages modal

ModuleStreamDialog

PF4 confirmation dialog with two buttons and close 'x' button in the

class airgun.views.host_new.Card(parent, logger=None, **kwargs)

Each card in host view has it’s own title with same locator

title
class airgun.views.host_new.DropdownWithDescripton(parent, text=None, locator=None, logger=None)

Dropdown with description below items

ITEM_LOCATOR = .//*[contains(@class, 'pf-c-dropdown__menu-item') and contains(text(), {})]
class airgun.views.host_new.HostDetailsCard(parent, logger=None, **kwargs)

Details card body contains multiple host detail information

LABELS = //div[@class="pf-c-description-list__group"]//dt//span
VALUES = //div[@class="pf-c-description-list__group"]//dd//descendant::*/text()/..
read()

Return a dictionary where keys are property names and values are property values. Values are either in span elements or in div elements

class airgun.views.host_new.NewHostDetailsView(parent, logger=None, **kwargs)

Base view for Satellite pages

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

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

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

Each card in host view has it’s own title with same locator

ROOT = .//article[.//div[text()="Details"]]
details
class host_status(parent, logger=None, **kwargs)

Each card in host view has it’s own title with same locator

ROOT = .//article[.//span[text()="Host status"]]
status
status_success
status_warning
status_error
status_disabled
class recent_audits(parent, logger=None, **kwargs)

Each card in host view has it’s own title with same locator

ROOT = .//article[.//div[text()="Recent audits"]]
all_audits
table
class installable_errata(parent, logger=None, **kwargs)

Each card in host view has it’s own title with same locator

ROOT = .//article[.//div[text()="Installable errata"]]
security_advisory
bug_fixes
enhancements
class total_risks(parent, logger=None, **kwargs)

Each card in host view has it’s own title with same locator

ROOT = .//article[.//div[text()="Total risks"]]
low
moderate
important
critical
class recent_jobs(parent, logger=None, **kwargs)

Each card in host view has it’s own title with same locator

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

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

table
class running(parent, logger=None, **kwargs)

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

table
class scheduled(parent, logger=None, **kwargs)

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

table
ROOT = .//article[.//div[text()="Recent jobs"]]
actions
ROOT = .//div[contains(@class, "host-details-tab-item")]
class content(parent, logger=None, **kwargs)

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

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

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

ROOT = .//div[@id="packages-tab"]
select_all
searchbar
status_filter
upgrade
dropdown
table
pagination
class errata(parent, logger=None, **kwargs)

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

ROOT = .//div[@id="errata-tab"]
select_all
searchbar
type_filter
severity_filter
apply
dropdown
table
pagination
class module_streams(parent, logger=None, **kwargs)

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

TAB_NAME = Module streams
ROOT = .//div[@id="modulestreams-tab"]
searchbar
status_filter
installation_status_filter
dropdown
table
pagination
class repository_sets(parent, logger=None, **kwargs)

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

TAB_NAME = Repository sets
ROOT = .//div[@id="repo-sets-tab"]
select_all
searchbar
status_filter
dropdown
table
pagination
ROOT = .//div
class traces(parent, logger=None, **kwargs)

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

enable_traces
class ansible(parent, logger=None, **kwargs)

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

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

Represents the Patternfly Tab widget.

Selects itself automatically when any child widget gets accessed, ensuring that the widget is visible.

https://www.patternfly.org/v4/documentation/react/components/tabs

breadcrumb
edit
dropdown
schedule_job
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.host_new.InstallPackagesView(parent, logger=None, **kwargs)

Install packages modal

ROOT = .//div[@id="package-install-modal"]
select_all
searchbar
table
pagination
install
cancel
class airgun.views.host_new.ModuleStreamDialog(parent, logger=None, **kwargs)

PF4 confirmation dialog with two buttons and close ‘x’ button in the right corner.

confirm_dialog
cancel_dialog