=== Test case: rest_SUITE:messages_are_sent_and_received/1 (click for source code)

=== Config value:

    [{watchdog,<0.75003.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@983bb6b138f0.2024-04-26_13.09.46/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.22.30/rest_suite.messages_are_sent_and_received.222210.html"},
     {tc_group_properties,[{name,admin},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@983bb6b138f0.2024-04-26_13.09.46/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.22.30/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_sic => #{iqdisc => one_queue},
        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_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"domain.example.com">>},
                             {host,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"domain.example.com">>},
                           {host,<<"localhost">>},
                           {password,<<"makrolika">>}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@983bb6b138f0.2024-04-26_13.09.46"

=== Started at 2024-04-26 13:22:30


*** CT 2024-04-26 13:22:30.583 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2580.html

*** User 2024-04-26 13:22:30.636 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/res1 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-26 13:22:30.637 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dfd923b589efa00d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-26 13:22:30.637 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/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-26 13:22:30.637 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9zZW50X2FuZF9yZWNlaXZlZF8yOTA0AG1hdHlncnlzYQ==</auth>



*** User 2024-04-26 13:22:30.638 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 13:22:30.639 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/res1 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-26 13:22:30.639 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='43edb4179bb2c41a' from='domain.example.com' version='1.0' xml:lang='en' to='alice_messages_are_sent_and_received_2904@domain.example.com'>

*** User 2024-04-26 13:22:30.640 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/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-26 13:22:30.640 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/res1 out
<iq type='set' id='3d6db9c3d0ff0f7c901145f19e908fb4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 13:22:30.641 ***🔗
alicE_messages_are_sent_and_received_2904@domain.example.com/res1 in
<iq id='3d6db9c3d0ff0f7c901145f19e908fb4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_messages_are_sent_and_received_2904@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 13:22:30.641 ***🔗
alice_messages_are_sent_and_received_2904@domain.example.com/res1 out
<iq type='set' id='cfd58996b862a23da88e8b6d22e27b33'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:22:30.643 ***🔗
alice_messages_are_sent_and_received_2904@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_messages_are_sent_and_received_2904@domain.example.com/res1' id='cfd58996b862a23da88e8b6d22e27b33' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:22:30.643 ***🔗
alice_messages_are_sent_and_received_2904@domain.example.com/res1 out
<presence/>



*** User 2024-04-26 13:22:30.676 ***🔗
alice_messages_are_sent_and_received_2904@domain.example.com/res1 in
<presence from='alice_messages_are_sent_and_received_2904@domain.example.com/res1' to='alice_messages_are_sent_and_received_2904@domain.example.com/res1'/>



*** User 2024-04-26 13:22:30.677 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/res1 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-26 13:22:30.679 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1d17dc4aac2c796' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-26 13:22:30.679 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/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-26 13:22:30.679 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfc2VudF9hbmRfcmVjZWl2ZWRfMjkwNABtYWtyb2xpa2E=</auth>



*** User 2024-04-26 13:22:30.681 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 13:22:30.681 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/res1 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-26 13:22:30.682 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9ccadc40297143ef' from='domain.example.com' version='1.0' xml:lang='en' to='bob_messages_are_sent_and_received_2904@domain.example.com'>

*** User 2024-04-26 13:22:30.682 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/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-26 13:22:30.683 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/res1 out
<iq type='set' id='5eac42fc562a11a8f2ae6de052f681b3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 13:22:30.684 ***🔗
bOb_messages_are_sent_and_received_2904@domain.example.com/res1 in
<iq id='5eac42fc562a11a8f2ae6de052f681b3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_messages_are_sent_and_received_2904@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 13:22:30.684 ***🔗
bob_messages_are_sent_and_received_2904@domain.example.com/res1 out
<iq type='set' id='7f09e55feea871e8331db2947578aa61'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:22:30.686 ***🔗
bob_messages_are_sent_and_received_2904@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_messages_are_sent_and_received_2904@domain.example.com/res1' id='7f09e55feea871e8331db2947578aa61' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 13:22:30.686 ***🔗
bob_messages_are_sent_and_received_2904@domain.example.com/res1 out
<presence/>



*** User 2024-04-26 13:22:30.691 ***🔗
bob_messages_are_sent_and_received_2904@domain.example.com/res1 in
<presence from='bob_messages_are_sent_and_received_2904@domain.example.com/res1' to='bob_messages_are_sent_and_received_2904@domain.example.com/res1'/>



*** User 2024-04-26 13:22:30.713 ***🔗
REST request:
Code: 204
Req: {<0.75223.0>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c8a48d63b43f7219">>}],
      <<"{\"body\":\"hello from Bob\",\"to\":\"alice_messages_are_sent_and_received_2904@domain.example.com\",\"caller\":\"bob_messages_are_sent_and_received_2904@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
         <<>>,80,19094}
Params: #{path => <<"/api/messages">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"body\":\"hello from Bob\",\"to\":\"alice_messages_are_sent_and_received_2904@domain.example.com\",\"caller\":\"bob_messages_are_sent_and_received_2904@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-26 13:22:30.778 ***🔗
REST request:
Code: 204
Req: {<0.75302.0>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"456538f6d4a23dff">>}],
      <<"{\"body\":\"hello from Alice\",\"to\":\"bob_messages_are_sent_and_received_2904@domain.example.com\",\"caller\":\"alice_messages_are_sent_and_received_2904@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
         <<>>,80,63249}
Params: #{path => <<"/api/messages">>,
          server => #{node => mongooseim@localhost},
          role => admin,
          body =>
              <<"{\"body\":\"hello from Alice\",\"to\":\"bob_messages_are_sent_and_received_2904@domain.example.com\",\"caller\":\"alice_messages_are_sent_and_received_2904@domain.example.com\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-26 13:22:30.779 ***🔗
alice_messages_are_sent_and_received_2904@domain.example.com/res1 in
<message from='bob_messages_are_sent_and_received_2904@domain.example.com' to='alice_messages_are_sent_and_received_2904@domain.example.com' id='c6f2d1cc8c3156a6' type='chat'>
	<body>hello from Bob</body>
	<stanza-id by='alice_messages_are_sent_and_received_2904@domain.example.com' id='C5NVPESUU9G1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-26 13:22:30.779 ***🔗
bob_messages_are_sent_and_received_2904@domain.example.com/res1 in
<message from='alice_messages_are_sent_and_received_2904@domain.example.com' to='bob_messages_are_sent_and_received_2904@domain.example.com' id='be2379d469bf497c' type='chat'>
	<body>hello from Alice</body>
	<stanza-id by='bob_messages_are_sent_and_received_2904@domain.example.com' id='C5NVPET3P7O1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-26 13:22:30.779 ***🔗
bob_messages_are_sent_and_received_2904@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-26 13:22:30.780 ***🔗
bob_messages_are_sent_and_received_2904@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-26 13:22:30.780 ***🔗
alice_messages_are_sent_and_received_2904@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-26 13:22:30.780 ***🔗
alice_messages_are_sent_and_received_2904@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-26 13:22:30.794 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2580.html



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