functest.utils.functest_utils module¶
-
functest.utils.functest_utils.
convert_dict_to_ini
(value)¶ Convert dict to oslo.conf input
-
functest.utils.functest_utils.
convert_ini_to_dict
(value)¶ Convert oslo.conf input to dict
-
functest.utils.functest_utils.
convert_ini_to_list
(value)¶ Convert list to oslo.conf input
-
functest.utils.functest_utils.
convert_list_to_ini
(value)¶ Convert list to oslo.conf input
-
functest.utils.functest_utils.
execute_command
(cmd, info=False, error_msg='', verbose=True, output_file=None)¶
-
functest.utils.functest_utils.
execute_command_raise
(cmd, info=False, error_msg='', verbose=True, output_file=None)¶
-
functest.utils.functest_utils.
get_nova_version
(cloud)¶ Get Nova API microversion
Returns:
- Nova API microversion
- None on operation error
-
functest.utils.functest_utils.
get_openstack_version
(cloud)¶ Detect OpenStack version via Nova API microversion
It follows MicroversionHistory.
Returns:
- OpenStack release
- Unknown on operation error
-
functest.utils.functest_utils.
get_parameter_from_yaml
(parameter, yfile)¶ Returns the value of a given parameter in file.yaml parameter must be given in string format with dots Example: general.openstack.image_name
-
functest.utils.functest_utils.
list_services
(cloud)¶ Search Keystone services via $OS_INTERFACE.
It mainly conforms with Shade but allows testing vs public endpoints. It’s worth mentioning that it doesn’t support keystone v2.
Returns: a list of munch.Munch
containing the services descriptionRaises: OpenStackCloudException
if something goes wrong during the openstack API call.
-
functest.utils.functest_utils.
search_services
(cloud, name_or_id=None, filters=None)¶ Search Keystone services ia $OS_INTERFACE.
It mainly conforms with Shade but allows testing vs public endpoints. It’s worth mentioning that it doesn’t support keystone v2.
Parameters: - name_or_id – Name or id of the desired service.
- filters – a dict containing additional filters to use. e.g. {‘type’: ‘network’}.
Returns: a list of
munch.Munch
containing the services descriptionRaises: OpenStackCloudException
if something goes wrong during the openstack API call.