airgun.views.discoveredhosts

Module Contents

class airgun.views.discoveredhosts.DiscoveredHostsViewTable

Bases: airgun.widgets.SatTable

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

Bases: airgun.views.common.BaseLoggedInView, airgun.views.common.SearchableViewMixin

Main discovered hosts view

title
actions
table
welcome_message
is_displayed
is_searchable(self)

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

Bases: widgetastic.widget.TableColumn

A Table column for Discovered host details Table Row

__locator__(self)
class airgun.views.discoveredhosts.DiscoveredHostDetailsTableRow

Bases: widgetastic.widget.TableRow

A Table Row for Discovered host details Table

Column
class airgun.views.discoveredhosts.DiscoveredHostDetailsTable

Bases: airgun.widgets.SatTableWithoutHeaders

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(self)

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

class airgun.views.discoveredhosts.DiscoveredHostDetailsView

Bases: airgun.views.common.BaseLoggedInView

Discovered Host details view

breadcrumb
back
actions
delete
expand_all
interfaces
highlights
storage
hardware
network
software
miscellaneous
is_displayed
class airgun.views.discoveredhosts.DiscoveredHostsActionDialog

Bases: airgun.views.common.BaseLoggedInView

Common dialog view for all discovered hosts actions

title
table
submit
is_displayed
class airgun.views.discoveredhosts.DiscoveredHostsAutoProvisionDialog

Bases: airgun.views.discoveredhosts.DiscoveredHostsActionDialog

Discovered hosts Auto Provision action dialog view

title
class airgun.views.discoveredhosts.DiscoveredHostsAssignOrganizationDialog

Bases: airgun.views.discoveredhosts.DiscoveredHostsActionDialog

Discovered hosts Assign Organization action dialog view

title
organization
class airgun.views.discoveredhosts.DiscoveredHostsAssignLocationDialog

Bases: airgun.views.discoveredhosts.DiscoveredHostsActionDialog

Discovered hosts Assign Location action dialog view

title
location
class airgun.views.discoveredhosts.DiscoveredHostsRebootDialog

Bases: airgun.views.discoveredhosts.DiscoveredHostsActionDialog

Discovered hosts Reboot dialog action view

title
class airgun.views.discoveredhosts.DiscoveredHostsDeleteDialog

Bases: airgun.views.discoveredhosts.DiscoveredHostsActionDialog

Discovered hosts Delete dialog action view

title
class airgun.views.discoveredhosts.DiscoveredHostProvisionDialog

Bases: airgun.views.common.BaseLoggedInView

Discovered host Provision action dialog view

ROOT = .//div[@class='modal-content']
title
host_group
organization
location
cancel
customize_create
quick_create
is_displayed
is_all_displayed

Check that all the required dialog widgets fields are displayed

before_fill(self, values=None)

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

class airgun.views.discoveredhosts.DiscoveredHostEditProvisioningView

Bases: airgun.views.host.HostCreateView

Discovered Host Edit Provisioning View,

Note: When we click on customize_create in dialog
DiscoveredHostProvisionDialog, the user is redirect to this view.
is_displayed