airgun.views.hostcollection
¶
Module Contents¶
Classes¶
Base view for Satellite pages |
|
Base view for Satellite pages |
|
Base view for Satellite pages |
|
Handle an HTML non normalized Radio group according to the current |
|
Base view for Satellite pages |
|
Base view for Satellite pages |
|
Base view for Satellite pages |
|
Base view for Satellite pages |
|
Common view for task details screen. Can be found for most of tasks for |
|
Base view for Satellite pages |
- class airgun.views.hostcollection.HostCollectionsView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- title¶
- new¶
- table¶
- class airgun.views.hostcollection.HostCollectionCreateView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- breadcrumb¶
- name¶
- unlimited_hosts¶
- max_hosts¶
- description¶
- submit¶
- class airgun.views.hostcollection.HostCollectionEditView(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¶
- description¶
- content_hosts¶
- content_host_limit¶
- manage_packages¶
- install_errata¶
- manage_module_streams¶
- change_assigned_content¶
- class hosts(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 = Hosts¶
- resources¶
- breadcrumb¶
- actions¶
- dialog¶
- class airgun.views.hostcollection.HostCollectionPackageContentRadioGroup(parent, locator, logger=None)¶
Handle an HTML non normalized Radio group according to the current architecture.
- Note: This is a temporary solution, a fix will be issued upstream,
when the fix will be available downstream we should replace the implementation with RadioGroup.
Example html representation:
<div> <input type="radio" id="package" ...> <label>Package</label> <input type="radio" id="package_group" ...> <label>Package Group</label>
- buttons_name_id_map¶
- get_input_by_name(name)¶
- property selected¶
Return the name of the button that is currently selected.
- select(name)¶
Select specific radio button in the group
- class airgun.views.hostcollection.HostCollectionManagePackagesView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- class dialog(parent, logger=None, **kwargs)¶
Usual confirmation dialog with two buttons and close ‘x’ button in the right corner. Has nothing in common with javascript alert, confirm or prompt pop-ups.
Example html representation:
<div class="modal-content"> <button type="button" class="close" ... ng-click="cancel()"> <div class="modal-footer ng-scope"> <button class="btn btn-danger" ng-click="ok()"> <button class="btn ..." ng-click="cancel()"...>
Locator example:
//div[@class='modal-content']
- ROOT = .//div[@class='inline-confirmation']¶
- confirm_dialog¶
- cancel_dialog¶
- title¶
- update_all¶
- content_type¶
- packages¶
- install¶
- update¶
- remove¶
- done¶
- property is_displayed¶
The view is displayed when it’s title exists
- get_action_button(name)¶
Return an action button by it’s name
- apply_action(name, action_via='via Katello Agent')¶
Apply an action by name using action via if indicated
- class airgun.views.hostcollection.HostCollectionInstallErrataView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- title¶
- search¶
- refresh¶
- search_url¶
- install¶
- table¶
- dialog¶
- property is_displayed¶
The view is displayed when it’s title exists
- class airgun.views.hostcollection.HostCollectionManageModuleStreamsView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- title¶
- table¶
- property is_displayed¶
The view is displayed when it’s title exists
- class airgun.views.hostcollection.HostCollectionChangeAssignedContentView(parent, logger=None, **kwargs)¶
Base view for Satellite pages
- class dialog(parent, logger=None, **kwargs)¶
Usual confirmation dialog with two buttons and close ‘x’ button in the right corner. Has nothing in common with javascript alert, confirm or prompt pop-ups.
Example html representation:
<div class="modal-content"> <button type="button" class="close" ... ng-click="cancel()"> <div class="modal-footer ng-scope"> <button class="btn btn-danger" ng-click="ok()"> <button class="btn ..." ng-click="cancel()"...>
Locator example:
//div[@class='modal-content']
- ROOT = .//div[@ng-show='showConfirm']¶
- confirm_dialog¶
- cancel_dialog¶
- title¶
- lce¶
- content_view¶
- assign¶
- property is_displayed¶
The view is displayed when it’s title exists
- class airgun.views.hostcollection.HostCollectionActionTaskDetailsView(parent, logger=None, **kwargs)¶
Common view for task details screen. Can be found for most of tasks for various entities like Products, Repositories, Errata etc.
- title¶
- breadcrumb¶
- property is_displayed¶
The view is displayed when it’s title exists
- class airgun.views.hostcollection.HostCollectionActionRemoteExecutionJobCreate(parent, logger=None, **kwargs)¶
Base view for Satellite pages