=== Test case: rest_SUITE:list_contacts/1 (click for source code)
=== Config value:
[{watchdog,<0.73651.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.rest_SUITE.logs/run.2024-02-23_17.45.30/rest_suite.list_contacts.215554.html"},
{tc_group_properties,[{name,roster},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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.rest_SUITE.logs/run.2024-02-23_17.45.30/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
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_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
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@5f60ef475eab.2024-02-23_17.31.31"
=== Started at 2024-02-23 17:45:31
*** User 2024-02-23 17:45:31.351 ***🔗
alicE_list_contacts_2844@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 2024-02-23 17:45:31.351 ***🔗
alicE_list_contacts_2844@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f3ee037e3b9594e' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-23 17:45:31.351 ***🔗
alicE_list_contacts_2844@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 2024-02-23 17:45:31.351 ***🔗
alicE_list_contacts_2844@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2xpc3RfY29udGFjdHNfMjg0NABtYXR5Z3J5c2E=</auth>
*** User 2024-02-23 17:45:31.353 ***🔗
alicE_list_contacts_2844@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 17:45:31.353 ***🔗
alicE_list_contacts_2844@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 2024-02-23 17:45:31.353 ***🔗
alicE_list_contacts_2844@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fec61b7c0b6cb9fd' from='domain.example.com' version='1.0' xml:lang='en' to='alice_list_contacts_2844@domain.example.com'>
*** User 2024-02-23 17:45:31.353 ***🔗
alicE_list_contacts_2844@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 2024-02-23 17:45:31.353 ***🔗
alicE_list_contacts_2844@domain.example.com/res1 out
<iq type='set' id='8eab73b38ebb3804d3f0d21e8bd439a7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 17:45:31.354 ***🔗
alicE_list_contacts_2844@domain.example.com/res1 in
<iq id='8eab73b38ebb3804d3f0d21e8bd439a7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_list_contacts_2844@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-23 17:45:31.354 ***🔗
alice_list_contacts_2844@domain.example.com/res1 out
<iq type='set' id='524ea5c13dd56b8fe010dc0fabe74899'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:31.354 ***🔗
alice_list_contacts_2844@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_list_contacts_2844@domain.example.com/res1' id='524ea5c13dd56b8fe010dc0fabe74899' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:31.355 ***🔗
alice_list_contacts_2844@domain.example.com/res1 out
<presence/>
*** User 2024-02-23 17:45:31.356 ***🔗
alice_list_contacts_2844@domain.example.com/res1 in
<presence from='alice_list_contacts_2844@domain.example.com/res1' to='alice_list_contacts_2844@domain.example.com/res1'/>
*** User 2024-02-23 17:45:31.357 ***🔗
bOb_list_contacts_2844@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 2024-02-23 17:45:31.357 ***🔗
bOb_list_contacts_2844@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1dbb784f9370186' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-02-23 17:45:31.357 ***🔗
bOb_list_contacts_2844@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 2024-02-23 17:45:31.357 ***🔗
bOb_list_contacts_2844@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9saXN0X2NvbnRhY3RzXzI4NDQAbWFrcm9saWth</auth>
*** User 2024-02-23 17:45:31.359 ***🔗
bOb_list_contacts_2844@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-23 17:45:31.359 ***🔗
bOb_list_contacts_2844@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 2024-02-23 17:45:31.359 ***🔗
bOb_list_contacts_2844@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b06b379d536e8e78' from='domain.example.com' version='1.0' xml:lang='en' to='bob_list_contacts_2844@domain.example.com'>
*** User 2024-02-23 17:45:31.359 ***🔗
bOb_list_contacts_2844@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 2024-02-23 17:45:31.359 ***🔗
bOb_list_contacts_2844@domain.example.com/res1 out
<iq type='set' id='8245ead721a3f9f261a2fdd7920df037'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-23 17:45:31.360 ***🔗
bOb_list_contacts_2844@domain.example.com/res1 in
<iq id='8245ead721a3f9f261a2fdd7920df037' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_list_contacts_2844@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-02-23 17:45:31.360 ***🔗
bob_list_contacts_2844@domain.example.com/res1 out
<iq type='set' id='c0bf51357f609981da93e1dbab7dbdd6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:31.360 ***🔗
bob_list_contacts_2844@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_list_contacts_2844@domain.example.com/res1' id='c0bf51357f609981da93e1dbab7dbdd6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-23 17:45:31.360 ***🔗
bob_list_contacts_2844@domain.example.com/res1 out
<presence/>
*** User 2024-02-23 17:45:31.362 ***🔗
bob_list_contacts_2844@domain.example.com/res1 in
<presence from='bob_list_contacts_2844@domain.example.com/res1' to='bob_list_contacts_2844@domain.example.com/res1'/>
*** User 2024-02-23 17:45:31.362 ***🔗
bob_list_contacts_2844@domain.example.com/res1 out
<iq type='set' id='09b71842a4f7b6b92d80ec1c395c4e4f'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_list_contacts_2844@domain.example.com' name='Alicja'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:31.365 ***🔗
bob_list_contacts_2844@domain.example.com/res1 in
<iq from='bob_list_contacts_2844@domain.example.com' to='bob_list_contacts_2844@domain.example.com/res1' id='push264bd9ce34e82b47' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alicja' jid='alice_list_contacts_2844@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2024-02-23 17:45:31.365 ***🔗
bob_list_contacts_2844@domain.example.com/res1 in
<iq from='bob_list_contacts_2844@domain.example.com' to='bob_list_contacts_2844@domain.example.com/res1' id='09b71842a4f7b6b92d80ec1c395c4e4f' type='result'/>
*** User 2024-02-23 17:45:31.366 ***🔗
bob_list_contacts_2844@domain.example.com/res1 out
<iq to='bob_list_contacts_2844@domain.example.com' id='push264bd9ce34e82b47' type='result'/>
*** User 2024-02-23 17:45:31.369 ***🔗
REST request:
Code: 200
Req: {<0.73768.0>,
<<"/api/contacts/bob_list_contacts_2844@domain.example.com">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"18a6c88c3a3e84b6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_list_contacts_2844@domain.example.com\"}]">>,
214,1947}
Params: #{path =>
<<"/api/contacts/bob_list_contacts_2844@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,method => <<"GET">>,body => <<>>,
return_headers => true}
*** User 2024-02-23 17:45:31.369 ***🔗
bob_list_contacts_2844@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-23 17:45:31.369 ***🔗
bob_list_contacts_2844@domain.example.com/res1 in
</stream:stream>
*** User 2024-02-23 17:45:31.369 ***🔗
alice_list_contacts_2844@domain.example.com/res1 out
</stream:stream>
*** User 2024-02-23 17:45:31.369 ***🔗
alice_list_contacts_2844@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-02-23 17:45:31
=== successfully completed test case
=== === Returned value: ok