=== Test case: rest_SUITE:messages_are_sent_and_received/1 (click for source code)
=== Config value:
[{watchdog,<0.24874.1>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/rest_suite.messages_are_sent_and_received.121090.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/log_private/"},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57"
=== Started at 2022-01-27 12:36:31
*** User 2022-01-27 12:36:31.299 ***
alicE_messages_are_sent_and_received_1729@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 2022-01-27 12:36:31.300 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fc1ee6b0bf185cd5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.300 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/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 12:36:31.300 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9zZW50X2FuZF9yZWNlaXZlZF8xNzI5AG1hdHlncnlzYQ==</auth>
*** User 2022-01-27 12:36:31.301 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:31.302 ***
alicE_messages_are_sent_and_received_1729@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 2022-01-27 12:36:31.302 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5092a3af33491501' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.302 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/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 12:36:31.303 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 out
<iq type='set' id='42d19efbebe5f8756b3fb748cb550f3f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:31.303 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 in
<iq id='42d19efbebe5f8756b3fb748cb550f3f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_are_sent_and_received_1729@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:31.304 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 out
<iq type='set' id='ceeebb513d2b7c73b3340fce89b8e922'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.304 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 in
<iq type='result' id='ceeebb513d2b7c73b3340fce89b8e922'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.304 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:31.308 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 in
<presence from='alicE_messages_are_sent_and_received_1729@domain.example.com/res1' to='alice_messages_are_sent_and_received_1729@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:31.308 ***
bOb_messages_are_sent_and_received_1729@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 2022-01-27 12:36:31.309 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e05c14fc2b7ce55f' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.309 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/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 12:36:31.309 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfc2VudF9hbmRfcmVjZWl2ZWRfMTcyOQBtYWtyb2xpa2E=</auth>
*** User 2022-01-27 12:36:31.311 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 12:36:31.311 ***
bOb_messages_are_sent_and_received_1729@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 2022-01-27 12:36:31.334 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6e155d5cd36c783' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-01-27 12:36:31.334 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/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 12:36:31.334 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 out
<iq type='set' id='83d8a677fdd9eb51a7046d010b0edebb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 12:36:31.335 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 in
<iq id='83d8a677fdd9eb51a7046d010b0edebb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_are_sent_and_received_1729@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-01-27 12:36:31.335 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 out
<iq type='set' id='d005bfeeb368483b6c935919ebf01ef5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.336 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 in
<iq type='result' id='d005bfeeb368483b6c935919ebf01ef5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 12:36:31.336 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 out
<presence/>
*** User 2022-01-27 12:36:31.340 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 in
<presence from='bOb_messages_are_sent_and_received_1729@domain.example.com/res1' to='bob_messages_are_sent_and_received_1729@domain.example.com/res1' xml:lang='en'/>
*** User 2022-01-27 12:36:31.440 ***
REST request:
Code: 204
Req: {<0.25075.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a1130d9d9bd927de">>}],
<<"{\"to\":\"alice_messages_are_sent_and_received_1729@domain.example.com\",\"caller\":\"bob_messages_are_sent_and_received_1729@domain.example.com\",\"body\":\"hello from Bob\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,92875}
Params: #{body =>
<<"{\"to\":\"alice_messages_are_sent_and_received_1729@domain.example.com\",\"caller\":\"bob_messages_are_sent_and_received_1729@domain.example.com\",\"body\":\"hello from Bob\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:31.475 ***
REST request:
Code: 204
Req: {<0.25123.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2235e1dab15e1d0b">>}],
<<"{\"to\":\"bob_messages_are_sent_and_received_1729@domain.example.com\",\"caller\":\"alice_messages_are_sent_and_received_1729@domain.example.com\",\"body\":\"hello from Alice\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 12:36:31 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,33922}
Params: #{body =>
<<"{\"to\":\"bob_messages_are_sent_and_received_1729@domain.example.com\",\"caller\":\"alice_messages_are_sent_and_received_1729@domain.example.com\",\"body\":\"hello from Alice\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 12:36:31.475 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 in
<message from='bob_messages_are_sent_and_received_1729@domain.example.com' to='alice_messages_are_sent_and_received_1729@domain.example.com' type='chat' id='58da3331a4ce7142'>
<body>hello from Bob</body>
<stanza-id by='alice_messages_are_sent_and_received_1729@domain.example.com' id='BLKFI5H6PMG1' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2022-01-27 12:36:31.475 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 in
<message from='alice_messages_are_sent_and_received_1729@domain.example.com' to='bob_messages_are_sent_and_received_1729@domain.example.com' type='chat' id='f286af4360636b92'>
<body>hello from Alice</body>
<stanza-id by='bob_messages_are_sent_and_received_1729@domain.example.com' id='BLKFI5HP2N81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2022-01-27 12:36:31.476 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:31.476 ***
bOb_messages_are_sent_and_received_1729@domain.example.com/res1 in
</stream:stream>
*** User 2022-01-27 12:36:31.476 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 out
</stream:stream>
*** User 2022-01-27 12:36:31.477 ***
alicE_messages_are_sent_and_received_1729@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-01-27 12:36:31
=== successfully completed test case
=== === Returned value: ok