airgun.views.discoveredhosts
¶
Module Contents¶
Classes¶
Discovered hosts table that has a different no rows message location. |
|
Main discovered hosts view |
|
A Table column for Discovered host details Table Row |
|
A Table Row for Discovered host details Table |
|
A Table represented by two columns where the property name is the first |
|
Discovered Host details view |
|
Common dialog view for all discovered hosts actions |
|
Discovered hosts Auto Provision action dialog view |
|
Discovered hosts Assign Organization action dialog view |
|
Discovered hosts Assign Location action dialog view |
|
Discovered hosts Reboot dialog action view |
|
Discovered hosts Delete dialog action view |
|
Discovered host Provision action dialog view |
|
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
- 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¶
- class airgun.views.discoveredhosts.DiscoveredHostsActionDialog(parent, logger=None, **kwargs)¶
Common dialog view for all discovered hosts actions
- title¶
- table¶
- submit¶
- 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
- 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.