Changeset View
Changeset View
Standalone View
Standalone View
apps/kolab_guam/test/kolab_guam_session_SUITE.erl
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | % Activate filtering | ||||
buffered_client_data = <<>>, | buffered_client_data = <<>>, | ||||
current_command_split = {<<"y1">>,<<"ID">>,<<"(\"name\" \"Test\")">>}, | current_command_split = {<<"y1">>,<<"ID">>,<<"(\"name\" \"Test\")">>}, | ||||
command_split_reset_trigger = reset_for_next_client_command, | command_split_reset_trigger = reset_for_next_client_command, | ||||
rules_deciding = [], | rules_deciding = [], | ||||
rules_active = [{kolab_guam_rule_filter_groupware, _}] | rules_active = [{kolab_guam_rule_filter_groupware, _}] | ||||
}} = kolab_guam_session:handle_info({tcp, Socket, <<"y1 ID (\"name\" \"Test\")\r\n">>}, State#state{ rules_deciding = ActiveRules }), | }} = kolab_guam_session:handle_info({tcp, Socket, <<"y1 ID (\"name\" \"Test\")\r\n">>}, State#state{ rules_deciding = ActiveRules }), | ||||
% Append | |||||
{noreply, #state{ | |||||
server_config = ServerConfig, | |||||
buffered_client_data = <<>>, | |||||
current_command_split = {<<"y1">>,<<"APPEND">>,<<"INBOX {7}">>}, | |||||
command_split_reset_trigger = reset_for_next_client_command | |||||
} = IntermediateState4} = kolab_guam_session:handle_info({tcp, Socket, <<"y1 APPEND INBOX {7}\r\n123">>}, State#state{ rules_deciding = ActiveRules }), | |||||
{noreply, #state{ | |||||
server_config = ServerConfig, | |||||
buffered_client_data = <<>>, %This ensures we aren't buffering during the continuation | |||||
current_command_split = {<<"y1">>,<<"APPEND">>,<<"INBOX {7}">>}, | |||||
command_split_reset_trigger = reset_for_next_client_command | |||||
} = IntermediateState5} = kolab_guam_session:handle_info({tcp, Socket, <<"456">>}, IntermediateState4), | |||||
{noreply, #state{ | |||||
server_config = ServerConfig, | |||||
buffered_client_data = <<>>, | |||||
current_command_split = {<<"y2">>,<<"ENABLE">>,<<"QRESYNC">>}, | |||||
command_split_reset_trigger = reset_for_next_client_command | |||||
}} = kolab_guam_session:handle_info({tcp, Socket, <<"7\r\ny2 ENABLE QRESYNC\r\n">>}, IntermediateState5), | |||||
% Don't activate filtering | % Don't activate filtering | ||||
{noreply, #state{ | {noreply, #state{ | ||||
server_config = ServerConfig, | server_config = ServerConfig, | ||||
buffered_client_data = <<>>, | buffered_client_data = <<>>, | ||||
current_command_split = {<<"y1">>,<<"ID">>,<<"(\"name\" \"Test/KOLAB\")">>}, | current_command_split = {<<"y1">>,<<"ID">>,<<"(\"name\" \"Test/KOLAB\")">>}, | ||||
command_split_reset_trigger = reset_for_next_client_command, | command_split_reset_trigger = reset_for_next_client_command, | ||||
rules_deciding = [], | rules_deciding = [], | ||||
rules_active = [] | rules_active = [] | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |