=== Test case: rest_client_SUITE:msg_is_sent_and_delivered_over_xmpp/1 (click for source code)
=== Config value:
[{watchdog,<0.14663.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@fdcb4a001941.2022-03-03_10.29.25/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.39.21/rest_client_suite.msg_is_sent_and_delivered_over_xmpp.42499.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@fdcb4a001941.2022-03-03_10.29.25/big_tests.tests.rest_client_SUITE.logs/run.2022-03-03_10.39.21/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 =>
[{backend,ldap},
{host,{prefix,<<"vjud.">>}},
{ldap_base,"ou=Users,dc=esl,dc=com"},
{ldap_filter,<<"(objectClass=inetOrgPerson)">>}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@fdcb4a001941.2022-03-03_10.29.25"
=== Started at 2022-03-03 10:39:21
*** User 2022-03-03 10:39:21.642 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@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-03-03 10:39:21.643 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='340f882544984f13' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:39:21.643 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@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>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-03-03 10:39:21.643 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21zZ19pc19zZW50X2FuZF9kZWxpdmVyZWRfb3Zlcl94bXBwXzExNDIAbWF0eWdyeXNh</auth>
*** User 2022-03-03 10:39:21.644 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:39:21.644 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@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-03-03 10:39:21.647 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='68d2342cabca70a8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:39:21.647 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@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-03-03 10:39:21.647 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
<iq type='set' id='23b91e306a6efba1a35036bf3fad9e76'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:39:21.648 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<iq id='23b91e306a6efba1a35036bf3fad9e76' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:39:21.648 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
<iq type='set' id='93aa567f5ed52f222c930193a15b47e0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:39:21.648 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<iq type='result' id='93aa567f5ed52f222c930193a15b47e0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:39:21.648 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
<presence/>
*** User 2022-03-03 10:39:21.649 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<presence from='alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1' to='alice_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:39:21.649 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@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-03-03 10:39:21.650 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cfad51f8eba3d8c0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:39:21.650 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@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>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-03-03 10:39:21.650 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tc2dfaXNfc2VudF9hbmRfZGVsaXZlcmVkX292ZXJfeG1wcF8xMTQyAG1ha3JvbGlrYQ==</auth>
*** User 2022-03-03 10:39:21.651 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:39:21.651 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@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-03-03 10:39:21.652 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d608d5c8da5f76aa' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:39:21.654 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@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-03-03 10:39:21.657 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
<iq type='set' id='5b542f5bff37e021793d51c6a8802b08'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:39:21.657 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<iq id='5b542f5bff37e021793d51c6a8802b08' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:39:21.657 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
<iq type='set' id='acfddd1e2f3c048c7c4b6cc7cf06ec6a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:39:21.658 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<iq type='result' id='acfddd1e2f3c048c7c4b6cc7cf06ec6a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:39:21.658 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
<presence/>
*** User 2022-03-03 10:39:21.658 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<presence from='bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1' to='bob_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:39:21.669 ***
REST request:
Code: 200
Req: {<0.14727.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2f7f8b05e5cfa9dc">>},
{<<"authorization">>,
<<"Basic YWxpY2VfbXNnX2lzX3NlbnRfYW5kX2RlbGl2ZXJlZF9vdmVyX3htcHBfMTE0MkBsb2NhbGhvc3Q6bWF0eWdyeXNh">>}],
<<"{\"to\":\"bob_msg_is_sent_and_delivered_over_xmpp_1142@localhost\",\"body\":\"hello, bob_msg_is_sent_and_delivered_over_xmpp_1142@localhost it's me\"}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:39:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"45">>}],
<<"{\"id\":\"9f6a6423-398e-4b53-b117-609f8ec88c5d\"}">>,169,1608}
Params: #{body =>
<<"{\"to\":\"bob_msg_is_sent_and_delivered_over_xmpp_1142@localhost\",\"body\":\"hello, bob_msg_is_sent_and_delivered_over_xmpp_1142@localhost it's me\"}">>,
creds =>
{<<"alice_msg_is_sent_and_delivered_over_xmpp_1142@localhost">>,
<<"matygrysa">>},
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:39:21.669 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
<message from='alice_msg_is_sent_and_delivered_over_xmpp_1142@localhost' to='bob_msg_is_sent_and_delivered_over_xmpp_1142@localhost' id='9f6a6423-398e-4b53-b117-609f8ec88c5d' type='chat'>
<body>hello, bob_msg_is_sent_and_delivered_over_xmpp_1142@localhost it's me</body>
</message>
*** User 2022-03-03 10:39:21.669 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:39:21.669 ***
bOb_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:39:21.669 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:39:21.670 ***
alicE_msg_is_sent_and_delivered_over_xmpp_1142@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:39:21
=== successfully completed test case
=== === Returned value: ok