=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_over_xmpp/1 (click for source code)

=== Config value:

    [{watchdog,<0.82619.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"pgsql_cets"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_23.35.36/rest_client_suite.msg_is_sent_and_delivered_over_xmpp.209154.html"},
     {tc_group_properties,[{name,messages},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_23.35.36/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        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_sic => #{iqdisc => one_queue},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{server_info => [],iqdisc => one_queue,extra_domains => [],
              users_can_see_hidden_services => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              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 => cets,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}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@81b4ed498ac1.2024-04-23_23.21.08"

=== Started at 2024-04-23 23:35:36


*** CT 2024-04-23 23:35:36.774 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5547.html

*** User 2024-04-23 23:35:36.792 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@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-23 23:35:36.793 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3bc6601c429ee14c' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 23:35:36.793 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@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-23 23:35:36.793 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfb3Zlcl94bXBwXzI5NzUAbWF0eWdyeXNh</auth>



*** User 2024-04-23 23:35:36.795 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 23:35:36.795 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@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-23 23:35:36.796 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='656b56de91effa6b' from='localhost' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost'>

*** User 2024-04-23 23:35:36.796 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@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-23 23:35:36.796 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
<iq type='set' id='f9170f836f53f473fa65414e78b4bbba'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 23:35:36.796 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<iq id='f9170f836f53f473fa65414e78b4bbba' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 23:35:36.796 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
<iq type='set' id='ab1f6834a4f78b05b35381dcab6b207d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:36.826 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<iq from='localhost' to='alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1' id='ab1f6834a4f78b05b35381dcab6b207d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:36.827 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
<presence/>



*** User 2024-04-23 23:35:36.833 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<presence from='alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1' to='alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1'/>



*** User 2024-04-23 23:35:36.834 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@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-23 23:35:36.835 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b2f03f81a0360736' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 23:35:36.835 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@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-23 23:35:36.835 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX292ZXJfeG1wcF8yOTc1AG1ha3JvbGlrYQ==</auth>



*** User 2024-04-23 23:35:36.836 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 23:35:36.836 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@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-23 23:35:36.837 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='70ff4777fafbab29' from='localhost' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost'>

*** User 2024-04-23 23:35:36.837 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@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-23 23:35:36.837 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
<iq type='set' id='79ee14a859079e735b6172c5404f610f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 23:35:36.837 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<iq id='79ee14a859079e735b6172c5404f610f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 23:35:36.837 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
<iq type='set' id='8656391a85487b579457abe495ec5b1b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:36.840 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<iq from='localhost' to='bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1' id='8656391a85487b579457abe495ec5b1b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:36.840 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
<presence/>



*** User 2024-04-23 23:35:36.845 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<presence from='bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1' to='bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1'/>



*** User 2024-04-23 23:35:36.862 ***🔗
REST request:
Code: 200
Req: {<0.82702.0>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"85356da27344e1d4">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9vdmVyX3htcHBfMjk3NUBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
      <<"{\"to\":\"bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost\",\"body\":\"hello, bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:35:36 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"25">>}],
         <<"{\"id\":\"8af40a331964c77d\"}">>,149,9153}
Params: #{path => <<"/api/messages">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"to\":\"bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost\",\"body\":\"hello, bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost it's me\"}">>,
          role => client,method => <<"POST">>,
          creds =>
              {<<"alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost">>,
               <<"matygrysa">>},
          return_headers => true}


*** User 2024-04-23 23:35:36.862 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
<message from='alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost' to='bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost' id='8af40a331964c77d' type='chat'>
	<body>hello, bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost it&apos;s me</body>
	<stanza-id by='bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost' id='C5MC0BA0NH81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-23 23:35:36.863 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
</stream:stream>

*** User 2024-04-23 23:35:36.863 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
</stream:stream>

*** User 2024-04-23 23:35:36.863 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 out
</stream:stream>

*** User 2024-04-23 23:35:36.864 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2975@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 23:35:36.866 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5547.html



=== Ended at 2024-04-23 23:35:36
=== successfully completed test case
=== === Returned value: ok