tempest/test.py
def is_extension_enabled(extension_name, service):
    """A function that will check the list of enabled extensions from config

    """
    configs = CONF
    config_dict = {
        'compute': configs.compute_feature_enabled.api_extensions,
        'compute_v3': configs.compute_feature_enabled.api_v3_extensions,
        'volume': configs.volume_feature_enabled.api_extensions,
        'network': configs.network_feature_enabled.api_extensions,
        'object': configs.object_storage_feature_enabled.discoverable_apis,
    }
    if config_dict[service][0] == 'all':
        return True
    if extension_name in config_dict[service]:
        return True
    return False
A function that will check the list of enabled extensions from config

    
A function that will check the list of enabled extensions from config
A function that will check the list of enabled extensions from config
def is_extension_enabled(extension_name, service):
    configs = CONF
    config_dict = {
        'compute': configs.compute_feature_enabled.api_extensions,
        'compute_v3': configs.compute_feature_enabled.api_v3_extensions,
        'volume': configs.volume_feature_enabled.api_extensions,
        'network': configs.network_feature_enabled.api_extensions,
        'object': configs.object_storage_feature_enabled.discoverable_apis,
    }
    if config_dict[service][0] == 'all':
        return True
    if extension_name in config_dict[service]:
        return True
    return False
def is_extension_enabled ( extension_name , service ) : configs = CONF config_dict = { 'compute' : configs . compute_feature_enabled . api_extensions , 'compute_v3' : configs . compute_feature_enabled . api_v3_extensions , 'volume' : configs . volume_feature_enabled . api_extensions , 'network' : configs . network_feature_enabled . api_extensions , 'object' : configs . object_storage_feature_enabled . discoverable_apis , } if config_dict [ service ] [ 0 ] == 'all' : return True if extension_name in config_dict [ service ] : return True return False
A function that will check the list of enabled extensions from config
A function that will check the list of enabled extensions from config
"""A function that will check the list of enabled extensions from config

    """
extension_name
service