=== Test case: rest_SUITE:messages_are_sent_and_received/1 (click for source code)
=== Config value:
[{watchdog,<0.27106.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/rest_suite.messages_are_sent_and_received.149634.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/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@88d84ff17c71.2022-03-04_11.16.52"
=== Started at 2022-03-04 11:25:01
*** User 2022-03-04 11:25:01.278 ***
alicE_messages_are_sent_and_received_1786@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-03-04 11:25:01.278 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4bc4b5575c0d0e01' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.278 ***
alicE_messages_are_sent_and_received_1786@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-03-04 11:25:01.279 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9zZW50X2FuZF9yZWNlaXZlZF8xNzg2AG1hdHlncnlzYQ==</auth>
*** User 2022-03-04 11:25:01.279 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:01.279 ***
alicE_messages_are_sent_and_received_1786@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-03-04 11:25:01.280 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b912a0860ae652a1' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.280 ***
alicE_messages_are_sent_and_received_1786@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-03-04 11:25:01.280 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 out
<iq type='set' id='73e23ec9d2e1aa41f084b75205d3017c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:01.281 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 in
<iq id='73e23ec9d2e1aa41f084b75205d3017c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_messages_are_sent_and_received_1786@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:01.281 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 out
<iq type='set' id='0720a167592d434bf6aa32693260b182'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.281 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 in
<iq type='result' id='0720a167592d434bf6aa32693260b182'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.281 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:01.294 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 in
<presence from='alicE_messages_are_sent_and_received_1786@domain.example.com/res1' to='alice_messages_are_sent_and_received_1786@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:01.294 ***
bOb_messages_are_sent_and_received_1786@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-03-04 11:25:01.295 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e1ffce17d0d9c8a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.295 ***
bOb_messages_are_sent_and_received_1786@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-03-04 11:25:01.295 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfc2VudF9hbmRfcmVjZWl2ZWRfMTc4NgBtYWtyb2xpa2E=</auth>
*** User 2022-03-04 11:25:01.342 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:25:01.342 ***
bOb_messages_are_sent_and_received_1786@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-03-04 11:25:01.342 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='efeffe19a763e22c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:25:01.342 ***
bOb_messages_are_sent_and_received_1786@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-03-04 11:25:01.343 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 out
<iq type='set' id='88c6962822bd18f2cb9ec32893fe7571'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:25:01.343 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 in
<iq id='88c6962822bd18f2cb9ec32893fe7571' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_messages_are_sent_and_received_1786@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:25:01.343 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 out
<iq type='set' id='045fdd099183952cd784f461fc524fa8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.343 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 in
<iq type='result' id='045fdd099183952cd784f461fc524fa8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:25:01.343 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 out
<presence/>
*** User 2022-03-04 11:25:01.346 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 in
<presence from='bOb_messages_are_sent_and_received_1786@domain.example.com/res1' to='bob_messages_are_sent_and_received_1786@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-04 11:25:01.362 ***
REST request:
Code: 204
Req: {<0.27360.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"438e7364439dcd3e">>}],
<<"{\"to\":\"alice_messages_are_sent_and_received_1786@domain.example.com\",\"caller\":\"bob_messages_are_sent_and_received_1786@domain.example.com\",\"body\":\"hello from Bob\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,14758}
Params: #{body =>
<<"{\"to\":\"alice_messages_are_sent_and_received_1786@domain.example.com\",\"caller\":\"bob_messages_are_sent_and_received_1786@domain.example.com\",\"body\":\"hello from Bob\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:01.370 ***
REST request:
Code: 204
Req: {<0.27380.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aa34c20c1f76c785">>}],
<<"{\"to\":\"bob_messages_are_sent_and_received_1786@domain.example.com\",\"caller\":\"alice_messages_are_sent_and_received_1786@domain.example.com\",\"body\":\"hello from Alice\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>}],
<<>>,112,7800}
Params: #{body =>
<<"{\"to\":\"bob_messages_are_sent_and_received_1786@domain.example.com\",\"caller\":\"alice_messages_are_sent_and_received_1786@domain.example.com\",\"body\":\"hello from Alice\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:25:01.371 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 in
<message from='bob_messages_are_sent_and_received_1786@domain.example.com' to='alice_messages_are_sent_and_received_1786@domain.example.com' type='chat' id='036ddf606ec3702f'>
<body>hello from Bob</body>
<stanza-id by='alice_messages_are_sent_and_received_1786@domain.example.com' id='BMB2OFRMP181' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2022-03-04 11:25:01.371 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 in
<message from='alice_messages_are_sent_and_received_1786@domain.example.com' to='bob_messages_are_sent_and_received_1786@domain.example.com' type='chat' id='f9349a7057ab243f'>
<body>hello from Alice</body>
<stanza-id by='bob_messages_are_sent_and_received_1786@domain.example.com' id='BMB2OFRQIG81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2022-03-04 11:25:01.371 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:01.371 ***
bOb_messages_are_sent_and_received_1786@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-04 11:25:01.371 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-04 11:25:01.371 ***
alicE_messages_are_sent_and_received_1786@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:25:01
=== successfully completed test case
=== === Returned value: ok