def when_i_restart_asterisk(step): sysutils.restart_service('asterisk') sysutils.restart_service('xivo-ctid')
def given_i_set_the_http_proxy_environment_variables_to_group1(step, http_proxy): sysutils.restart_service('xivo-confd', env={'HTTP_PROXY': http_proxy})
def restart_server(): sysutils.restart_service('xivo-ctid') time.sleep(10)
def given_i_set_the_http_proxy_environment_variables_to_group1( step, http_proxy): sysutils.restart_service('xivo-restapi', env={'HTTP_PROXY': http_proxy})