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

=== Config value:

    [{watchdog,<0.75450.0>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_mnesia"},
     {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@e69c7ef90d22.2024-04-12_09.30.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-12_09.44.42/rest_client_suite.msg_is_sent_and_delivered_over_xmpp.158595.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@e69c7ef90d22.2024-04-12_09.30.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-12_09.44.42/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_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_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        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_carboncopy => #{iqdisc => no_queue},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@e69c7ef90d22.2024-04-12_09.30.33"

=== Started at 2024-04-12 09:44:42


*** CT 2024-04-12 09:44:42.584 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2661.html

*** User 2024-04-12 09:44:42.609 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@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-12 09:44:42.610 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5bdb0e5cfbf2d2f2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:44:42.610 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@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-12 09:44:42.610 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfb3Zlcl94bXBwXzI5NjcAbWF0eWdyeXNh</auth>



*** User 2024-04-12 09:44:42.612 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:44:42.612 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@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-12 09:44:42.612 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d492115b54c10d05' from='domain.example.com' version='1.0' xml:lang='en' to='alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com'>

*** User 2024-04-12 09:44:42.612 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@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-12 09:44:42.612 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
<iq type='set' id='c47604e0bc5fa56118f76c59a06739db'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:44:42.613 ***🔗
alicE_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<iq id='c47604e0bc5fa56118f76c59a06739db' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:44:42.613 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
<iq type='set' id='4663e5169b454e2c0b82455a781151a5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:42.613 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1' id='4663e5169b454e2c0b82455a781151a5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:42.614 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 09:44:42.666 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<presence from='alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1' to='alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1'/>



*** User 2024-04-12 09:44:42.667 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@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-12 09:44:42.667 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='14effd7f458760b7' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:44:42.667 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@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-12 09:44:42.667 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX292ZXJfeG1wcF8yOTY3AG1ha3JvbGlrYQ==</auth>



*** User 2024-04-12 09:44:42.668 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:44:42.668 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@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-12 09:44:42.668 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='763c31a8d398b667' from='domain.example.com' version='1.0' xml:lang='en' to='bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com'>

*** User 2024-04-12 09:44:42.669 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@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-12 09:44:42.669 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
<iq type='set' id='056aa384cf46ecfd6b95b8a38207e9cc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:44:42.669 ***🔗
bOb_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<iq id='056aa384cf46ecfd6b95b8a38207e9cc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:44:42.669 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
<iq type='set' id='fb81bac85ad3e812fba0df729a17cf02'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:42.670 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1' id='fb81bac85ad3e812fba0df729a17cf02' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:42.670 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 09:44:42.694 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<presence from='bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1' to='bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1'/>



*** User 2024-04-12 09:44:42.769 ***🔗
REST request:
Code: 200
Req: {<0.75567.0>,<<"/api/messages">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aeca110e508a02c4">>},
       {<<"authorization">>,
        <<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9vdmVyX3htcHBfMjk2N0Bkb21haW4uZXhhbXBsZS5jb206bWF0eWdyeXNh">>}],
      <<"{\"body\":\"hello, bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com it's me\",\"to\":\"bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com\"}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:42 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"25">>}],
         <<"{\"id\":\"aedb1e03dc22cefc\"}">>,149,68893}
Params: #{path => <<"/api/messages">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com">>,
               <<"matygrysa">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"body\":\"hello, bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com it's me\",\"to\":\"bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-12 09:44:42.770 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
<message from='alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com' to='bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com' id='aedb1e03dc22cefc' type='chat'>
	<body>hello, bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com it&apos;s me</body>
	<stanza-id by='bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com' id='C5F33S4ENHO1' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-04-12 09:44:42.770 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 09:44:42.770 ***🔗
bob_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-12 09:44:42.770 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 09:44:42.770 ***🔗
alice_msg_is_sent_and_delivered_over_xmpp_2967@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-12 09:44:42.773 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2661.html



=== Ended at 2024-04-12 09:44:42
=== successfully completed test case
=== === Returned value: ok