=== Test case: s2s_SUITE:connections_info/1 (click for source code)

=== Config value:

    [{watchdog,<0.80934.0>},
     {{s2s,mim},
      #{opts =>
            #{address => #{<<"fed1">> => #{ip_address => "127.0.0.1"}},
              outgoing =>
                  #{port => 5299,
                    ip_versions => [4,6],
                    connection_timeout => 10000},
              dns => #{timeout => 10,retries => 2},
              use_starttls => optional,max_retry_delay => 300,
              ciphers => "TLSv1.2:TLSv1.3",
              certfile => "priv/ssl/fake_server.pem",default_policy => allow},
        listener =>
            #{module => ejabberd_s2s_in,port => 5269,num_acceptors => 100,
              hibernate_after => 0,backlog => 1024,ip_address => "0",
              proxy_protocol => false,
              tls =>
                  #{verify_mode => peer,ciphers => "TLSv1.2:TLSv1.3",
                    dhfile => "priv/ssl/fake_dh_server.pem",
                    protocol_options =>
                        ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
              shaper => s2s_shaper,
              ip_tuple => {0,0,0,0},
              ip_version => 4,proto => tcp,max_stanza_size => 131072,
              connection_type => s2s}}},
     {{s2s,fed},
      #{opts =>
            #{address =>
                  #{<<"domain.example.com">> => #{ip_address => "127.0.0.1"},
                    <<"localhost">> => #{ip_address => "127.0.0.1"},
                    <<"localhost.bis">> => #{ip_address => "127.0.0.1"},
                    <<"muc.localhost">> => #{ip_address => "127.0.0.1"},
                    <<"pubsub.localhost">> => #{ip_address => "127.0.0.1"}},
              outgoing =>
                  #{port => 5269,
                    ip_versions => [4,6],
                    connection_timeout => 10000},
              dns => #{timeout => 10,retries => 2},
              use_starttls => optional,max_retry_delay => 300,
              ciphers => "TLSv1.2:TLSv1.3",
              certfile => "priv/ssl/fake_server.pem",default_policy => allow},
        listener =>
            #{module => ejabberd_s2s_in,port => 5299,num_acceptors => 100,
              hibernate_after => 0,backlog => 1024,ip_address => "0",
              proxy_protocol => false,
              tls =>
                  #{verify_mode => peer,ciphers => "TLSv1.2:TLSv1.3",
                    dhfile => "priv/ssl/fake_dh_server.pem",
                    protocol_options =>
                        ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
              shaper => s2s_shaper,
              ip_tuple => {0,0,0,0},
              ip_version => 4,proto => tcp,max_stanza_size => 131072,
              connection_type => s2s}}},
     {escalus_user_db,xmpp},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/s2s_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.s2s_SUITE.logs/run.2024-03-11_09.20.16/s2s_suite.connections_info.html"},
     {tc_group_properties,[{name,both_plain},sequence]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/s2s_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.s2s_SUITE.logs/run.2024-03-11_09.20.16/log_private/"},
     {escalus_users,[{alice2,[{username,<<"alice">>},
                              {server,<<"fed1">>},
                              {host,<<"localhost">>},
                              {port,5242},
                              {password,<<"makota2">>}]},
                     {alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@fe524ba9ae35.2024-03-11_09.05.30"

=== Started at 2024-03-11 09:20:16


*** CT 2024-03-11 09:20:16.532 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4475.html

*** User 2024-03-11 09:20:16.538 ***🔗
alice_connections_info_2922@fed1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 09:20:16.539 ***🔗
alice_connections_info_2922@fed1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2efd8c383386fa76' from='fed1' version='1.0' xml:lang='en'>

*** User 2024-03-11 09:20:16.539 ***🔗
alice_connections_info_2922@fed1 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-512</mechanism>
		<mechanism>SCRAM-SHA-384</mechanism>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>SCRAM-SHA-224</mechanism>
		<mechanism>SCRAM-SHA-1</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 09:20:16.539 ***🔗
alice_connections_info_2922@fed1 out
<iq type='get' id='f3d0d6773d29b15da1b180d1e7f1223a'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-03-11 09:20:16.539 ***🔗
alice_connections_info_2922@fed1 in
<iq from='fed1' to='fed1' id='f3d0d6773d29b15da1b180d1e7f1223a' type='result'>
	<query xmlns='jabber:iq:register'>
		<instructions>Choose a username and password to register with this server</instructions>
		<username/>
		<password/>
	</query>
</iq>



*** User 2024-03-11 09:20:16.540 ***🔗
alice_connections_info_2922@fed1 out
<iq type='set' id='9b932b9b4123eaee2a80d4f191602bef'>
	<query xmlns='jabber:iq:register'>
		<username>alice_connections_info_2922</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2024-03-11 09:20:16.562 ***🔗
alice_connections_info_2922@fed1 in
<iq from='fed1' to='fed1' id='9b932b9b4123eaee2a80d4f191602bef' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alice_connections_info_2922</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2024-03-11 09:20:16.562 ***🔗
alice_connections_info_2922@fed1 out
</stream:stream>

*** User 2024-03-11 09:20:16.563 ***🔗
alice_connections_info_2922@fed1 in
</stream:stream>

*** User 2024-03-11 09:20:16.564 ***🔗
alicE_connections_info_2922@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 09:20:16.567 ***🔗
alicE_connections_info_2922@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d4ec38b616fa161a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 09:20:16.570 ***🔗
alicE_connections_info_2922@localhost 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-03-11 09:20:16.570 ***🔗
alicE_connections_info_2922@localhost out
<iq type='get' id='cc8811011b85d8f3f2a3710c4ccdaff2'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-03-11 09:20:16.575 ***🔗
alicE_connections_info_2922@localhost in
<iq from='localhost' to='localhost' id='cc8811011b85d8f3f2a3710c4ccdaff2' type='result'>
	<query xmlns='jabber:iq:register'>
		<instructions>Choose a username and password to register with this server</instructions>
		<username/>
		<password/>
	</query>
</iq>



*** User 2024-03-11 09:20:16.575 ***🔗
alicE_connections_info_2922@localhost out
<iq type='set' id='0de68dba5372cf654cd62401a13b172e'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_connections_info_2922</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-03-11 09:20:16.578 ***🔗
alicE_connections_info_2922@localhost in
<iq from='localhost' to='localhost' id='0de68dba5372cf654cd62401a13b172e' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_connections_info_2922</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-03-11 09:20:16.578 ***🔗
alicE_connections_info_2922@localhost out
</stream:stream>

*** User 2024-03-11 09:20:16.578 ***🔗
alicE_connections_info_2922@localhost in
</stream:stream>

*** User 2024-03-11 09:20:16.580 ***🔗
alice_connections_info_2922@fed1/res1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 09:20:16.587 ***🔗
alice_connections_info_2922@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b3552a8fcba2e103' from='fed1' version='1.0' xml:lang='en'>

*** User 2024-03-11 09:20:16.587 ***🔗
alice_connections_info_2922@fed1/res1 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-512</mechanism>
		<mechanism>SCRAM-SHA-384</mechanism>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>SCRAM-SHA-224</mechanism>
		<mechanism>SCRAM-SHA-1</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 09:20:16.587 ***🔗
alice_connections_info_2922@fed1/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX2Nvbm5lY3Rpb25zX2luZm9fMjkyMgBtYWtvdGEy</auth>



*** User 2024-03-11 09:20:16.590 ***🔗
alice_connections_info_2922@fed1/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 09:20:16.590 ***🔗
alice_connections_info_2922@fed1/res1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 09:20:16.590 ***🔗
alice_connections_info_2922@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ed7f524ee014009' from='fed1' version='1.0' xml:lang='en' to='alice_connections_info_2922@fed1'>

*** User 2024-03-11 09:20:16.590 ***🔗
alice_connections_info_2922@fed1/res1 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'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 09:20:16.591 ***🔗
alice_connections_info_2922@fed1/res1 out
<iq type='set' id='f21ad3588048119fbf5983e5f07a5027'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 09:20:16.591 ***🔗
alice_connections_info_2922@fed1/res1 in
<iq id='f21ad3588048119fbf5983e5f07a5027' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_connections_info_2922@fed1/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 09:20:16.591 ***🔗
alice_connections_info_2922@fed1/res1 out
<iq type='set' id='876803c947c870ebe8bbd851fa24aeb6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:16.592 ***🔗
alice_connections_info_2922@fed1/res1 in
<iq from='fed1' to='alice_connections_info_2922@fed1/res1' id='876803c947c870ebe8bbd851fa24aeb6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:16.592 ***🔗
alice_connections_info_2922@fed1/res1 out
<presence/>



*** User 2024-03-11 09:20:16.593 ***🔗
alice_connections_info_2922@fed1/res1 in
<presence from='alice_connections_info_2922@fed1/res1' to='alice_connections_info_2922@fed1/res1'/>



*** User 2024-03-11 09:20:16.596 ***🔗
alicE_connections_info_2922@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 09:20:16.597 ***🔗
alicE_connections_info_2922@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='515925570e8f9eef' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 09:20:16.597 ***🔗
alicE_connections_info_2922@localhost/res1 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-03-11 09:20:16.597 ***🔗
alicE_connections_info_2922@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2Nvbm5lY3Rpb25zX2luZm9fMjkyMgBtYXR5Z3J5c2E=</auth>



*** User 2024-03-11 09:20:16.600 ***🔗
alicE_connections_info_2922@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 09:20:16.600 ***🔗
alicE_connections_info_2922@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 09:20:16.602 ***🔗
alicE_connections_info_2922@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='72e9845d8ea9d5d5' from='localhost' version='1.0' xml:lang='en' to='alice_connections_info_2922@localhost'>

*** User 2024-03-11 09:20:16.602 ***🔗
alicE_connections_info_2922@localhost/res1 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-03-11 09:20:16.602 ***🔗
alicE_connections_info_2922@localhost/res1 out
<iq type='set' id='12f7a98d1070fc9d4189761539c19253'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 09:20:16.603 ***🔗
alicE_connections_info_2922@localhost/res1 in
<iq id='12f7a98d1070fc9d4189761539c19253' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_connections_info_2922@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 09:20:16.603 ***🔗
alice_connections_info_2922@localhost/res1 out
<iq type='set' id='ffa767962ae5d2cdcf43cbc76acb2575'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:16.606 ***🔗
alice_connections_info_2922@localhost/res1 in
<iq from='localhost' to='alice_connections_info_2922@localhost/res1' id='ffa767962ae5d2cdcf43cbc76acb2575' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:16.606 ***🔗
alice_connections_info_2922@localhost/res1 out
<presence/>



*** User 2024-03-11 09:20:16.607 ***🔗
alice_connections_info_2922@localhost/res1 in
<presence from='alice_connections_info_2922@localhost/res1' to='alice_connections_info_2922@localhost/res1'/>



*** User 2024-03-11 09:20:16.607 ***🔗
alice_connections_info_2922@localhost/res1 out
<message type='chat' to='alice_connections_info_2922@fed1/res1'>
	<body>Hi, foreign Alice!</body>
</message>



*** User 2024-03-11 09:20:16.617 ***🔗
alice_connections_info_2922@fed1/res1 in
<message from='alice_connections_info_2922@localhost/res1' to='alice_connections_info_2922@fed1/res1' type='chat'>
	<body>Hi, foreign Alice!</body>
</message>



*** User 2024-03-11 09:20:16.617 ***🔗
alice_connections_info_2922@fed1/res1 out
<message type='chat' to='alice_connections_info_2922@localhost/res1'>
	<body>Nice to meet you!</body>
</message>



*** User 2024-03-11 09:20:16.618 ***🔗
alice_connections_info_2922@localhost/res1 in
<message from='alice_connections_info_2922@fed1/res1' to='alice_connections_info_2922@localhost/res1' type='chat'>
	<body>Nice to meet you!</body>
</message>



*** User 2024-03-11 09:20:16.619 ***🔗
alice_connections_info_2922@localhost/res1 out
</stream:stream>

*** User 2024-03-11 09:20:16.620 ***🔗
alice_connections_info_2922@localhost/res1 in
</stream:stream>

*** User 2024-03-11 09:20:16.620 ***🔗
alice_connections_info_2922@fed1/res1 out
</stream:stream>

*** User 2024-03-11 09:20:16.621 ***🔗
alice_connections_info_2922@fed1/res1 in
</stream:stream>

*** User 2024-03-11 09:20:16.621 ***🔗
Node = mongooseim@localhost,  ConnectionType = in, Domain = fed1
DomainS2SConnections(1): [#{pid => <10240.93661.0>,port => 34788,
                            addr => {127,0,0,1},
                            direction => in,tls => false,shaper => s2s_shaper,
                            streamid => <<"6ee3cbbb2aa386fb">>,
                            tls_enabled => false,
                            tls_options =>
                                #{verify_mode => peer,
                                  ciphers => "TLSv1.2:TLSv1.3",
                                  dhfile => "priv/ssl/fake_dh_server.pem",
                                  protocol_options =>
                                      ["no_sslv2","no_sslv3","no_tlsv1",
                                       "no_tlsv1_1"]},
                            authenticated => false,
                            statename => stream_established,
                            domains => [<<"fed1">>]}]

*** User 2024-03-11 09:20:16.623 ***🔗
Node = mongooseim@localhost,  ConnectionType = out, Domain = fed1
DomainS2SConnections(2): [#{pid => <10240.93658.0>,port => 35896,
                            addr => {127,0,0,1},
                            verify => false,server => <<"fed1">>,
                            direction => out,tls => false,
                            streamid => <<"026b56c3de531a00">>,
                            use_v10 => false,tls_required => false,
                            tls_enabled => false,
                            tls_options =>
                                #{verify_mode => peer,
                                  ciphers => "TLSv1.2:TLSv1.3"},
                            authenticated => false,dialback_enabled => true,
                            try_auth => true,myname => <<"localhost">>,
                            delay_to_retry => undefined,
                            statename => stream_established},
                          #{pid => <10240.93662.0>,port => 35900,
                            addr => {127,0,0,1},
                            verify =>
                                {<10240.93661.0>,
                                 <<"86ec4d9b7ca062f22aa4ee37e196f2a84041253e9bce199cd8f5ce5ef91dca91">>,
                                 <<"6ee3cbbb2aa386fb">>},
                            server => <<"fed1">>,direction => out,
                            tls => false,streamid => <<"164a53781f4704d4">>,
                            use_v10 => false,tls_required => false,
                            tls_enabled => false,
                            tls_options =>
                                #{verify_mode => peer,
                                  ciphers => "TLSv1.2:TLSv1.3"},
                            authenticated => false,dialback_enabled => true,
                            try_auth => true,myname => <<"localhost">>,
                            delay_to_retry => undefined,
                            statename => wait_for_validation}]
*** CT 2024-03-11 09:20:16.627 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4475.html



=== Ended at 2024-03-11 09:20:16
=== successfully completed test case
=== === Returned value: ok


Test run history | Top level test index | Latest test result