cfme.utils.version module

cfme.utils.version.appliance_build_date()[source]
cfme.utils.version.appliance_build_datetime()[source]
cfme.utils.version.appliance_has_netapp()[source]
cfme.utils.version.appliance_is_downstream()[source]
cfme.utils.version.before_date_or_version(date=None, version=None)[source]

Function for deciding based on the build date and version.

Usage:

* If both date and version are set, then two things can happen. If the appliance is
    downstream, both date and version are checked, otherwise only the date.
* If only date is set, then only date is checked.
* if only version is set, then it checks the version if the appliance is downstream,
    otherwise it returns ``False``

The checks are in form appliance_build_date() < date and current_version() < version. Therefore when used in if statement, the truthy value signalizes ‘older’ version and falsy signalizes ‘newer’ version.

cfme.utils.version.current_stream()[source]
cfme.utils.version.current_version()[source]

A lazy cached method to return the appliance version.

Do not catch errors, since generally we cannot proceed with testing, without knowing the server version.

cfme.utils.version.dependent(default_function)[source]
cfme.utils.version.get_product_version(ver)[source]

Return product version for given Version obj or version string

cfme.utils.version.get_stream(ver)[source]

Return a stream name for given Version obj or version string

cfme.utils.version.parsedate(o)[source]
cfme.utils.version.pick(v_dict, active_version=None)[source]

Collapses an ambiguous series of objects bound to specific versions by interrogating the CFME Version and returning the correct item.

cfme.utils.version.product_version_dispatch(*_args, **_kwargs)[source]

Dispatch function for use in multimethods that just ignores arguments and dispatches on the current product version.

cfme.utils.version.since_date_or_version(*args, **kwargs)[source]

Opposite of before_date_or_version()