=== Test case: rest_SUITE:list_contacts/1 (click for source code)
=== Config value:
[{watchdog,<0.14356.1>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"ldap_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_SUITE.logs/run.2022-03-03_10.38.08/rest_suite.list_contacts.69634.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@12130b74fc81.2022-03-03_10.28.39/big_tests.tests.rest_SUITE.logs/run.2022-03-03_10.38.08/log_private/"},
{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@12130b74fc81.2022-03-03_10.28.39"
=== Started at 2022-03-03 10:38:08
*** User 2022-03-03 10:38:08.909 ***
alicE_list_contacts_1287@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-03 10:38:08.910 ***
alicE_list_contacts_1287@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e71c0955ffb6a43e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.910 ***
alicE_list_contacts_1287@localhost/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>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-03 10:38:08.910 ***
alicE_list_contacts_1287@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2xpc3RfY29udGFjdHNfMTI4NwBtYXR5Z3J5c2E=</auth>
*** User 2022-03-03 10:38:08.912 ***
alicE_list_contacts_1287@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:08.912 ***
alicE_list_contacts_1287@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-03 10:38:08.912 ***
alicE_list_contacts_1287@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='30d0eeb23ecff679' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.912 ***
alicE_list_contacts_1287@localhost/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-03 10:38:08.912 ***
alicE_list_contacts_1287@localhost/res1 out
<iq type='set' id='aef8ab5642314b4a8c97ae4ca621e503'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:38:08.912 ***
alicE_list_contacts_1287@localhost/res1 in
<iq id='aef8ab5642314b4a8c97ae4ca621e503' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_list_contacts_1287@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:08.912 ***
alicE_list_contacts_1287@localhost/res1 out
<iq type='set' id='fc21a84c0a542f06f5837429b0809b82'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.913 ***
alicE_list_contacts_1287@localhost/res1 in
<iq type='result' id='fc21a84c0a542f06f5837429b0809b82'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.913 ***
alicE_list_contacts_1287@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:08.913 ***
alicE_list_contacts_1287@localhost/res1 in
<presence from='alicE_list_contacts_1287@localhost/res1' to='alice_list_contacts_1287@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:08.914 ***
bOb_list_contacts_1287@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-03 10:38:08.914 ***
bOb_list_contacts_1287@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='204e4f84a5a854c0' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.914 ***
bOb_list_contacts_1287@localhost/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>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-03 10:38:08.915 ***
bOb_list_contacts_1287@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9saXN0X2NvbnRhY3RzXzEyODcAbWFrcm9saWth</auth>
*** User 2022-03-03 10:38:08.916 ***
bOb_list_contacts_1287@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-03 10:38:08.916 ***
bOb_list_contacts_1287@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-03-03 10:38:08.916 ***
bOb_list_contacts_1287@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a68b93a6431f58f4' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-03 10:38:08.916 ***
bOb_list_contacts_1287@localhost/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-03 10:38:08.916 ***
bOb_list_contacts_1287@localhost/res1 out
<iq type='set' id='c7150c8549822f50677869fb1373a2d1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-03 10:38:08.916 ***
bOb_list_contacts_1287@localhost/res1 in
<iq id='c7150c8549822f50677869fb1373a2d1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_list_contacts_1287@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-03 10:38:08.917 ***
bOb_list_contacts_1287@localhost/res1 out
<iq type='set' id='9394d51a808ae493f269065894884cc9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.917 ***
bOb_list_contacts_1287@localhost/res1 in
<iq type='result' id='9394d51a808ae493f269065894884cc9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-03 10:38:08.917 ***
bOb_list_contacts_1287@localhost/res1 out
<presence/>
*** User 2022-03-03 10:38:08.917 ***
bOb_list_contacts_1287@localhost/res1 in
<presence from='bOb_list_contacts_1287@localhost/res1' to='bob_list_contacts_1287@localhost/res1' xml:lang='en'/>
*** User 2022-03-03 10:38:08.918 ***
bOb_list_contacts_1287@localhost/res1 out
<iq type='set' id='a9842d178d1c8f63315d7f8efd5c8af9'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_list_contacts_1287@localhost' name='Alicja'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-03 10:38:08.918 ***
bOb_list_contacts_1287@localhost/res1 in
<iq from='bOb_list_contacts_1287@localhost' to='bOb_list_contacts_1287@localhost/res1' id='push90491ea0d619c72f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alicja' jid='alice_list_contacts_1287@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-03 10:38:08.918 ***
bOb_list_contacts_1287@localhost/res1 in
<iq from='bOb_list_contacts_1287@localhost' to='bOb_list_contacts_1287@localhost/res1' id='a9842d178d1c8f63315d7f8efd5c8af9' type='result'/>
*** User 2022-03-03 10:38:08.919 ***
bOb_list_contacts_1287@localhost/res1 out
<iq to='bOb_list_contacts_1287@localhost' id='push90491ea0d619c72f' type='result'/>
*** User 2022-03-03 10:38:08.920 ***
REST request:
Code: 200
Req: {<0.14415.1>,<<"/api/contacts/bob_list_contacts_1287@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1530cf2cfab660bb">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 03 Mar 2022 10:38:08 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"81">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_list_contacts_1287@localhost\",\"ask\":\"none\"}]">>,
205,410}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_list_contacts_1287@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-03 10:38:08.920 ***
bOb_list_contacts_1287@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:08.921 ***
bOb_list_contacts_1287@localhost/res1 in
</stream:stream>
*** User 2022-03-03 10:38:08.921 ***
alicE_list_contacts_1287@localhost/res1 out
</stream:stream>
*** User 2022-03-03 10:38:08.921 ***
alicE_list_contacts_1287@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-03 10:38:08
=== successfully completed test case
=== === Returned value: ok