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

=== Config value:

    [{watchdog,<0.90012.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,shaper => s2s_shaper,
              max_stanza_size => 131072,proto => tcp,ip_address => "0",
              tls =>
                  #{ciphers => "TLSv1.2:TLSv1.3",verify_mode => peer,
                    dhfile => "priv/ssl/fake_dh_server.pem",
                    protocol_options =>
                        ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
              ip_tuple => {0,0,0,0},
              ip_version => 4,proxy_protocol => false,
              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,shaper => s2s_shaper,
              max_stanza_size => 131072,proto => tcp,ip_address => "0",
              tls =>
                  #{ciphers => "TLSv1.2:TLSv1.3",verify_mode => peer,
                    dhfile => "priv/ssl/fake_dh_server.pem",
                    protocol_options =>
                        ["no_sslv2","no_sslv3","no_tlsv1","no_tlsv1_1"]},
              ip_tuple => {0,0,0,0},
              ip_version => 4,proxy_protocol => false,
              connection_type => s2s}}},
     {escalus_user_db,xmpp},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/s2s_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@8a2dd56084c3.2024-04-16_12.56.12/big_tests.tests.s2s_SUITE.logs/run.2024-04-16_13.12.30/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@8a2dd56084c3.2024-04-16_12.56.12/big_tests.tests.s2s_SUITE.logs/run.2024-04-16_13.12.30/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@8a2dd56084c3.2024-04-16_12.56.12"

=== Started at 2024-04-16 13:12:30


*** CT 2024-04-16 13:12:30.290 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4926.html

*** User 2024-04-16 13:12:30.293 ***🔗
alice_connections_info_3416@fed1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-16 13:12:30.294 ***🔗
alice_connections_info_3416@fed1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='22ed96fd2ecc5941' from='fed1' version='1.0' xml:lang='en'>

*** User 2024-04-16 13:12:30.294 ***🔗
alice_connections_info_3416@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-04-16 13:12:30.294 ***🔗
alice_connections_info_3416@fed1 out
<iq type='get' id='fd9eb5b4f3a33078b285ac88dcd205b1'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-04-16 13:12:30.295 ***🔗
alice_connections_info_3416@fed1 in
<iq from='fed1' to='fed1' id='fd9eb5b4f3a33078b285ac88dcd205b1' 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-04-16 13:12:30.295 ***🔗
alice_connections_info_3416@fed1 out
<iq type='set' id='1b2631f5fdbb5adc54dd7772d1746584'>
	<query xmlns='jabber:iq:register'>
		<username>alice_connections_info_3416</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2024-04-16 13:12:30.314 ***🔗
alice_connections_info_3416@fed1 in
<iq from='fed1' to='fed1' id='1b2631f5fdbb5adc54dd7772d1746584' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alice_connections_info_3416</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2024-04-16 13:12:30.315 ***🔗
alice_connections_info_3416@fed1 out
</stream:stream>

*** User 2024-04-16 13:12:30.315 ***🔗
alice_connections_info_3416@fed1 in
</stream:stream>

*** User 2024-04-16 13:12:30.316 ***🔗
alicE_connections_info_3416@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-16 13:12:30.316 ***🔗
alicE_connections_info_3416@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d80509761cc72b2a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 13:12:30.317 ***🔗
alicE_connections_info_3416@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-04-16 13:12:30.317 ***🔗
alicE_connections_info_3416@localhost out
<iq type='get' id='d09e5d325e646bbbe187740efc897667'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-04-16 13:12:30.317 ***🔗
alicE_connections_info_3416@localhost in
<iq from='localhost' to='localhost' id='d09e5d325e646bbbe187740efc897667' 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-04-16 13:12:30.317 ***🔗
alicE_connections_info_3416@localhost out
<iq type='set' id='af99840c67255f5146784a276d0cf06b'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_connections_info_3416</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-04-16 13:12:30.320 ***🔗
alicE_connections_info_3416@localhost in
<iq from='localhost' to='localhost' id='af99840c67255f5146784a276d0cf06b' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_connections_info_3416</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-04-16 13:12:30.320 ***🔗
alicE_connections_info_3416@localhost out
</stream:stream>

*** User 2024-04-16 13:12:30.321 ***🔗
alicE_connections_info_3416@localhost in
</stream:stream>

*** User 2024-04-16 13:12:30.322 ***🔗
alice_connections_info_3416@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-04-16 13:12:30.322 ***🔗
alice_connections_info_3416@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e746f4695aad24d2' from='fed1' version='1.0' xml:lang='en'>

*** User 2024-04-16 13:12:30.323 ***🔗
alice_connections_info_3416@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-04-16 13:12:30.323 ***🔗
alice_connections_info_3416@fed1/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX2Nvbm5lY3Rpb25zX2luZm9fMzQxNgBtYWtvdGEy</auth>



*** User 2024-04-16 13:12:30.325 ***🔗
alice_connections_info_3416@fed1/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 13:12:30.325 ***🔗
alice_connections_info_3416@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-04-16 13:12:30.325 ***🔗
alice_connections_info_3416@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e48a65210e5e4a72' from='fed1' version='1.0' xml:lang='en' to='alice_connections_info_3416@fed1'>

*** User 2024-04-16 13:12:30.325 ***🔗
alice_connections_info_3416@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-04-16 13:12:30.325 ***🔗
alice_connections_info_3416@fed1/res1 out
<iq type='set' id='170c4c3cf26b37a2ac4ee6ecdd342514'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 13:12:30.326 ***🔗
alice_connections_info_3416@fed1/res1 in
<iq id='170c4c3cf26b37a2ac4ee6ecdd342514' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_connections_info_3416@fed1/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 13:12:30.326 ***🔗
alice_connections_info_3416@fed1/res1 out
<iq type='set' id='771ee6d2c2a26481801edf44b38e3ce1'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 13:12:30.326 ***🔗
alice_connections_info_3416@fed1/res1 in
<iq from='fed1' to='alice_connections_info_3416@fed1/res1' id='771ee6d2c2a26481801edf44b38e3ce1' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 13:12:30.326 ***🔗
alice_connections_info_3416@fed1/res1 out
<presence/>



*** User 2024-04-16 13:12:30.327 ***🔗
alice_connections_info_3416@fed1/res1 in
<presence from='alice_connections_info_3416@fed1/res1' to='alice_connections_info_3416@fed1/res1'/>



*** User 2024-04-16 13:12:30.327 ***🔗
alicE_connections_info_3416@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-04-16 13:12:30.328 ***🔗
alicE_connections_info_3416@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c06a27cb9381bb9d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-16 13:12:30.328 ***🔗
alicE_connections_info_3416@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-04-16 13:12:30.328 ***🔗
alicE_connections_info_3416@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2Nvbm5lY3Rpb25zX2luZm9fMzQxNgBtYXR5Z3J5c2E=</auth>



*** User 2024-04-16 13:12:30.329 ***🔗
alicE_connections_info_3416@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-16 13:12:30.329 ***🔗
alicE_connections_info_3416@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-04-16 13:12:30.329 ***🔗
alicE_connections_info_3416@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de0656c8abff82d3' from='localhost' version='1.0' xml:lang='en' to='alice_connections_info_3416@localhost'>

*** User 2024-04-16 13:12:30.329 ***🔗
alicE_connections_info_3416@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-04-16 13:12:30.329 ***🔗
alicE_connections_info_3416@localhost/res1 out
<iq type='set' id='a59cabc4de9ba67f0310a0434fabe9f2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-16 13:12:30.330 ***🔗
alicE_connections_info_3416@localhost/res1 in
<iq id='a59cabc4de9ba67f0310a0434fabe9f2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_connections_info_3416@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-16 13:12:30.330 ***🔗
alice_connections_info_3416@localhost/res1 out
<iq type='set' id='745b0a5a01e07ebd8dfad7cf8f921944'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 13:12:30.330 ***🔗
alice_connections_info_3416@localhost/res1 in
<iq from='localhost' to='alice_connections_info_3416@localhost/res1' id='745b0a5a01e07ebd8dfad7cf8f921944' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-16 13:12:30.330 ***🔗
alice_connections_info_3416@localhost/res1 out
<presence/>



*** User 2024-04-16 13:12:30.331 ***🔗
alice_connections_info_3416@localhost/res1 in
<presence from='alice_connections_info_3416@localhost/res1' to='alice_connections_info_3416@localhost/res1'/>



*** User 2024-04-16 13:12:30.331 ***🔗
alice_connections_info_3416@localhost/res1 out
<message type='chat' to='alice_connections_info_3416@fed1/res1'>
	<body>Hi, foreign Alice!</body>
</message>



*** User 2024-04-16 13:12:30.335 ***🔗
alice_connections_info_3416@fed1/res1 in
<message from='alice_connections_info_3416@localhost/res1' to='alice_connections_info_3416@fed1/res1' type='chat'>
	<body>Hi, foreign Alice!</body>
</message>



*** User 2024-04-16 13:12:30.335 ***🔗
alice_connections_info_3416@fed1/res1 out
<message type='chat' to='alice_connections_info_3416@localhost/res1'>
	<body>Nice to meet you!</body>
</message>



*** User 2024-04-16 13:12:30.336 ***🔗
alice_connections_info_3416@localhost/res1 in
<message from='alice_connections_info_3416@fed1/res1' to='alice_connections_info_3416@localhost/res1' type='chat'>
	<body>Nice to meet you!</body>
</message>



*** User 2024-04-16 13:12:30.336 ***🔗
alice_connections_info_3416@localhost/res1 out
</stream:stream>

*** User 2024-04-16 13:12:30.336 ***🔗
alice_connections_info_3416@localhost/res1 in
</stream:stream>

*** User 2024-04-16 13:12:30.337 ***🔗
alice_connections_info_3416@fed1/res1 out
</stream:stream>

*** User 2024-04-16 13:12:30.337 ***🔗
alice_connections_info_3416@fed1/res1 in
</stream:stream>

*** User 2024-04-16 13:12:30.337 ***🔗
Node = mongooseim@localhost,  ConnectionType = in, Domain = fed1
DomainS2SConnections(1): [#{pid => <10242.141773.0>,port => 37394,
                            addr => {127,0,0,1},
                            statename => stream_established,
                            shaper => s2s_shaper,
                            streamid => <<"fa20fde2f3b39068">>,tls => false,
                            tls_enabled => false,
                            tls_options =>
                                #{ciphers => "TLSv1.2:TLSv1.3",
                                  verify_mode => peer,
                                  dhfile => "priv/ssl/fake_dh_server.pem",
                                  protocol_options =>
                                      ["no_sslv2","no_sslv3","no_tlsv1",
                                       "no_tlsv1_1"]},
                            authenticated => false,direction => in,
                            domains => [<<"fed1">>]}]

*** User 2024-04-16 13:12:30.338 ***🔗
Node = mongooseim@localhost,  ConnectionType = out, Domain = fed1
DomainS2SConnections(2): [#{pid => <10242.141770.0>,port => 47194,
                            addr => {127,0,0,1},
                            verify => false,server => <<"fed1">>,
                            statename => stream_established,
                            streamid => <<"65b61e76ad9386a0">>,
                            use_v10 => false,tls => false,
                            tls_required => false,tls_enabled => false,
                            tls_options =>
                                #{ciphers => "TLSv1.2:TLSv1.3",
                                  verify_mode => peer},
                            authenticated => false,dialback_enabled => true,
                            try_auth => true,myname => <<"localhost">>,
                            delay_to_retry => undefined,direction => out},
                          #{pid => <10242.141774.0>,port => 47196,
                            addr => {127,0,0,1},
                            verify =>
                                {<10242.141773.0>,
                                 <<"ed2916a8aaa81298e325ce344070e89c5276c0a4468a7ba3fa586d6849c485e2">>,
                                 <<"fa20fde2f3b39068">>},
                            server => <<"fed1">>,
                            statename => wait_for_validation,
                            streamid => <<"4acd58d075c96d96">>,
                            use_v10 => false,tls => false,
                            tls_required => false,tls_enabled => false,
                            tls_options =>
                                #{ciphers => "TLSv1.2:TLSv1.3",
                                  verify_mode => peer},
                            authenticated => false,dialback_enabled => true,
                            try_auth => true,myname => <<"localhost">>,
                            delay_to_retry => undefined,direction => out}]
*** CT 2024-04-16 13:12:30.341 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4926.html



=== Ended at 2024-04-16 13:12:30
=== successfully completed test case
=== === Returned value: ok


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