cfme.middleware.provider package

Module contents

class cfme.middleware.provider.Add(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of MiddlewareProviderAddView

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.

step()[source]
class cfme.middleware.provider.All(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of MiddlewareProvidersView

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.

resetter()[source]
step()[source]
class cfme.middleware.provider.Container[source]

Bases: cfme.common.SummaryMixin

add_datasource(ds_type, ds_name, jndi_name, ds_url, xa_ds=False, driver_name=None, existing_driver=None, driver_module_name=None, driver_class=None, username=None, password=None, sec_domain=None, cancel=False)[source]

Clicks to “Add Datasource” button, in opened window fills fields by provided parameter by clicking ‘Next’, and submits the form by clicking ‘Finish’.

Parameters:
  • ds_type – Type of database.
  • ds_name – Name of newly created Datasource.
  • jndi_name – JNDI Name of Datasource.
  • driver_name – JDBC Driver name in Datasource.
  • driver_module_name – Module name of JDBC Driver used in datasource.
  • driver_class – JDBC Driver Class.
  • ds_url – Database connection URL in jdbc format.
  • username – Database username.
  • password – Databasae password, optional.
  • sec_domain – Security Domain, optional.
  • cancel – Whether to click Cancel instead of commit.
add_deployment(filename, runtime_name=None, enable_deploy=True, overwrite=False, cancel=False)[source]

Clicks to “Add Deployment” button, in opened window fills fields by provided parameters, and deploys.

Parameters:
  • filename – Full path to file to import.
  • runtime_name – Runtime name of deployment archive.
  • enable_deploy – Whether to enable deployment archive or keep disabled.
  • cancel – Whether to click Cancel instead of commit.
add_jdbc_driver(filename, driver_name, module_name, driver_class, xa_class=None, major_version=None, minor_version=None, cancel=False)[source]

Clicks to “Add JDBC Driver” button, in opened window fills fields by provided parameters, and deploys.

Parameters:
  • filename – Full path to JDBC Driver to import.
  • driver_name – Name of newly created JDBC Driver.
  • module_name – Name on Module to register on server side.
  • driver_class – JDBC Driver Class.
  • major_version – Major version of JDBC driver, optional.
  • minor_version – Minor version of JDBC driver, optional.
  • cancel – Whether to click Cancel instead of commit.
is_immutable()[source]
class cfme.middleware.provider.Deployable[source]

Bases: cfme.common.SummaryMixin

disable()[source]

Clicks on “Disable” menu item and verifies message shown

enable()[source]

Clicks on “Enable” menu item and verifies message shown

restart()[source]

Clicks on “Restart” menu item and verifies message shown

undeploy()[source]

Clicks on “Undeploy” menu item and verifies message shown

class cfme.middleware.provider.Details(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of MiddlewareProviderDetailsView

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.

step()[source]
class cfme.middleware.provider.Edit(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of MiddlewareProviderEditView

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.

step()[source]
class cfme.middleware.provider.EditFromDetails(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of MiddlewareProviderEditView

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.

step()[source]
class cfme.middleware.provider.EditTags(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.

step()[source]
class cfme.middleware.provider.EditTagsFromDetails(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.

step()[source]
class cfme.middleware.provider.MiddlewareBase[source]

Bases: cfme.common.Validatable

MiddlewareBase class used to define common functions across pages. Also used to override existing function when required.

download_summary()[source]
get_detail(*ident)[source]

Gets details from the details infoblock

The function first ensures that we are on the detail page for the specific cluster.

Parameters:ident – An InfoBlock title, followed by the Key name, e.g. “Relationships”, “Images”

Returns: A string representing the contents of the InfoBlock’s value.

class cfme.middleware.provider.MiddlewareProvider(*args, **kwargs)[source]

Bases: cfme.common.provider.BaseProvider

STATS_TO_MATCH = []
category = 'middleware'
db_types = ['MiddlewareManager']
detail_page_suffix = 'provider_detail'
edit_page_suffix = 'provider_edit_detail'
in_version = ('5.7', Version('master'))
page_name = 'middleware'
property_tuples = []
provider_types = {}
refresh_text = 'Refresh items and relationships'
string_name = 'Middleware'
taggable_type = 'ExtManagementSystem'
class cfme.middleware.provider.ProviderDatasources(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of ProviderDatasourceAllView

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.

step()[source]
class cfme.middleware.provider.ProviderDeployments(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of ProviderDeploymentAllView

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.

step()[source]
class cfme.middleware.provider.ProviderDomains(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of ProviderDomainsAllView

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.

step()[source]
class cfme.middleware.provider.ProviderMessagings(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of ProviderMessagingAllView

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.

step()[source]
class cfme.middleware.provider.ProviderServers(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of ProviderServerAllView

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.

step()[source]
class cfme.middleware.provider.Reportable[source]

Bases: cfme.common.SummaryMixin

generate_jdr()[source]
class cfme.middleware.provider.Timelines(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of MiddlewareProviderTimelinesView

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.

step()[source]
class cfme.middleware.provider.TopologyFromDetails(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

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.

step()[source]
cfme.middleware.provider.download(view, extension)[source]
cfme.middleware.provider.get_random_list(items, limit)[source]

In tests, when we have big list iterating through each element will take lot of time. To avoid this, select random list with limited numbers

cfme.middleware.provider.get_server_name(path)[source]
cfme.middleware.provider.parse_properties(props)[source]

Parses provided properties in string format into dictionary format. It splits string into lines and splits each line into key and value.