=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_over_xmpp/1 (click for source code)
=== Config value:
[{watchdog,<0.14562.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"internal_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.35.46/rest_client_suite.msg_is_sent_and_delivered_over_xmpp.74882.html"},
{tc_group_properties,[{name,messages},{repeat_until_all_ok,3},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@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.rest_client_SUITE.logs/run.2022-01-27_15.35.46/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{users_can_see_hidden_services,false}],
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
mod_roster => [],mod_sic => [],mod_stream_management => [],
mod_vcard => [{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07"
=== Started at 2022-01-27 15:35:47
*** User 2022-01-27 15:35:47.073 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@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-01-27 15:35:47.073 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d11100f2c101e997' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:35:47.073 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@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-01-27 15:35:47.073 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfb3Zlcl94bXBwXzEzNDUAbWF0eWdyeXNh</auth>
*** User 2022-01-27 15:35:47.074 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:35:47.074 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@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-01-27 15:35:47.074 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cac382d340c8e504' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:35:47.074 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@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-01-27 15:35:47.074 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
<iq type='set' id='22cb0b2dd0ccacd581f25e6256c15c51'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:35:47.074 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<iq id='22cb0b2dd0ccacd581f25e6256c15c51' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:35:47.074 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
<iq type='set' id='4d48d379b7afcddd33ade61b3f070a60'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:35:47.074 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<iq type='result' id='4d48d379b7afcddd33ade61b3f070a60'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:35:47.075 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
<presence/>
*** User 2022-01-27 15:35:47.075 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<presence from='alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1' to='alice_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:35:47.075 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@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-01-27 15:35:47.076 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2ba3d63f86342438' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:35:47.076 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@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-01-27 15:35:47.076 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX292ZXJfeG1wcF8xMzQ1AG1ha3JvbGlrYQ==</auth>
*** User 2022-01-27 15:35:47.076 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:35:47.076 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@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-01-27 15:35:47.076 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0bf41603c6d421eb' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:35:47.076 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@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-01-27 15:35:47.076 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
<iq type='set' id='e9f060b028c39efaf215f09b8f3684e6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:35:47.077 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<iq id='e9f060b028c39efaf215f09b8f3684e6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:35:47.077 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
<iq type='set' id='bc2ee6efe465e84f37604980b02f53d9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:35:47.077 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<iq type='result' id='bc2ee6efe465e84f37604980b02f53d9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:35:47.077 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
<presence/>
*** User 2022-01-27 15:35:47.078 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<presence from='bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1' to='bob_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:35:47.085 ***
REST request:
Code: 200
Req: {<0.14621.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cc59557260112563">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9vdmVyX3htcHBfMTM0NUBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<"{\"to\":\"bob_msg_is_sent_and_delivered_over_xmpp_1345@localhost\",\"body\":\"hello, bob_msg_is_sent_and_delivered_over_xmpp_1345@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:35:46 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"6afe3d87-5736-41de-8675-97b1a303a3ec\"}">>,169,562}
Params: #{body =>
<<"{\"to\":\"bob_msg_is_sent_and_delivered_over_xmpp_1345@localhost\",\"body\":\"hello, bob_msg_is_sent_and_delivered_over_xmpp_1345@localhost it's me\"}">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_over_xmpp_1345@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:35:47.086 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
<message from='alice_msg_is_sent_and_delivered_over_xmpp_1345@localhost' to='bob_msg_is_sent_and_delivered_over_xmpp_1345@localhost' id='6afe3d87-5736-41de-8675-97b1a303a3ec' type='chat'>
<body>hello, bob_msg_is_sent_and_delivered_over_xmpp_1345@localhost it's me</body>
</message>
*** User 2022-01-27 15:35:47.086 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:35:47.086 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:35:47.086 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:35:47.087 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1345@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:35:47
=== successfully completed test case
=== === Returned value: ok