=== Test case: rest_SUITE:messages_are_sent_and_received/1 (click for source code)
=== Config value:
[{watchdog,<0.70531.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@c9d2fb3f0bb8.2023-12-04_15.41.18/big_tests.tests.rest_SUITE.logs/run.2023-12-04_15.52.39/rest_suite.messages_are_sent_and_received.121091.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@c9d2fb3f0bb8.2023-12-04_15.41.18/big_tests.tests.rest_SUITE.logs/run.2023-12-04_15.52.39/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_amp => #{},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}},
{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@c9d2fb3f0bb8.2023-12-04_15.41.18"
=== Started at 2023-12-04 15:52:39
*** User 2023-12-04 15:52:39.649 ***🔗
alicE_messages_are_sent_and_received_2529@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 2023-12-04 15:52:39.650 ***🔗
alicE_messages_are_sent_and_received_2529@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='933ff4d61ae56429' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-04 15:52:39.650 ***🔗
alicE_messages_are_sent_and_received_2529@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-12-04 15:52:39.650 ***🔗
alicE_messages_are_sent_and_received_2529@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9zZW50X2FuZF9yZWNlaXZlZF8yNTI5AG1hdHlncnlzYQ==</auth>
*** User 2023-12-04 15:52:39.652 ***🔗
alicE_messages_are_sent_and_received_2529@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-04 15:52:39.652 ***🔗
alicE_messages_are_sent_and_received_2529@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 2023-12-04 15:52:39.653 ***🔗
alicE_messages_are_sent_and_received_2529@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ffe2fa8bab73d67f' from='domain.example.com' version='1.0' xml:lang='en' to='alice_messages_are_sent_and_received_2529@domain.example.com'>
*** User 2023-12-04 15:52:39.653 ***🔗
alicE_messages_are_sent_and_received_2529@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-12-04 15:52:39.653 ***🔗
alicE_messages_are_sent_and_received_2529@domain.example.com/res1 out
<iq type='set' id='178a3b620cfa2b1ad1b3be356287a731'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-04 15:52:39.653 ***🔗
alicE_messages_are_sent_and_received_2529@domain.example.com/res1 in
<iq id='178a3b620cfa2b1ad1b3be356287a731' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_are_sent_and_received_2529@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-12-04 15:52:39.653 ***🔗
alice_messages_are_sent_and_received_2529@domain.example.com/res1 out
<iq type='set' id='cabb07fa22db1d318bb506fc8ba170e0'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-04 15:52:39.655 ***🔗
alice_messages_are_sent_and_received_2529@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_messages_are_sent_and_received_2529@domain.example.com/res1' id='cabb07fa22db1d318bb506fc8ba170e0' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-04 15:52:39.655 ***🔗
alice_messages_are_sent_and_received_2529@domain.example.com/res1 out
<presence/>
*** User 2023-12-04 15:52:39.717 ***🔗
alice_messages_are_sent_and_received_2529@domain.example.com/res1 in
<presence from='alice_messages_are_sent_and_received_2529@domain.example.com/res1' to='alice_messages_are_sent_and_received_2529@domain.example.com/res1'/>
*** User 2023-12-04 15:52:39.718 ***🔗
bOb_messages_are_sent_and_received_2529@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 2023-12-04 15:52:39.718 ***🔗
bOb_messages_are_sent_and_received_2529@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='688d46cb0ebaa63a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-12-04 15:52:39.718 ***🔗
bOb_messages_are_sent_and_received_2529@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-12-04 15:52:39.718 ***🔗
bOb_messages_are_sent_and_received_2529@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfc2VudF9hbmRfcmVjZWl2ZWRfMjUyOQBtYWtyb2xpa2E=</auth>
*** User 2023-12-04 15:52:39.720 ***🔗
bOb_messages_are_sent_and_received_2529@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-12-04 15:52:39.720 ***🔗
bOb_messages_are_sent_and_received_2529@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 2023-12-04 15:52:39.720 ***🔗
bOb_messages_are_sent_and_received_2529@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d74e288b746c49d' from='domain.example.com' version='1.0' xml:lang='en' to='bob_messages_are_sent_and_received_2529@domain.example.com'>
*** User 2023-12-04 15:52:39.720 ***🔗
bOb_messages_are_sent_and_received_2529@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2023-12-04 15:52:39.720 ***🔗
bOb_messages_are_sent_and_received_2529@domain.example.com/res1 out
<iq type='set' id='5a6f5b4744934d99c87037bab534d813'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-12-04 15:52:39.721 ***🔗
bOb_messages_are_sent_and_received_2529@domain.example.com/res1 in
<iq id='5a6f5b4744934d99c87037bab534d813' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_are_sent_and_received_2529@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-12-04 15:52:39.722 ***🔗
bob_messages_are_sent_and_received_2529@domain.example.com/res1 out
<iq type='set' id='93ab8829b5de377003f7d13dceff42b6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-04 15:52:39.722 ***🔗
bob_messages_are_sent_and_received_2529@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_messages_are_sent_and_received_2529@domain.example.com/res1' id='93ab8829b5de377003f7d13dceff42b6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-12-04 15:52:39.723 ***🔗
bob_messages_are_sent_and_received_2529@domain.example.com/res1 out
<presence/>
*** User 2023-12-04 15:52:39.725 ***🔗
bob_messages_are_sent_and_received_2529@domain.example.com/res1 in
<presence from='bob_messages_are_sent_and_received_2529@domain.example.com/res1' to='bob_messages_are_sent_and_received_2529@domain.example.com/res1'/>
*** User 2023-12-04 15:52:39.735 ***🔗
REST request:
Code: 204
Req: {<0.70825.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6e8be3aaf8101e15">>}],
<<"{\"to\":\"alice_messages_are_sent_and_received_2529@domain.example.com\",\"body\":\"hello from Bob\",\"caller\":\"bob_messages_are_sent_and_received_2529@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:52:39 GMT">>}],
<<>>,80,7626}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"alice_messages_are_sent_and_received_2529@domain.example.com\",\"body\":\"hello from Bob\",\"caller\":\"bob_messages_are_sent_and_received_2529@domain.example.com\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2023-12-04 15:52:39.739 ***🔗
REST request:
Code: 204
Req: {<0.70852.0>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"59ae6a5170eeffb8">>}],
<<"{\"to\":\"bob_messages_are_sent_and_received_2529@domain.example.com\",\"body\":\"hello from Alice\",\"caller\":\"alice_messages_are_sent_and_received_2529@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Dec 2023 15:52:39 GMT">>}],
<<>>,80,3667}
Params: #{path => <<"/api/messages">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to\":\"bob_messages_are_sent_and_received_2529@domain.example.com\",\"body\":\"hello from Alice\",\"caller\":\"alice_messages_are_sent_and_received_2529@domain.example.com\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2023-12-04 15:52:39.739 ***🔗
alice_messages_are_sent_and_received_2529@domain.example.com/res1 in
<message from='bob_messages_are_sent_and_received_2529@domain.example.com' to='alice_messages_are_sent_and_received_2529@domain.example.com' id='78113b3b35a5deee' type='chat'>
<body>hello from Bob</body>
<stanza-id by='alice_messages_are_sent_and_received_2529@domain.example.com' id='C2TH3E7DL101' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2023-12-04 15:52:39.739 ***🔗
bob_messages_are_sent_and_received_2529@domain.example.com/res1 in
<message from='alice_messages_are_sent_and_received_2529@domain.example.com' to='bob_messages_are_sent_and_received_2529@domain.example.com' id='e6fc6a302102c727' type='chat'>
<body>hello from Alice</body>
<stanza-id by='bob_messages_are_sent_and_received_2529@domain.example.com' id='C2TH3E7FNO01' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2023-12-04 15:52:39.739 ***🔗
bob_messages_are_sent_and_received_2529@domain.example.com/res1 out
</stream:stream>
*** User 2023-12-04 15:52:39.740 ***🔗
bob_messages_are_sent_and_received_2529@domain.example.com/res1 in
</stream:stream>
*** User 2023-12-04 15:52:39.740 ***🔗
alice_messages_are_sent_and_received_2529@domain.example.com/res1 out
</stream:stream>
*** User 2023-12-04 15:52:39.740 ***🔗
alice_messages_are_sent_and_received_2529@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-12-04 15:52:39
=== successfully completed test case
=== === Returned value: ok