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

=== Config value:

    [{watchdog,<0.27322.1>},
     {{s2s,mim},
      #{listener =>
            #{backlog => 100,hibernate_after => 0,ip_address => "0",
              ip_tuple => {0,0,0,0},
              ip_version => 4,max_stanza_size => 131072,
              module => ejabberd_s2s_in,num_acceptors => 100,port => 5269,
              proto => tcp,proxy_protocol => false,shaper => s2s_shaper,
              tls => [{dhfile,"priv/ssl/fake_dh_server.pem"}]},
        opts =>
            #{address => #{<<"fed1">> => #{ip_address => "127.0.0.1"}},
              certfile => "priv/ssl/fake_server.pem",
              ciphers => "TLSv1.2:TLSv1.3",default_policy => allow,
              dns => #{retries => 2,timeout => 10},
              max_retry_delay => 300,
              outgoing =>
                  #{connection_timeout => 10000,
                    ip_versions => [4,6],
                    port => 5299},
              use_starttls => optional}}},
     {{s2s,fed},
      #{listener =>
            #{backlog => 100,hibernate_after => 0,ip_address => "0",
              ip_tuple => {0,0,0,0},
              ip_version => 4,max_stanza_size => 131072,
              module => ejabberd_s2s_in,num_acceptors => 100,port => 5299,
              proto => tcp,proxy_protocol => false,shaper => s2s_shaper,
              tls => [{dhfile,"priv/ssl/fake_dh_server.pem"}]},
        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"}},
              certfile => "priv/ssl/fake_server.pem",
              ciphers => "TLSv1.2:TLSv1.3",default_policy => allow,
              dns => #{retries => 2,timeout => 10},
              max_retry_delay => 300,
              outgoing =>
                  #{connection_timeout => 10000,
                    ip_versions => [4,6],
                    port => 5269},
              use_starttls => optional}}},
     {escalus_user_db,xmpp},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/s2s_SUITE_data"},
     {preset,"elasticsearch_and_cassandra_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1d2c55569403.2022-05-25_09.03.50/big_tests.tests.s2s_SUITE.logs/run.2022-05-25_09.15.20/s2s_suite.simple_message.96514.html"},
     {tc_group_properties,[{name,node1_tls_optional_node2_tls_required_trusted_with_cachain},
                           parallel]},
     {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@1d2c55569403.2022-05-25_09.03.50/big_tests.tests.s2s_SUITE.logs/run.2022-05-25_09.15.20/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@1d2c55569403.2022-05-25_09.03.50"

=== Started at 2022-05-25 09:15:31


*** CT 2022-05-25 09:15:31.834 *** View log from node mongooseim@localhost when started mongooseim@localhost_5495.html
*** CT 2022-05-25 09:15:31.834 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2007.html

*** User 2022-05-25 09:15:31.852 ***
alice_simple_message_1617@fed1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 09:15:31.853 ***
alice_simple_message_1617@fed1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac92ed00c977b492' from='fed1' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:15:31.853 ***
alice_simple_message_1617@fed1 in
<stream:features>
	<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>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 09:15:31.853 ***
alice_simple_message_1617@fed1 out
<iq type='get' id='5815fadc6ff922e3a1095f2b392f2bd5'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-05-25 09:15:31.853 ***
alice_simple_message_1617@fed1 in
<iq from='fed1' id='5815fadc6ff922e3a1095f2b392f2bd5' type='result'>
	<query xmlns='jabber:iq:register'>
		<instructions>Choose a username and password to register with this server</instructions>
		<username/>
		<password/>
	</query>
</iq>



*** User 2022-05-25 09:15:31.853 ***
alice_simple_message_1617@fed1 out
<iq type='set' id='1936b683ce42ea1e0bef72b0a6034fe3'>
	<query xmlns='jabber:iq:register'>
		<username>alice_simple_message_1617</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2022-05-25 09:15:31.873 ***
alice_simple_message_1617@fed1 in
<iq from='fed1' id='1936b683ce42ea1e0bef72b0a6034fe3' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alice_simple_message_1617</username>
		<password>makota2</password>
	</query>
</iq>



*** User 2022-05-25 09:15:31.873 ***
alice_simple_message_1617@fed1 out
</stream:stream>

*** User 2022-05-25 09:15:31.874 ***
alice_simple_message_1617@fed1 in
</stream:stream>

*** User 2022-05-25 09:15:31.874 ***
alicE_simple_message_1617@localhost out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 09:15:31.875 ***
alicE_simple_message_1617@localhost in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7f55a358c5368702' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:15:31.875 ***
alicE_simple_message_1617@localhost 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 2022-05-25 09:15:31.875 ***
alicE_simple_message_1617@localhost out
<iq type='get' id='d966e70580b036adfdb5dac43f7b86b6'>
	<query xmlns='jabber:iq:register'/>
</iq>



*** User 2022-05-25 09:15:31.875 ***
alicE_simple_message_1617@localhost in
<iq from='localhost' id='d966e70580b036adfdb5dac43f7b86b6' type='result'>
	<query xmlns='jabber:iq:register'>
		<instructions>Choose a username and password to register with this server</instructions>
		<username/>
		<password/>
	</query>
</iq>



*** User 2022-05-25 09:15:31.875 ***
alicE_simple_message_1617@localhost out
<iq type='set' id='d04dd8cf8a88e69902910736412eaf9f'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_simple_message_1617</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-05-25 09:15:31.876 ***
alicE_simple_message_1617@localhost in
<iq from='localhost' id='d04dd8cf8a88e69902910736412eaf9f' type='result'>
	<query xmlns='jabber:iq:register'>
		<username>alicE_simple_message_1617</username>
		<password>matygrysa</password>
	</query>
</iq>



*** User 2022-05-25 09:15:31.876 ***
alicE_simple_message_1617@localhost out
</stream:stream>

*** User 2022-05-25 09:15:31.876 ***
alicE_simple_message_1617@localhost in
</stream:stream>

*** User 2022-05-25 09:15:31.876 ***
alice_simple_message_1617@fed1/res1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 09:15:31.891 ***
alice_simple_message_1617@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b44883b4171b8e1e' from='fed1' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:15:31.892 ***
alice_simple_message_1617@fed1/res1 in
<stream:features>
	<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>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 09:15:31.892 ***
alice_simple_message_1617@fed1/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNlX3NpbXBsZV9tZXNzYWdlXzE2MTcAbWFrb3RhMg==</auth>



*** User 2022-05-25 09:15:31.894 ***
alice_simple_message_1617@fed1/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:15:31.894 ***
alice_simple_message_1617@fed1/res1 out
<stream:stream to='fed1' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 09:15:31.895 ***
alice_simple_message_1617@fed1/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8d56f265d7e60d2' from='fed1' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:15:31.895 ***
alice_simple_message_1617@fed1/res1 in
<stream:features>
	<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'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-25 09:15:31.895 ***
alice_simple_message_1617@fed1/res1 out
<iq type='set' id='1cd2e082ed8b7e44e032d82b3323ad12'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:15:31.895 ***
alice_simple_message_1617@fed1/res1 in
<iq id='1cd2e082ed8b7e44e032d82b3323ad12' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_simple_message_1617@fed1/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:15:31.895 ***
alice_simple_message_1617@fed1/res1 out
<iq type='set' id='821090e43831c74750125a2165e0c01a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:15:31.895 ***
alice_simple_message_1617@fed1/res1 in
<iq type='result' id='821090e43831c74750125a2165e0c01a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:15:31.895 ***
alice_simple_message_1617@fed1/res1 out
<presence/>



*** User 2022-05-25 09:15:31.896 ***
alice_simple_message_1617@fed1/res1 in
<presence from='alice_simple_message_1617@fed1/res1' to='alice_simple_message_1617@fed1/res1' xml:lang='en'/>



*** User 2022-05-25 09:15:31.896 ***
alicE_simple_message_1617@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 09:15:31.897 ***
alicE_simple_message_1617@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='187829ef9fb704c8' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:15:31.897 ***
alicE_simple_message_1617@localhost/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 2022-05-25 09:15:31.897 ***
alicE_simple_message_1617@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3NpbXBsZV9tZXNzYWdlXzE2MTcAbWF0eWdyeXNh</auth>



*** User 2022-05-25 09:15:31.897 ***
alicE_simple_message_1617@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:15:31.897 ***
alicE_simple_message_1617@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-25 09:15:31.898 ***
alicE_simple_message_1617@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='156cb6f8fd2d81af' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:15:31.898 ***
alicE_simple_message_1617@localhost/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 2022-05-25 09:15:31.898 ***
alicE_simple_message_1617@localhost/res1 out
<iq type='set' id='4e3f83a2dbd4974cba28c0a2ae288de7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:15:31.898 ***
alicE_simple_message_1617@localhost/res1 in
<iq id='4e3f83a2dbd4974cba28c0a2ae288de7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_simple_message_1617@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:15:31.898 ***
alice_simple_message_1617@localhost/res1 out
<iq type='set' id='674c12963db9612279da1355622f669f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:15:31.898 ***
alice_simple_message_1617@localhost/res1 in
<iq type='result' id='674c12963db9612279da1355622f669f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:15:31.898 ***
alice_simple_message_1617@localhost/res1 out
<presence/>



*** User 2022-05-25 09:15:31.899 ***
alice_simple_message_1617@localhost/res1 in
<presence from='alice_simple_message_1617@localhost/res1' to='alice_simple_message_1617@localhost/res1' xml:lang='en'/>



*** User 2022-05-25 09:15:31.899 ***
alice_simple_message_1617@localhost/res1 out
<message to='alice_simple_message_1617@fed1/res1' type='chat'>
	<body>Hi, foreign Alice!</body>
</message>



*** User 2022-05-25 09:15:31.906 ***
alice_simple_message_1617@fed1/res1 in
<message from='alice_simple_message_1617@localhost/res1' to='alice_simple_message_1617@fed1/res1' xml:lang='en' type='chat'>
	<body>Hi, foreign Alice!</body>
</message>



*** User 2022-05-25 09:15:31.907 ***
alice_simple_message_1617@fed1/res1 out
<message to='alice_simple_message_1617@localhost/res1' type='chat'>
	<body>Nice to meet you!</body>
</message>



*** User 2022-05-25 09:15:31.916 ***
alice_simple_message_1617@localhost/res1 in
<message from='alice_simple_message_1617@fed1/res1' to='alice_simple_message_1617@localhost/res1' xml:lang='en' type='chat'>
	<body>Nice to meet you!</body>
</message>



*** User 2022-05-25 09:15:31.916 ***
alice_simple_message_1617@localhost/res1 out
</stream:stream>

*** User 2022-05-25 09:15:31.916 ***
alice_simple_message_1617@localhost/res1 in
</stream:stream>

*** User 2022-05-25 09:15:31.916 ***
alice_simple_message_1617@fed1/res1 out
</stream:stream>

*** User 2022-05-25 09:15:31.916 ***
alice_simple_message_1617@fed1/res1 in
</stream:stream>
*** CT 2022-05-25 09:15:31.918 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2007.html
*** CT 2022-05-25 09:15:31.919 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5495.html



=== Ended at 2022-05-25 09:15:31
=== successfully completed test case
=== === Returned value: ok