def the_cache_roles_configuration(step):
    """
    Ste the context broker plugin setting the cache roles expire first
    :type step lettuce.core.Step
    """
    world.config_set = 'cache_roles'
    set_config_cache_roles()
    start_pep_app()
    time.sleep(5)
def the_cache_roles_configuration(step):
    """
    Ste the context broker plugin setting the cache roles expire first
    :type step lettuce.core.Step
    """
    world.config_set = 'cache_roles'
    set_config_cache_roles()
    start_pep_app()
    time.sleep(5)
def the_cache_gradual_configuration(step):
    """
    Set the context broker plugin setting the cache expired time gradual
    :type step lettuce.core.Step
    """
    world.config_set = 'cache_gradual'
    set_config_cache_gradual()
    start_pep_app()
    time.sleep(5)
def the_cache_gradual_configuration(step):
    """
    Set the context broker plugin setting the cache expired time gradual
    :type step lettuce.core.Step
    """
    world.config_set = 'cache_gradual'
    set_config_cache_gradual()
    start_pep_app()
    time.sleep(5)
def restart_pep_with_bad_pep_user(step):
    """
    Set the context broker plugin (if it is not set) setting a bad pep user credential
    :type step lettuce.core.Step
    """
    if world.config_set != 'bad_pep_user':
        world.config_set = 'bad_pep_user'
        set_cb_config_with_bad_pep_user()
        start_pep_app()
        time.sleep(5)
def restart_pep_with_bad_target_configuration(step):
    """
    Set the context broker plugin (if it is not set) setting a bad ip of target
    :type step lettuce.core.Step
    """
    if world.config_set != 'bad_target':
        world.config_set = 'bad_target'
        set_cb_config_with_bad_target_ip()
        start_pep_app()
        time.sleep(5)
def the_context_broker_configuration_without_cache(step):
    """
    Set the context broker plugin (if it is not set) without cache
    :type step lettuce.core.Step
    """
    if world.config_set != 'cb_without_cache':
        world.config_set = 'cb_without_cache'
        set_cb_config_withour_cache()
        start_pep_app()
        time.sleep(5)
def the_context_broker_configuration(step):
    """
    Set the context broker plugin (if it is not set) and restart pep
    :type step lettuce.core.Step
    """
    if world.config_set != 'cb':
        world.config_set = 'cb'
        set_config_cb()
        start_pep_app()
        time.sleep(5)
def the_bypass_configuration(step):
    """
    Seth the context broker configuration (if its not set) setting the bypass configuration (enabling it)
    :type step lettuce.core.Step
    """
    if world.config_set != 'bypass':
        world.config_set = 'bypass'
        set_config_bypass()
        start_pep_app()
        time.sleep(5)
def the_perseo_configuration(step):
    """
    Set the Perseo (CEP) configuration (if it is not set) and restart pep
    :type step lettuce.core.Step
    """
    if world.config_set != 'perseo':
        world.config_set = 'perseo'
        set_config_perseo()
        start_pep_app()
        time.sleep(5)
def the_access_control_configuration(step):
    """
    Set the Access Control (keypass) configuration (if it is not set) and restart pep
    :type step lettuce.core.Step
    """
    if world.config_set != 'ac':
        world.config_set = 'ac'
        set_config_access_control()
        start_pep_app()
        time.sleep(5)
def restart_pep_with_bad_target_configuration(step):
    """
    Set the context broker plugin (if it is not set) setting a bad ip of target
    :type step lettuce.core.Step
    """
    if world.config_set != 'bad_target':
        world.config_set = 'bad_target'
        set_cb_config_with_bad_target_ip()
        start_pep_app()
        time.sleep(5)
def restart_pep_with_bad_pep_user(step):
    """
    Set the context broker plugin (if it is not set) setting a bad pep user credential
    :type step lettuce.core.Step
    """
    if world.config_set != 'bad_pep_user':
        world.config_set = 'bad_pep_user'
        set_cb_config_with_bad_pep_user()
        start_pep_app()
        time.sleep(5)
def the_context_broker_configuration(step):
    """
    Set the context broker plugin (if it is not set) and restart pep
    :type step lettuce.core.Step
    """
    if world.config_set != 'cb':
        world.config_set = 'cb'
        set_config_cb()
        start_pep_app()
        time.sleep(5)
def the_context_broker_configuration_without_cache(step):
    """
    Set the context broker plugin (if it is not set) without cache
    :type step lettuce.core.Step
    """
    if world.config_set != 'cb_without_cache':
        world.config_set = 'cb_without_cache'
        set_cb_config_withour_cache()
        start_pep_app()
        time.sleep(5)
def the_bypass_configuration(step):
    """
    Seth the context broker configuration (if its not set) setting the bypass configuration (enabling it)
    :type step lettuce.core.Step
    """
    if world.config_set != 'bypass':
        world.config_set = 'bypass'
        set_config_bypass()
        start_pep_app()
        time.sleep(5)
def the_perseo_configuration(step):
    """
    Set the Perseo (CEP) configuration (if it is not set) and restart pep
    :type step lettuce.core.Step
    """
    if world.config_set != 'perseo':
        world.config_set = 'perseo'
        set_config_perseo()
        start_pep_app()
        time.sleep(5)
def the_access_control_configuration(step):
    """
    Set the Access Control (keypass) configuration (if it is not set) and restart pep
    :type step lettuce.core.Step
    """
    if world.config_set != 'ac':
        world.config_set = 'ac'
        set_config_access_control()
        start_pep_app()
        time.sleep(5)
def the_context_broker_configuration_with_Access_control_adn_check_headers_functionality_disabled(step):
    """
    Set the context broker configuration and disable the checks with AC and the checks of the headers
    :param step:
    :return:
    """
    if world.config_set != 'cb_without_ac':
        world.config_set = 'cb_without_ac'
        set_cb_config_with_ac()
        start_pep_app()
        time.sleep(5)
def the_context_broker_configuration_with_Access_control_adn_check_headers_functionality_disabled(
        step):
    """
    Set the context broker configuration and disable the checks with AC and the checks of the headers
    :param step:
    :return:
    """
    if world.config_set != 'cb_without_ac':
        world.config_set = 'cb_without_ac'
        set_cb_config_with_ac()
        start_pep_app()
        time.sleep(5)