=== Test case: rest_SUITE:messages_are_sent_and_received/1 (click for source code)
=== Config value:
[{watchdog,<0.13879.1>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_SUITE.logs/run.2022-03-03_10.38.08/rest_suite.messages_are_sent_and_received.52483.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_SUITE.logs/run.2022-03-03_10.38.08/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39"
=== Started at 2022-03-03 10:38:08
*** User 2022-03-03 10:38:08.252 ***
alicE_messages_are_sent_and_received_1283@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:38:08.253 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='074ad0914a08fc73' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.253 ***
alicE_messages_are_sent_and_received_1283@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:38:08.253 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9zZW50X2FuZF9yZWNlaXZlZF8xMjgzAG1hdHlncnlzYQ==</auth>
*** User 2022-03-03 10:38:08.255 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:08.255 ***
alicE_messages_are_sent_and_received_1283@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:38:08.255 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f020b77d2ead8d3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.255 ***
alicE_messages_are_sent_and_received_1283@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:38:08.255 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 out
<iq type='set' id='eb0d26be0adcf5bdd0e83a70a73614d6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:38:08.256 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 in
<iq id='eb0d26be0adcf5bdd0e83a70a73614d6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_are_sent_and_received_1283@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:08.256 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 out
<iq type='set' id='6667fac5aee52b179df50cbd636ae3f6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.256 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 in
<iq type='result' id='6667fac5aee52b179df50cbd636ae3f6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.256 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:08.257 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 in
<presence from='alicE_messages_are_sent_and_received_1283@localhost/res1' to='alice_messages_are_sent_and_received_1283@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:08.258 ***
bOb_messages_are_sent_and_received_1283@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:38:08.258 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='10f10b51e2a46926' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.258 ***
bOb_messages_are_sent_and_received_1283@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:38:08.258 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfc2VudF9hbmRfcmVjZWl2ZWRfMTI4MwBtYWtyb2xpa2E=</auth>
*** User 2022-03-03 10:38:08.260 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:08.260 ***
bOb_messages_are_sent_and_received_1283@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:38:08.260 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f753494acb1c3061' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.260 ***
bOb_messages_are_sent_and_received_1283@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:38:08.260 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 out
<iq type='set' id='88d6dd3a18c1b1db3276cdb3a9d2ad02'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:38:08.260 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 in
<iq id='88d6dd3a18c1b1db3276cdb3a9d2ad02' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_are_sent_and_received_1283@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:08.261 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 out
<iq type='set' id='a653ca19c64af5e68212ac2a64ab0560'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.261 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 in
<iq type='result' id='a653ca19c64af5e68212ac2a64ab0560'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.261 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:08.262 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 in
<presence from='bOb_messages_are_sent_and_received_1283@localhost/res1' to='bob_messages_are_sent_and_received_1283@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:08.264 ***
REST request:
Code: 204
Req: {<0.14089.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aea6ba19aebafaf1">>}],
<<"{\"to\":\"alice_messages_are_sent_and_received_1283@localhost\",\"caller\":\"bob_messages_are_sent_and_received_1283@localhost\",\"body\":\"hello from Bob\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:07 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,817}
Params: #{body =>
<<"{\"to\":\"alice_messages_are_sent_and_received_1283@localhost\",\"caller\":\"bob_messages_are_sent_and_received_1283@localhost\",\"body\":\"hello from Bob\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:08.265 ***
REST request:
Code: 204
Req: {<0.14099.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b5a95bb05afd54df">>}],
<<"{\"to\":\"bob_messages_are_sent_and_received_1283@localhost\",\"caller\":\"alice_messages_are_sent_and_received_1283@localhost\",\"body\":\"hello from Alice\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:07 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,658}
Params: #{body =>
<<"{\"to\":\"bob_messages_are_sent_and_received_1283@localhost\",\"caller\":\"alice_messages_are_sent_and_received_1283@localhost\",\"body\":\"hello from Alice\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:08.265 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 in
<message from='bob_messages_are_sent_and_received_1283@localhost' to='alice_messages_are_sent_and_received_1283@localhost' type='chat' id='556ac2b0998ee30e'>
<body>hello from Bob</body>
</message>
*** User 2022-03-03 10:38:08.266 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 in
<message from='alice_messages_are_sent_and_received_1283@localhost' to='bob_messages_are_sent_and_received_1283@localhost' type='chat' id='bad0cf92e24d2281'>
<body>hello from Alice</body>
</message>
*** User 2022-03-03 10:38:08.266 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:08.266 ***
bOb_messages_are_sent_and_received_1283@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:38:08.266 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:08.266 ***
alicE_messages_are_sent_and_received_1283@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:38:08
=== successfully completed test case
=== === Returned value: ok