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

=== Config value:

    [{watchdog,<0.85750.0>},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/sm_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@e9cd84e19dff.2024-04-23_06.47.01/big_tests.tests.sm_SUITE.logs/run.2024-04-23_07.01.16/sm_suite.session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza.166019.html"},
     {tc_group_properties,[{name,parallel},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@e9cd84e19dff.2024-04-23_06.47.01/big_tests.tests.sm_SUITE.logs/run.2024-04-23_07.01.16/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2}}},
     {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">>},
                                {ssl_opts,[{verify,verify_none}]}]},
                     {carol_s,[{username,<<"carol_s">>},
                               {server,<<"domain.example.com">>},
                               {host,<<"localhost">>},
                               {password,<<"jinglebells_s">>},
                               {transport,escalus_bosh},
                               {ssl,true},
                               {path,<<"/http-bind">>},
                               {port,5285},
                               {ssl_opts,[{verify,verify_none}]}]},
                     {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">>},
                                  {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">>},
                              {port,5223}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@e9cd84e19dff.2024-04-23_06.47.01"

=== Started at 2024-04-23 07:01:16


*** CT 2024-04-23 07:01:16.374 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4008.html

*** User 2024-04-23 07:01:16.482 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@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 2024-04-23 07:01:16.483 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dc1a0d5190290deb' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 07:01:16.483 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-23 07:01:16.483 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3Nlc3Npb25fcmVzdW1lZF90aGVuX29sZF9zZXNzaW9uX2lzX2Nsb3NlZF9ncmFjZWZ1bGx5X3dpdGhfY29ycmVjdF9lcnJvcl9zdGFuemFfMjk3NwBtYXR5Z3J5c2E=</auth>



*** User 2024-04-23 07:01:16.486 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 07:01:16.486 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@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 2024-04-23 07:01:16.488 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='20bca9fbbdb8f23b' from='domain.example.com' version='1.0' xml:lang='en' to='alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com'>

*** User 2024-04-23 07:01:16.489 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-23 07:01:16.489 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com out
<iq type='set' id='d01e2dec4297041ef48c896145410b8d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>escalus-default-resource</resource>
	</bind>
</iq>



*** User 2024-04-23 07:01:16.489 ***🔗
alicE_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com in
<iq id='d01e2dec4297041ef48c896145410b8d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource</jid>
	</bind>
</iq>



*** User 2024-04-23 07:01:16.490 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource out
<iq type='set' id='87306419e223dce6d030bba41216efa5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 07:01:16.491 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<iq from='domain.example.com' to='alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource' id='87306419e223dce6d030bba41216efa5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 07:01:16.491 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource out
<enable xmlns='urn:xmpp:sm:3' resume='true'/>



*** User 2024-04-23 07:01:16.492 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<enabled xmlns='urn:xmpp:sm:3' id='L6mWxLQt1dJ/ejxw708C+hedepk6' resume='true'/>



*** User 2024-04-23 07:01:16.492 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource out
<presence/>



*** User 2024-04-23 07:01:16.557 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<presence from='alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource' to='alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource'/>



*** User 2024-04-23 07:01:16.561 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 07:01:16.563 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='15ea851341f76593' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-23 07:01:16.563 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-23 07:01:16.563 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX3Nlc3Npb25fcmVzdW1lZF90aGVuX29sZF9zZXNzaW9uX2lzX2Nsb3NlZF9ncmFjZWZ1bGx5X3dpdGhfY29ycmVjdF9lcnJvcl9zdGFuemFfMjk3NwBtYXR5Z3J5c2E=</auth>



*** User 2024-04-23 07:01:16.566 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 07:01:16.566 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 07:01:16.566 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='29bae2614fe4f388' from='domain.example.com' version='1.0' xml:lang='en' to='alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com'>

*** User 2024-04-23 07:01:16.567 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-04-23 07:01:16.567 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource out
<resume xmlns='urn:xmpp:sm:3' previd='L6mWxLQt1dJ/ejxw708C+hedepk6' h='1'/>



*** User 2024-04-23 07:01:16.570 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<resumed xmlns='urn:xmpp:sm:3' previd='L6mWxLQt1dJ/ejxw708C+hedepk6' h='1'/>



*** User 2024-04-23 07:01:16.570 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource out
<presence/>



*** User 2024-04-23 07:01:16.579 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<presence from='alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource' to='alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource'/>



*** User 2024-04-23 07:01:16.579 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
<stream:error>
	<conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
</stream:error>



*** User 2024-04-23 07:01:16.579 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
</stream:stream>

*** User 2024-04-23 07:01:16.579 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource out
</stream:stream>

*** User 2024-04-23 07:01:16.581 ***🔗
alice_session_resumed_then_old_session_is_closed_gracefully_with_correct_error_stanza_2977@domain.example.com/escalus-default-resource in
</stream:stream>
*** CT 2024-04-23 07:01:16.687 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4009.html



=== Ended at 2024-04-23 07:01:16
=== successfully completed test case
=== === Returned value: already_stopped