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

=== Config value:

    [{watchdog,<0.90535.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,certfile => "priv/ssl/fake_server.pem",
              max_retry_delay => 300,ciphers => "TLSv1.2:TLSv1.3",
              default_policy => allow},
        listener =>
            #{module => ejabberd_s2s_in,port => 5269,num_acceptors => 100,
              hibernate_after => 0,backlog => 1024,
              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"]},
              shaper => s2s_shaper,max_stanza_size => 131072,proto => tcp,
              ip_address => "0",
              ip_tuple => {0,0,0,0},
              ip_version => 4,connection_type => s2s,
              proxy_protocol => false}}},
     {{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,certfile => "priv/ssl/fake_server.pem",
              max_retry_delay => 300,ciphers => "TLSv1.2:TLSv1.3",
              default_policy => allow},
        listener =>
            #{module => ejabberd_s2s_in,port => 5299,num_acceptors => 100,
              hibernate_after => 0,backlog => 1024,
              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"]},
              shaper => s2s_shaper,max_stanza_size => 131072,proto => tcp,
              ip_address => "0",
              ip_tuple => {0,0,0,0},
              ip_version => 4,connection_type => s2s,
              proxy_protocol => false}}},
     {escalus_user_db,xmpp},
     {preset,"odbc_mssql_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@e11a89fa87ff.2024-04-22_17.28.35/big_tests.tests.s2s_SUITE.logs/run.2024-04-22_17.46.23/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@e11a89fa87ff.2024-04-22_17.28.35/big_tests.tests.s2s_SUITE.logs/run.2024-04-22_17.46.23/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@e11a89fa87ff.2024-04-22_17.28.35"

=== Started at 2024-04-22 17:46:23


*** CT 2024-04-22 17:46:23.899 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5262.html

*** User 2024-04-22 17:46:23.914 ***🔗
alice_connections_info_3536@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-22 17:46:23.915 ***🔗
alice_connections_info_3536@fed1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2e66140cd4472231' from='fed1' version='1.0' xml:lang='en'>

*** User 2024-04-22 17:46:23.916 ***🔗
alice_connections_info_3536@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-22 17:46:23.916 ***🔗
alice_connections_info_3536@fed1 out
<iq type='get' id='76e5cdfc2659b8b41ee87a0dec3834ac'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-04-22 17:46:23.917 ***🔗
alice_connections_info_3536@fed1 in
<iq from='fed1' to='fed1' id='76e5cdfc2659b8b41ee87a0dec3834ac' 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-22 17:46:23.917 ***🔗
alice_connections_info_3536@fed1 out
<iq type='set' id='452f7563f8e6e71403b6b2d1ff1cee4f'>
	<query xmlns='jabber:iq:register'>
		<username>alice_connections_info_3536</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2024-04-22 17:46:23.942 ***🔗
alice_connections_info_3536@fed1 in
<iq from='fed1' to='fed1' id='452f7563f8e6e71403b6b2d1ff1cee4f' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alice_connections_info_3536</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2024-04-22 17:46:23.942 ***🔗
alice_connections_info_3536@fed1 out
</stream:stream>

*** User 2024-04-22 17:46:23.943 ***🔗
alice_connections_info_3536@fed1 in
</stream:stream>

*** User 2024-04-22 17:46:23.943 ***🔗
alicE_connections_info_3536@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-22 17:46:23.944 ***🔗
alicE_connections_info_3536@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='369af088cbe646e0' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 17:46:23.944 ***🔗
alicE_connections_info_3536@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-22 17:46:23.944 ***🔗
alicE_connections_info_3536@localhost out
<iq type='get' id='fb9f8ae8bf069b59a37a9c98483248df'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2024-04-22 17:46:23.946 ***🔗
alicE_connections_info_3536@localhost in
<iq from='localhost' to='localhost' id='fb9f8ae8bf069b59a37a9c98483248df' 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-22 17:46:23.946 ***🔗
alicE_connections_info_3536@localhost out
<iq type='set' id='41123036317c6ccc629582f6dfcdf34e'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_connections_info_3536</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-04-22 17:46:23.950 ***🔗
alicE_connections_info_3536@localhost in
<iq from='localhost' to='localhost' id='41123036317c6ccc629582f6dfcdf34e' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_connections_info_3536</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2024-04-22 17:46:23.950 ***🔗
alicE_connections_info_3536@localhost out
</stream:stream>

*** User 2024-04-22 17:46:23.950 ***🔗
alicE_connections_info_3536@localhost in
</stream:stream>

*** User 2024-04-22 17:46:23.952 ***🔗
alice_connections_info_3536@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-22 17:46:23.952 ***🔗
alice_connections_info_3536@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2e87f4fff4141087' from='fed1' version='1.0' xml:lang='en'>

*** User 2024-04-22 17:46:23.953 ***🔗
alice_connections_info_3536@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-22 17:46:23.953 ***🔗
alice_connections_info_3536@fed1/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX2Nvbm5lY3Rpb25zX2luZm9fMzUzNgBtYWtvdGEy</auth>



*** User 2024-04-22 17:46:23.955 ***🔗
alice_connections_info_3536@fed1/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 17:46:23.955 ***🔗
alice_connections_info_3536@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-22 17:46:23.955 ***🔗
alice_connections_info_3536@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fcc3e2841e0e137f' from='fed1' version='1.0' xml:lang='en' to='alice_connections_info_3536@fed1'>

*** User 2024-04-22 17:46:23.955 ***🔗
alice_connections_info_3536@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-22 17:46:23.956 ***🔗
alice_connections_info_3536@fed1/res1 out
<iq type='set' id='2ea95f5a5298fd7f57072b519898832c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 17:46:23.956 ***🔗
alice_connections_info_3536@fed1/res1 in
<iq id='2ea95f5a5298fd7f57072b519898832c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_connections_info_3536@fed1/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 17:46:23.956 ***🔗
alice_connections_info_3536@fed1/res1 out
<iq type='set' id='e24f8bb49430651f048bd5afd98a89fc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:46:23.956 ***🔗
alice_connections_info_3536@fed1/res1 in
<iq from='fed1' to='alice_connections_info_3536@fed1/res1' id='e24f8bb49430651f048bd5afd98a89fc' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:46:23.957 ***🔗
alice_connections_info_3536@fed1/res1 out
<presence/>



*** User 2024-04-22 17:46:23.957 ***🔗
alice_connections_info_3536@fed1/res1 in
<presence from='alice_connections_info_3536@fed1/res1' to='alice_connections_info_3536@fed1/res1'/>



*** User 2024-04-22 17:46:23.958 ***🔗
alicE_connections_info_3536@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-22 17:46:23.959 ***🔗
alicE_connections_info_3536@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d568ac3478161cb8' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-22 17:46:23.959 ***🔗
alicE_connections_info_3536@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-22 17:46:23.959 ***🔗
alicE_connections_info_3536@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2Nvbm5lY3Rpb25zX2luZm9fMzUzNgBtYXR5Z3J5c2E=</auth>



*** User 2024-04-22 17:46:23.961 ***🔗
alicE_connections_info_3536@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-22 17:46:23.961 ***🔗
alicE_connections_info_3536@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-22 17:46:23.961 ***🔗
alicE_connections_info_3536@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='196a814b529183d9' from='localhost' version='1.0' xml:lang='en' to='alice_connections_info_3536@localhost'>

*** User 2024-04-22 17:46:23.961 ***🔗
alicE_connections_info_3536@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-22 17:46:23.962 ***🔗
alicE_connections_info_3536@localhost/res1 out
<iq type='set' id='dd2b05d794a93735b25a14075c9ccc57'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-22 17:46:23.962 ***🔗
alicE_connections_info_3536@localhost/res1 in
<iq id='dd2b05d794a93735b25a14075c9ccc57' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_connections_info_3536@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-22 17:46:23.962 ***🔗
alice_connections_info_3536@localhost/res1 out
<iq type='set' id='83d8586e98f07edbb485b69bdbce3821'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:46:23.963 ***🔗
alice_connections_info_3536@localhost/res1 in
<iq from='localhost' to='alice_connections_info_3536@localhost/res1' id='83d8586e98f07edbb485b69bdbce3821' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-22 17:46:23.963 ***🔗
alice_connections_info_3536@localhost/res1 out
<presence/>



*** User 2024-04-22 17:46:23.964 ***🔗
alice_connections_info_3536@localhost/res1 in
<presence from='alice_connections_info_3536@localhost/res1' to='alice_connections_info_3536@localhost/res1'/>



*** User 2024-04-22 17:46:23.964 ***🔗
alice_connections_info_3536@localhost/res1 out
<message type='chat' to='alice_connections_info_3536@fed1/res1'>
	<body>Hi, foreign Alice!</body>
</message>



*** User 2024-04-22 17:46:23.969 ***🔗
alice_connections_info_3536@fed1/res1 in
<message from='alice_connections_info_3536@localhost/res1' to='alice_connections_info_3536@fed1/res1' type='chat'>
	<body>Hi, foreign Alice!</body>
</message>



*** User 2024-04-22 17:46:23.969 ***🔗
alice_connections_info_3536@fed1/res1 out
<message type='chat' to='alice_connections_info_3536@localhost/res1'>
	<body>Nice to meet you!</body>
</message>



*** User 2024-04-22 17:46:23.970 ***🔗
alice_connections_info_3536@localhost/res1 in
<message from='alice_connections_info_3536@fed1/res1' to='alice_connections_info_3536@localhost/res1' type='chat'>
	<body>Nice to meet you!</body>
</message>



*** User 2024-04-22 17:46:23.970 ***🔗
alice_connections_info_3536@localhost/res1 out
</stream:stream>

*** User 2024-04-22 17:46:23.971 ***🔗
alice_connections_info_3536@localhost/res1 in
</stream:stream>

*** User 2024-04-22 17:46:23.971 ***🔗
alice_connections_info_3536@fed1/res1 out
</stream:stream>

*** User 2024-04-22 17:46:23.971 ***🔗
alice_connections_info_3536@fed1/res1 in
</stream:stream>

*** User 2024-04-22 17:46:23.972 ***🔗
Node = mongooseim@localhost,  ConnectionType = in, Domain = fed1
DomainS2SConnections(1): [#{pid => <10242.143485.0>,port => 38546,
                            addr => {127,0,0,1},
                            tls => false,statename => stream_established,
                            shaper => s2s_shaper,direction => in,
                            streamid => <<"bd08923a016941fa">>,
                            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,
                            domains => [<<"fed1">>]}]

*** User 2024-04-22 17:46:23.973 ***🔗
Node = mongooseim@localhost,  ConnectionType = out, Domain = fed1
DomainS2SConnections(2): [#{pid => <10242.143482.0>,port => 36656,
                            addr => {127,0,0,1},
                            verify => false,server => <<"fed1">>,tls => false,
                            statename => stream_established,direction => out,
                            streamid => <<"051057c2af506f52">>,
                            tls_enabled => false,tls_required => false,
                            tls_options =>
                                #{ciphers => "TLSv1.2:TLSv1.3",
                                  verify_mode => peer},
                            authenticated => false,use_v10 => false,
                            dialback_enabled => true,try_auth => true,
                            myname => <<"localhost">>,
                            delay_to_retry => undefined},
                          #{pid => <10242.143486.0>,port => 36660,
                            addr => {127,0,0,1},
                            verify =>
                                {<10242.143485.0>,
                                 <<"772cd613c23e21edafedd90ba1ad1e09fbf7fa557a0c4443aebdfab260c2ce46">>,
                                 <<"bd08923a016941fa">>},
                            server => <<"fed1">>,tls => false,
                            statename => wait_for_validation,direction => out,
                            streamid => <<"a78146cc51773bfd">>,
                            tls_enabled => false,tls_required => false,
                            tls_options =>
                                #{ciphers => "TLSv1.2:TLSv1.3",
                                  verify_mode => peer},
                            authenticated => false,use_v10 => false,
                            dialback_enabled => true,try_auth => true,
                            myname => <<"localhost">>,
                            delay_to_retry => undefined}]
*** CT 2024-04-22 17:46:23.976 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5262.html



=== Ended at 2024-04-22 17:46:23
=== successfully completed test case
=== === Returned value: ok


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