cfme.infrastructure.config_management module¶
-
class
cfme.infrastructure.config_management.
AnsibleTower
(name=None, url=None, ssl=None, credentials=None, key=None)[source]¶ Bases:
cfme.infrastructure.config_management.ConfigManager
Configuration manager object (Ansible Tower)
Parameters: - name – Name of the Ansible Tower configuration manager
- url – URL, hostname or IP of the configuration manager
- ssl – Boolean value; True if SSL certificate validity should be checked, False otherwise
- credentials – Credentials to access the config. manager
- key – Key to access the cfme_data yaml data (same as name if not specified)
Usage:
Create provider: .. code-block:: python tower_cfg_mgr = AnsibleTower('my_tower', 'https://my-tower.example.com/api/v1', ssl=False, ConfigManager.Credential(principal='admin', secret='testing'), key='tower_yaml_key') tower_cfg_mgr.create() Update provider: .. code-block:: python with update(tower_cfg_mgr): tower_cfg_mgr.name = 'new_tower_name' Delete provider: .. code-block:: python tower_cfg_mgr.delete()
-
type
= 'Ansible Tower'¶
-
class
cfme.infrastructure.config_management.
ConfigManagementAddEntities
(*args, **kwargs)[source]¶ Bases:
widgetastic.widget.View
The entities on the add page
-
add
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
cancel
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
form
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementAddForm
(*args, **kwargs)[source]¶ Bases:
widgetastic.widget.View
Form to add a provider
-
confirm_password
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
name
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
password
¶ A class that implements the version picking functionality.
Basic usage is a descriptor in which you place instances of
VersionPick
in a view. Whenever is this instance accessed from an instance, it automatically picks the correct variant based on product_version defined in thewidgetastic.browser.Browser
.You can also use this separately using the
pick()
method.Example:
class MyView(View): something_version_dependent = VersionPick({ '1.0.0': Foo('bar'), '2.5.0': Bar('baz'), })
This sample will resolve the correct (Foo or Bar) kind of item and returns it.
Parameters: version_dict – Dictionary of version_introduced: item
-
provider_type
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
ssl
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
url
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
username
¶ A class that implements the version picking functionality.
Basic usage is a descriptor in which you place instances of
VersionPick
in a view. Whenever is this instance accessed from an instance, it automatically picks the correct variant based on product_version defined in thewidgetastic.browser.Browser
.You can also use this separately using the
pick()
method.Example:
class MyView(View): something_version_dependent = VersionPick({ '1.0.0': Foo('bar'), '2.5.0': Bar('baz'), })
This sample will resolve the correct (Foo or Bar) kind of item and returns it.
Parameters: version_dict – Dictionary of version_introduced: item
-
validate
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
zone
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementAddView
(*args, **kwargs)[source]¶ Bases:
cfme.infrastructure.config_management.ConfigManagementView
The add page
-
entities
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
is_displayed
¶ Is this view being displayed?
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementAllView
(*args, **kwargs)[source]¶ Bases:
cfme.infrastructure.config_management.ConfigManagementView
The main list view
-
entities
¶
-
is_displayed
¶ Is this view being displayed?
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
toolbar
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementDetailsToolbar
(*args, **kwargs)[source]¶ Bases:
widgetastic.widget.View
Toolbar on the details page
-
download
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
history
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
lifecycle
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
policy
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
refresh
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
view_selector
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementDetailsView
(*args, **kwargs)[source]¶ Bases:
cfme.infrastructure.config_management.ConfigManagementView
The details page
-
entities
¶
-
is_displayed
¶ Is this view being displayed?
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
toolbar
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementEditEntities
(*args, **kwargs)[source]¶ Bases:
widgetastic.widget.View
The entities on the edit page
-
cancel
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
form
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
reset
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
save
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
title
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementEditForm
(*args, **kwargs)[source]¶ Bases:
widgetastic.widget.View
Form to add a provider
-
name
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
password
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
provider_type
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
ssl
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
url
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
username
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
validate
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
zone
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementEditView
(*args, **kwargs)[source]¶ Bases:
cfme.infrastructure.config_management.ConfigManagementView
The edit page
-
entities
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
is_displayed
¶ Is this view being displayed?
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementEntities
(*args, **kwargs)[source]¶ Bases:
widgetastic_manageiq.BaseEntitiesView
The entities on the page
-
class
cfme.infrastructure.config_management.
ConfigManagementProfileEntities
(*args, **kwargs)[source]¶ Bases:
widgetastic_manageiq.BaseEntitiesView
Entities view for the detail page
-
configured_systems
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
summary
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementProfileView
(*args, **kwargs)[source]¶ Bases:
cfme.infrastructure.config_management.ConfigManagementView
The profile page
-
entities
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
is_displayed
¶ Is this view being displayed?
This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
toolbar
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementSideBar
(*args, **kwargs)[source]¶ Bases:
widgetastic.widget.View
Side bar
-
configured_systems
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
job_templates
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
providers
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementToolbar
(*args, **kwargs)[source]¶ Bases:
widgetastic.widget.View
Toolbar
-
configuration
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
download
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
lifecycle
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
policy
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
refresh
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
view_selector
¶ This class handles instantiating and caching of the widgets on view.
It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.
It also acts as a counter, so you can then order the widgets by their “creation” stamp.
-
-
class
cfme.infrastructure.config_management.
ConfigManagementView
(*args, **kwargs)[source]¶ Bases:
cfme.base.login.BaseLoggedInPage
The base page for both the all and details page
-
in_config
¶ Determine if we’re in the config section
-
-
class
cfme.infrastructure.config_management.
ConfigManager
(name=None, url=None, ssl=None, credentials=None, key=None, appliance=None)[source]¶ Bases:
cfme.utils.update.Updateable
,cfme.utils.pretty.Pretty
,cfme.utils.appliance.Navigatable
This is base class for Configuration manager objects (Red Hat Satellite, Foreman, Ansible Tower)
Parameters: - name – Name of the config. manager
- url – URL, hostname or IP of the config. manager
- ssl – Boolean value; True if SSL certificate validity should be checked, False otherwise
- credentials – Credentials to access the config. manager
- key – Key to access the cfme_data yaml data (same as name if not specified)
Usage:
Use Satellite or AnsibleTower classes instead.
-
class
Credential
(principal, secret, verify_secret=None, domain=None, **ignore)[source]¶ Bases:
cfme.base.credential.Credential
,cfme.utils.update.Updateable
-
ConfigManager.
config_profiles
¶ Returns ‘ConfigProfile’ configuration profiles (hostgroups) available on this manager
-
ConfigManager.
create
(cancel=False, validate_credentials=True, validate=True, force=False)[source]¶ Creates the manager through UI
Parameters: - cancel (bool) – Whether to cancel out of the creation. The cancel is done after all the information present in the manager has been filled in the UI.
- validate_credentials (bool) – Whether to validate credentials - if True and the credentials are invalid, an error will be raised.
- validate (bool) – Whether we want to wait for the manager’s data to load and show up in it’s detail page. True will also wait, False will only set it up.
- force (bool) – Whether to force the creation even if the manager already exists. True will try anyway; False will check for its existence and leave, if present.
-
ConfigManager.
delete
(cancel=False, wait_deleted=True, force=False)[source]¶ Deletes the manager through UI
Parameters: - cancel (bool) – Whether to cancel out of the deletion, when the alert pops up.
- wait_deleted (bool) – Whether we want to wait for the manager to disappear from the UI. True will wait; False will only delete it and move on.
- force (bool) – Whether to try to delete the manager even though it doesn’t exist. True will try to delete it anyway; False will check for its existence and leave, if not present.
-
ConfigManager.
exists
¶ Returns whether the manager exists in the UI or not
-
classmethod
ConfigManager.
load_from_yaml
(key)[source]¶ Returns ‘ConfigManager’ object loaded from yamls, based on its key
-
ConfigManager.
pretty_attr
= ['name', 'url']¶
-
ConfigManager.
quad_name
¶
-
ConfigManager.
refresh_flash_msg
= 'Refresh Provider initiated for 1 provider'¶
-
ConfigManager.
refresh_relationships
(cancel=False)[source]¶ Refreshes relationships and power states of this manager
-
ConfigManager.
systems
¶ Returns ‘ConfigSystem’ configured systems (hosts) available on this manager
-
ConfigManager.
type
= None¶
-
ConfigManager.
ui_name
¶ Return the name used in the UI
-
ConfigManager.
update
(updates, cancel=False, validate_credentials=False)[source]¶ Updates the manager through UI
Parameters: Note
utils.update use is recommended over use of this method.
-
ConfigManager.
yaml_data
¶ Returns yaml data for this manager
-
class
cfme.infrastructure.config_management.
ConfigProfile
(name, manager, appliance=None)[source]¶ Bases:
cfme.utils.pretty.Pretty
,cfme.utils.appliance.Navigatable
Configuration profile object (foreman-side hostgroup)
Parameters: - name – Name of the profile
- manager – ConfigManager object which this profile is bound to
-
pretty_attrs
= ['name', 'manager']¶
-
systems
¶ Returns ‘ConfigSystem’ objects that are active under this profile
-
class
cfme.infrastructure.config_management.
ConfigSystem
(name, profile, appliance=None)[source]¶ Bases:
cfme.utils.pretty.Pretty
,cfme.utils.appliance.Navigatable
,cfme.common.WidgetasticTaggable
The tags pages of the config system
Overridden get_tags method to deal with the fact that configured systems don’t have a details view.
-
pretty_attrs
= ['name', 'manager_key']¶
-
class
cfme.infrastructure.config_management.
Details
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ConfigManagementProfileView
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.config_management.
MgrAdd
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ConfigManagementAddView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.config_management.
MgrAll
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ConfigManagementAllView
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.config_management.
MgrDetails
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ConfigManagementDetailsView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.config_management.
MgrEdit
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ConfigManagementEditView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.config_management.
MgrEditFromDetails
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ConfigManagementEditView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.config_management.
Satellite
(name=None, url=None, ssl=None, credentials=None, key=None)[source]¶ Bases:
cfme.infrastructure.config_management.ConfigManager
Configuration manager object (Red Hat Satellite, Foreman)
Parameters: - name – Name of the Satellite/Foreman configuration manager
- url – URL, hostname or IP of the configuration manager
- ssl – Boolean value; True if SSL certificate validity should be checked, False otherwise
- credentials – Credentials to access the config. manager
- key – Key to access the cfme_data yaml data (same as name if not specified)
Usage:
Create provider: .. code-block:: python satellite_cfg_mgr = Satellite('my_satellite', 'my-satellite.example.com', ssl=False, ConfigManager.Credential(principal='admin', secret='testing'), key='satellite_yaml_key') satellite_cfg_mgr.create() Update provider: .. code-block:: python with update(satellite_cfg_mgr): satellite_cfg_mgr.name = 'new_satellite_name' Delete provider: .. code-block:: python satellite_cfg_mgr.delete()
-
type
¶ Returns presumed type of the manager based on CFME version
Note
We cannot actually know the type of the provider from the UI. This represents the supported type by CFME version and is to be used in navigation.
-
class
cfme.infrastructure.config_management.
SysAll
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
ConfigManagementAllView
-
prerequisite
¶ This is a helper descriptor for destinations which are linked to an attribute of the object.
For instance, imagine you have an object that has an attribute(parent) which has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-
-
class
cfme.infrastructure.config_management.
SysEditTags
(obj, navigate_obj)[source]¶ Bases:
cfme.utils.appliance.implementations.ui.CFMENavigateStep
-
VIEW
¶ alias of
TagPageView
-
prerequisite
¶ This is a helper descriptor for navigation destinations which are linked to the same class.
For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.
-