=== Test case: sm_SUITE:messages_are_properly_flushed_during_resumption/1 (click for source code)

=== Config value:

    [{watchdog,<0.30490.1>},
     {{saved_modules,<<"test type">>},
      [{mod_register,[{access,register},
                      {ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
                      {welcome_message,{[],[]}}]},
       {mod_muc_light_commands,[]},
       {mod_vcard,[{backend,rdbms},{host,{prefix,<<"vjud.">>}}]},
       {mod_sic,[]},
       {mod_disco,[{users_can_see_hidden_services,false}]},
       {mod_adhoc,[]},
       {mod_cache_users,[{number_of_segments,5},{time_to_live,2}]},
       {mod_commands,[]},
       {mod_amp,[]},
       {mod_stream_management,[]},
       {mod_roster,[{backend,rdbms}]},
       {mod_bosh,[]},
       {mod_muc_commands,[]},
       {mod_carboncopy,[]}]},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/sm_SUITE_data"},
     {preset,"mysql_redis"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@af91d99bb42e.2021-12-08_07.29.28/big_tests.tests.sm_SUITE.logs/run.2021-12-08_07.39.09/sm_suite.messages_are_properly_flushed_during_resumption.72068.html"},
     {tc_group_properties,[{name,parallel},{repeat_until_all_ok,3},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/sm_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@af91d99bb42e.2021-12-08_07.29.28/big_tests.tests.sm_SUITE.logs/run.2021-12-08_07.39.09/log_private/"},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>},
                             {stream_management,true}]},
                     {alice_bis,[{username,<<"alicE">>},
                                 {server,<<"domain.example.org">>},
                                 {host,<<"localhost">>},
                                 {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]},
                     {geralt_s,[{username,<<"geralt_s">>},
                                {server,<<"domain.example.com">>},
                                {host,<<"localhost">>},
                                {password,<<"witcher_s">>},
                                {transport,escalus_ws},
                                {ssl,true},
                                {port,5285},
                                {wspath,<<"/ws-xmpp">>}]},
                     {carol_s,[{username,<<"carol_s">>},
                               {server,<<"domain.example.com">>},
                               {host,<<"localhost">>},
                               {password,<<"jinglebells_s">>},
                               {transport,escalus_bosh},
                               {ssl,true},
                               {path,<<"/http-bind">>},
                               {port,5285}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {mike,[{username,<<"mike">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"nicniema">>}]},
                     {geralt,[{username,<<"geralt">>},
                              {server,<<"domain.example.com">>},
                              {host,<<"localhost">>},
                              {password,<<"witcher">>},
                              {transport,escalus_ws},
                              {port,5280},
                              {wspath,<<"/ws-xmpp">>}]},
                     {admin,[{username,<<"admin">>},
                             {server,<<"localhost">>},
                             {password,<<"bruce_almighty">>}]},
                     {secure_joe,[{username,<<"secure_joe">>},
                                  {server,<<"domain.example.com">>},
                                  {host,<<"localhost">>},
                                  {password,<<"break_me">>},
                                  {compression,<<"zlib">>},
                                  {starttls,required}]},
                     {clusterguy,[{username,<<"clusterguy">>},
                                  {server,<<"domain.example.com">>},
                                  {host,<<"localhost">>},
                                  {password,<<"distributionftw">>},
                                  {port,5232}]},
                     {clusterbuddy,[{username,<<"clusterbuddy">>},
                                    {server,<<"domain.example.com">>},
                                    {host,<<"localhost">>},
                                    {password,<<"wasssssssup">>},
                                    {port,5232}]},
                     {alice3,[{username,<<"alice">>},
                              {server,<<"example.com">>},
                              {host,<<"localhost">>},
                              {password,<<"makota2">>}]},
                     {bob3,[{username,<<"bob">>},
                            {server,<<"example.org">>},
                            {host,<<"localhost">>},
                            {password,<<"makota3">>},
                            {port,5232}]},
                     {john,[{username,<<"john">>},
                            {server,<<"domain.example.com">>},
                            {host,<<"localhost">>},
                            {password,<<"cosontuma">>}]},
                     {neustradamus,[{username,<<"neustradamus">>},
                                    {server,<<"domain.example.com">>},
                                    {host,<<"localhost">>},
                                    {password,<<"scramshaplus">>},
                                    {starttls,required},
                                    {tls_module,fast_tls}]},
                     {hacker,[{username,<<"hacker">>},
                              {server,<<"domain.example.com">>},
                              {host,<<"localhost">>},
                              {password,<<"bringdowntheserver">>},
                              {compression,<<"zlib">>},
                              {port,5223}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@af91d99bb42e.2021-12-08_07.29.28"

=== Started at 2021-12-08 07:39:09


*** CT 2021-12-08 07:39:09.559 *** View log from node mongooseim@localhost when started mongooseim@localhost_2017.html
*** CT 2021-12-08 07:39:09.560 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_321.html

*** User 2021-12-08 07:39:09.658 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2021-12-08 07:39:09.659 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='94e5bd16490eaa46' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2021-12-08 07:39:09.659 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2021-12-08 07:39:09.659 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfcHJvcGVybHlfZmx1c2hlZF9kdXJpbmdfcmVzdW1wdGlvbl8xODI4AG1ha3JvbGlrYQ==</auth>



*** User 2021-12-08 07:39:09.662 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2021-12-08 07:39:09.662 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2021-12-08 07:39:09.663 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60ec7bcd60b91f35' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2021-12-08 07:39:09.663 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2021-12-08 07:39:09.663 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 out
<iq type='set' id='1f58b3c615319d5b1b9941e1d1ba1e91'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2021-12-08 07:39:09.664 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 in
<iq id='1f58b3c615319d5b1b9941e1d1ba1e91' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2021-12-08 07:39:09.664 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 out
<iq type='set' id='21bdd62cb0efed07d0db0b57e58deacb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2021-12-08 07:39:09.665 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 in
<iq type='result' id='21bdd62cb0efed07d0db0b57e58deacb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2021-12-08 07:39:09.665 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 out
<presence/>



*** User 2021-12-08 07:39:09.673 ***
bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1 in
<presence from='bOb_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1' to='bob_messages_are_properly_flushed_during_resumption_1828@domain.example.com/res1' xml:lang='en'/>



*** User 2021-12-08 07:39:09.673 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2021-12-08 07:39:09.674 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='301626ab9491b6ea' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2021-12-08 07:39:09.674 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2021-12-08 07:39:09.674 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9wcm9wZXJseV9mbHVzaGVkX2R1cmluZ19yZXN1bXB0aW9uXzE4MjEAbWF0eWdyeXNh</auth>



*** User 2021-12-08 07:39:09.685 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2021-12-08 07:39:09.685 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2021-12-08 07:39:09.686 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eed9fa4843d6e153' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2021-12-08 07:39:09.686 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2021-12-08 07:39:09.686 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com out
<iq type='set' id='54afca2c72f9c080628fd08ded4ec019'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2021-12-08 07:39:09.687 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<iq id='54afca2c72f9c080628fd08ded4ec019' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2021-12-08 07:39:09.689 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com/escalus-default-resource out
<iq type='set' id='9c524058709292fd5144e73af0451924'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2021-12-08 07:39:09.746 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com/escalus-default-resource in
<iq type='result' id='9c524058709292fd5144e73af0451924'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2021-12-08 07:39:09.746 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com/escalus-default-resource out
<enable xmlns='urn:xmpp:sm:3' resume='true'/>



*** User 2021-12-08 07:39:09.755 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com/escalus-default-resource in
<enabled xmlns='urn:xmpp:sm:3' id='hvoRcg9WkXaobfUz822ytB64RJPA' resume='true'/>



*** User 2021-12-08 07:39:09.756 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com/escalus-default-resource out
<presence/>



*** User 2021-12-08 07:39:09.769 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com/escalus-default-resource in
<presence from='alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com/escalus-default-resource' to='alice_messages_are_properly_flushed_during_resumption_1821@domain.example.com/escalus-default-resource' xml:lang='en'/>



*** User 2021-12-08 07:39:09.772 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2021-12-08 07:39:09.774 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9685078e64f283a5' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2021-12-08 07:39:09.774 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2021-12-08 07:39:09.774 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9wcm9wZXJseV9mbHVzaGVkX2R1cmluZ19yZXN1bXB0aW9uXzE4MjEAbWF0eWdyeXNh</auth>



*** User 2021-12-08 07:39:09.777 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2021-12-08 07:39:09.777 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2021-12-08 07:39:09.778 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cc96bd4c901386b7' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2021-12-08 07:39:09.779 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2021-12-08 07:39:09.779 ***
alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com out
<resume xmlns='urn:xmpp:sm:3' previd='hvoRcg9WkXaobfUz822ytB64RJPA' h='1'/>


*** CT 2021-12-08 07:39:14.781 *** Stanza Log: messages_are_properly_flushed_during_resumption.xml

*** CT Error Notification 2021-12-08 07:39:14.781 ***
sm_SUITE:'-messages_are_properly_flushed_during_resumption/1-fun-1-' failed on line 1226
Reason: {badmatch,{error,{connection_step_failed,{#Fun<sm_SUITE.11.6...}

Full error description and stacktrace
*** CT 2021-12-08 07:39:14.783 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_321.html
*** CT 2021-12-08 07:39:14.784 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2018.html



=== Ended at 2021-12-08 07:39:14
=== Location: [{sm_SUITE,'-messages_are_properly_flushed_during_resumption/1-fun-1-',1226},
              {escalus_story,story,72},
              {test_server,ts_tc,1783},
              {test_server,run_test_case_eval1,1292},
              {test_server,run_test_case_eval,1224}]
=== === Reason: no match of right hand side value 
                 {error,
                     {connection_step_failed,
                         {#Fun<sm_SUITE.11.68776247>,
                          {client,
                              <<"alicE_messages_are_properly_flushed_during_resumption_1821@domain.example.com">>,
                              escalus_tcp,<0.30958.1>,undefined,
                              [{username,
                                   <<"alicE_messages_are_properly_flushed_during_resumption_1821">>},
                               {server,<<"domain.example.com">>},
                               {host,<<"localhost">>},
                               {password,<<"matygrysa">>},
                               {stream_management,true},
                               {stream_id,<<"cc96bd4c901386b7">>}]},
                          [{compression,[<<"zlib">>]},
                           {starttls,true},
                           {stream_management,true},
                           {advanced_message_processing,true},
                           {client_state_indication,false},
                           {sasl_mechanisms,[<<"SCRAM-SHA-256">>,<<"PLAIN">>]},
                           {caps,undefined}]},
                         {timeout,get_resumed}}}
  in function  sm_SUITE:'-messages_are_properly_flushed_during_resumption/1-fun-1-'/3 (/home/circleci/project/big_tests/tests/sm_SUITE.erl, line 1226)
  in call from escalus_story:story/4 (/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl, line 72)
  in call from test_server:ts_tc/3 (test_server.erl, line 1783)
  in call from test_server:run_test_case_eval1/6 (test_server.erl, line 1292)
  in call from test_server:run_test_case_eval/9 (test_server.erl, line 1224)