airgun.views.discoveredhosts

Module Contents

Classes

DiscoveredHostsViewTable

Discovered hosts table that has a different no rows message location.

DiscoveredHostsView

Main discovered hosts view

DiscoveredHostDetailsTableColumn

A Table column for Discovered host details Table Row

DiscoveredHostDetailsTableRow

A Table Row for Discovered host details Table

DiscoveredHostDetailsTable

A Table represented by two columns where the property name is the first

DiscoveredHostDetailsView

Discovered Host details view

DiscoveredHostsActionDialog

Common dialog view for all discovered hosts actions

DiscoveredHostsAutoProvisionDialog

Discovered hosts Auto Provision action dialog view

DiscoveredHostsAssignOrganizationDialog

Discovered hosts Assign Organization action dialog view

DiscoveredHostsAssignLocationDialog

Discovered hosts Assign Location action dialog view

DiscoveredHostsRebootDialog

Discovered hosts Reboot dialog action view

DiscoveredHostsDeleteDialog

Discovered hosts Delete dialog action view

DiscoveredHostProvisionDialog

Discovered host Provision action dialog view

DiscoveredHostEditProvisioningView

Discovered Host Edit Provisioning View,

class airgun.views.discoveredhosts.DiscoveredHostsViewTable(parent, locator, column_widgets=None, assoc_column=None, rows_ignore_top=None, rows_ignore_bottom=None, top_ignore_fill=False, bottom_ignore_fill=False, logger=None)

Discovered hosts table that has a different no rows message location.

Example html representation:

<div id="content">
    <table ...>

    </table>
    No entries found
</div>
no_rows_message = //div[@id='content' and contains(., 'No entries found')]
class airgun.views.discoveredhosts.DiscoveredHostsView(parent, logger=None, **kwargs)

Main discovered hosts view

title
actions
table
welcome_message
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

is_searchable()

Verify that search procedure can be executed against discovered hosts page. That means that we have search field present.

Note: When no discovered host exists in the system the search box does not exist in the DOM. Also there is no welcome_message.

class airgun.views.discoveredhosts.DiscoveredHostDetailsTableColumn(parent, position, absolute_position=None, logger=None)

A Table column for Discovered host details Table Row

__locator__()
class airgun.views.discoveredhosts.DiscoveredHostDetailsTableRow(parent, index, logger=None)

A Table Row for Discovered host details Table

Column
class airgun.views.discoveredhosts.DiscoveredHostDetailsTable(parent, locator, column_widgets=None, assoc_column=None, rows_ignore_top=None, rows_ignore_bottom=None, top_ignore_fill=False, bottom_ignore_fill=False, logger=None)

A Table represented by two columns where the property name is the first column and the property value is the second column.

Example html representation:

<table>
    <tbody>
        <tr>
            <th><strong> architecture </strong></th>
            <td>x86_64</td>
        </tr>
        <tr>
            <th><strong> discovery_bootif </strong></th>
            <td>52:d2:5f:73:31:e2</td>
        </tr>
        <tr>
            <th><strong> discovery_bootip</strong></th>
            <td>10.8.212.60</td>
        </tr>
Row
read()

Transform rows to a dict {property_name: property_value …}.

class airgun.views.discoveredhosts.DiscoveredHostDetailsView(parent, logger=None, **kwargs)

Discovered Host details view

breadcrumb
back
actions
delete
expand_all
interfaces
highlights
storage
hardware
network
software
miscellaneous
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.discoveredhosts.DiscoveredHostsActionDialog(parent, logger=None, **kwargs)

Common dialog view for all discovered hosts actions

title
table
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.discoveredhosts.DiscoveredHostsAutoProvisionDialog(parent, logger=None, **kwargs)

Discovered hosts Auto Provision action dialog view

title
class airgun.views.discoveredhosts.DiscoveredHostsAssignOrganizationDialog(parent, logger=None, **kwargs)

Discovered hosts Assign Organization action dialog view

title
organization
class airgun.views.discoveredhosts.DiscoveredHostsAssignLocationDialog(parent, logger=None, **kwargs)

Discovered hosts Assign Location action dialog view

title
location
class airgun.views.discoveredhosts.DiscoveredHostsRebootDialog(parent, logger=None, **kwargs)

Discovered hosts Reboot dialog action view

title
class airgun.views.discoveredhosts.DiscoveredHostsDeleteDialog(parent, logger=None, **kwargs)

Discovered hosts Delete dialog action view

title
class airgun.views.discoveredhosts.DiscoveredHostProvisionDialog(parent, logger=None, **kwargs)

Discovered host Provision action dialog view

ROOT = .//div[@class='modal-content']
title
host_group
organization
location
cancel
customize_create
quick_create
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

property is_all_displayed

Check that all the required dialog widgets fields are displayed

before_fill(values=None)

Before filling we have to wait and ensure that all the required dialog widgets fields are visible.

class airgun.views.discoveredhosts.DiscoveredHostEditProvisioningView(parent, logger=None, **kwargs)

Discovered Host Edit Provisioning View,

Note: When we click on customize_create in dialog

DiscoveredHostProvisionDialog, the user is redirect to this view.

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