=== Test case: rest_SUITE:messages_are_sent_and_received/1 (click for source code)
=== Config value:
[{watchdog,<0.19198.1>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,disabled},
{preset,"ldap_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@d468646c6aa5.2024-04-22_14.48.15/big_tests.tests.rest_SUITE.logs/run.2024-04-22_14.59.33/rest_suite.messages_are_sent_and_received.39428.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@d468646c6aa5.2024-04-22_14.48.15/big_tests.tests.rest_SUITE.logs/run.2024-04-22_14.59.33/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => mnesia,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => ldap,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,
ldap =>
#{base => <<"ou=Users,dc=esl,dc=com">>,
binary_search_fields => [],deref => never,
filter => <<"(objectClass=inetOrgPerson)">>,
pool_tag => default,
search_fields =>
[{<<"User">>,<<"%u">>},
{<<"Full Name">>,<<"displayName">>},
{<<"Given Name">>,<<"givenName">>},
{<<"Middle Name">>,<<"initials">>},
{<<"Family Name">>,<<"sn">>},
{<<"Nickname">>,<<"%u">>},
{<<"Birthday">>,<<"birthDay">>},
{<<"Country">>,<<"c">>},
{<<"City">>,<<"l">>},
{<<"Email">>,<<"mail">>},
{<<"Organization Name">>,<<"o">>},
{<<"Organization Unit">>,<<"ou">>}],
search_operator => 'and',
search_reported =>
[{<<"Full Name">>,<<"FN">>},
{<<"Given Name">>,<<"FIRST">>},
{<<"Middle Name">>,<<"MIDDLE">>},
{<<"Family Name">>,<<"LAST">>},
{<<"Nickname">>,<<"NICK">>},
{<<"Birthday">>,<<"BDAY">>},
{<<"Country">>,<<"CTRY">>},
{<<"City">>,<<"LOCALITY">>},
{<<"Email">>,<<"EMAIL">>},
{<<"Organization Name">>,<<"ORGNAME">>},
{<<"Organization Unit">>,<<"ORGUNIT">>}],
uids => [{<<"uid">>,<<"%u">>}],
vcard_map =>
[{<<"NICKNAME">>,<<"%u">>,[]},
{<<"FN">>,<<"%s">>,[<<"displayName">>]},
{<<"FAMILY">>,<<"%s">>,[<<"sn">>]},
{<<"GIVEN">>,<<"%s">>,[<<"givenName">>]},
{<<"MIDDLE">>,<<"%s">>,[<<"initials">>]},
{<<"ORGNAME">>,<<"%s">>,[<<"o">>]},
{<<"ORGUNIT">>,<<"%s">>,[<<"ou">>]},
{<<"CTRY">>,<<"%s">>,[<<"c">>]},
{<<"LOCALITY">>,<<"%s">>,[<<"l">>]},
{<<"STREET">>,<<"%s">>,[<<"street">>]},
{<<"REGION">>,<<"%s">>,[<<"st">>]},
{<<"PCODE">>,<<"%s">>,[<<"postalCode">>]},
{<<"TITLE">>,<<"%s">>,[<<"title">>]},
{<<"URL">>,<<"%s">>,[<<"labeleduri">>]},
{<<"DESC">>,<<"%s">>,[<<"description">>]},
{<<"TEL">>,<<"%s">>,[<<"telephoneNumber">>]},
{<<"EMAIL">>,<<"%s">>,[<<"mail">>]},
{<<"BDAY">>,<<"%s">>,[<<"birthDay">>]},
{<<"ROLE">>,<<"%s">>,[<<"employeeType">>]},
{<<"PHOTO">>,<<"%s">>,[<<"jpegPhoto">>]}]},
matches => 30,search => true}}},
{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@d468646c6aa5.2024-04-22_14.48.15"
=== Started at 2024-04-22 14:59:33
*** User 2024-04-22 14:59:33.318 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:59:33.318 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='25080d8efa0c23b4' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:59:33.319 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:59:33.320 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX21lc3NhZ2VzX2FyZV9zZW50X2FuZF9yZWNlaXZlZF8xNjk3AG1hdHlncnlzYQ==</auth>
*** User 2024-04-22 14:59:33.321 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:59:33.321 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:59:33.322 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a7d11a21fd087711' from='localhost' version='1.0' xml:lang='en' to='alice_messages_are_sent_and_received_1697@localhost'>
*** User 2024-04-22 14:59:33.322 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/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 2024-04-22 14:59:33.322 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/res1 out
<iq type='set' id='bb69dd10e0ab905137424daf01ef3a22'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:59:33.323 ***🔗
alicE_messages_are_sent_and_received_1697@localhost/res1 in
<iq id='bb69dd10e0ab905137424daf01ef3a22' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_messages_are_sent_and_received_1697@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:59:33.323 ***🔗
alice_messages_are_sent_and_received_1697@localhost/res1 out
<iq type='set' id='bb901f631f509ac134dde7c612ef4e9e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:59:33.324 ***🔗
alice_messages_are_sent_and_received_1697@localhost/res1 in
<iq from='localhost' to='alice_messages_are_sent_and_received_1697@localhost/res1' id='bb901f631f509ac134dde7c612ef4e9e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:59:33.325 ***🔗
alice_messages_are_sent_and_received_1697@localhost/res1 out
<presence/>
*** User 2024-04-22 14:59:33.325 ***🔗
alice_messages_are_sent_and_received_1697@localhost/res1 in
<presence from='alice_messages_are_sent_and_received_1697@localhost/res1' to='alice_messages_are_sent_and_received_1697@localhost/res1'/>
*** User 2024-04-22 14:59:33.326 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:59:33.327 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6024fbc966f6da62' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 14:59:33.327 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/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>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-04-22 14:59:33.327 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9tZXNzYWdlc19hcmVfc2VudF9hbmRfcmVjZWl2ZWRfMTY5NwBtYWtyb2xpa2E=</auth>
*** User 2024-04-22 14:59:33.329 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 14:59:33.329 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-22 14:59:33.330 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='581ee313310cc57e' from='localhost' version='1.0' xml:lang='en' to='bob_messages_are_sent_and_received_1697@localhost'>
*** User 2024-04-22 14:59:33.330 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/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 2024-04-22 14:59:33.330 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/res1 out
<iq type='set' id='899298906fc1101f9917c736f626410b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 14:59:33.330 ***🔗
bOb_messages_are_sent_and_received_1697@localhost/res1 in
<iq id='899298906fc1101f9917c736f626410b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_messages_are_sent_and_received_1697@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 14:59:33.330 ***🔗
bob_messages_are_sent_and_received_1697@localhost/res1 out
<iq type='set' id='b9b4d07693e81c7cd0c2d87e5e1a1553'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:59:33.331 ***🔗
bob_messages_are_sent_and_received_1697@localhost/res1 in
<iq from='localhost' to='bob_messages_are_sent_and_received_1697@localhost/res1' id='b9b4d07693e81c7cd0c2d87e5e1a1553' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 14:59:33.332 ***🔗
bob_messages_are_sent_and_received_1697@localhost/res1 out
<presence/>
*** User 2024-04-22 14:59:33.332 ***🔗
bob_messages_are_sent_and_received_1697@localhost/res1 in
<presence from='bob_messages_are_sent_and_received_1697@localhost/res1' to='bob_messages_are_sent_and_received_1697@localhost/res1'/>
*** User 2024-04-22 14:59:33.335 ***🔗
REST request:
Code: 204
Req: {<0.19484.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9e5269ce3ec46be4">>}],
<<"{\"to\":\"alice_messages_are_sent_and_received_1697@localhost\",\"caller\":\"bob_messages_are_sent_and_received_1697@localhost\",\"body\":\"hello from Bob\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,1569}
Params: #{body =>
<<"{\"to\":\"alice_messages_are_sent_and_received_1697@localhost\",\"caller\":\"bob_messages_are_sent_and_received_1697@localhost\",\"body\":\"hello from Bob\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.388 ***🔗
REST request:
Code: 204
Req: {<0.19498.1>,<<"/api/messages">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bd8341160ad85407">>}],
<<"{\"to\":\"bob_messages_are_sent_and_received_1697@localhost\",\"caller\":\"alice_messages_are_sent_and_received_1697@localhost\",\"body\":\"hello from Alice\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 14:59:33 GMT">>}],
<<>>,80,2080}
Params: #{body =>
<<"{\"to\":\"bob_messages_are_sent_and_received_1697@localhost\",\"caller\":\"alice_messages_are_sent_and_received_1697@localhost\",\"body\":\"hello from Alice\"}">>,
method => <<"POST">>,path => <<"/api/messages">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 14:59:33.388 ***🔗
alice_messages_are_sent_and_received_1697@localhost/res1 in
<message from='bob_messages_are_sent_and_received_1697@localhost' to='alice_messages_are_sent_and_received_1697@localhost' id='85cfb7bd4f05a8a0' type='chat'>
<body>hello from Bob</body>
</message>
*** User 2024-04-22 14:59:33.388 ***🔗
bob_messages_are_sent_and_received_1697@localhost/res1 in
<message from='alice_messages_are_sent_and_received_1697@localhost' to='bob_messages_are_sent_and_received_1697@localhost' id='bb6ab66f675d7f54' type='chat'>
<body>hello from Alice</body>
</message>
*** User 2024-04-22 14:59:33.388 ***🔗
bob_messages_are_sent_and_received_1697@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:59:33.388 ***🔗
bob_messages_are_sent_and_received_1697@localhost/res1 in
</stream:stream>
*** User 2024-04-22 14:59:33.389 ***🔗
alice_messages_are_sent_and_received_1697@localhost/res1 out
</stream:stream>
*** User 2024-04-22 14:59:33.389 ***🔗
alice_messages_are_sent_and_received_1697@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 14:59:33
=== successfully completed test case
=== === Returned value: ok