=== Test case: rest_SUITE:list_contacts/1 (click for source code)
=== Config value:
[{watchdog,<0.14157.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,"internal_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.35.34/rest_suite.list_contacts.74242.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@34a9b6d2516c.2022-01-27_15.25.07/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.35.34/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@34a9b6d2516c.2022-01-27_15.25.07"
=== Started at 2022-01-27 15:35:35
*** User 2022-01-27 15:35:35.540 ***
alicE_list_contacts_1343@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-01-27 15:35:35.540 ***
alicE_list_contacts_1343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5db5cba2aff7edef' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:35:35.540 ***
alicE_list_contacts_1343@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>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-01-27 15:35:35.540 ***
alicE_list_contacts_1343@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2xpc3RfY29udGFjdHNfMTM0MwBtYXR5Z3J5c2E=</auth>
*** User 2022-01-27 15:35:35.541 ***
alicE_list_contacts_1343@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:35:35.541 ***
alicE_list_contacts_1343@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-01-27 15:35:35.541 ***
alicE_list_contacts_1343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4dfb97fc3a25254b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:35:35.541 ***
alicE_list_contacts_1343@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-01-27 15:35:35.541 ***
alicE_list_contacts_1343@localhost/res1 out
<iq type='set' id='cfa20835e7ef6ecbc16ecf47be34550a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:35:35.541 ***
alicE_list_contacts_1343@localhost/res1 in
<iq id='cfa20835e7ef6ecbc16ecf47be34550a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_list_contacts_1343@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:35:35.541 ***
alicE_list_contacts_1343@localhost/res1 out
<iq type='set' id='7d4968c4ad385f677fb68fac92e5ccc9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:35:35.542 ***
alicE_list_contacts_1343@localhost/res1 in
<iq type='result' id='7d4968c4ad385f677fb68fac92e5ccc9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:35:35.542 ***
alicE_list_contacts_1343@localhost/res1 out
<presence/>
*** User 2022-01-27 15:35:35.542 ***
alicE_list_contacts_1343@localhost/res1 in
<presence from='alicE_list_contacts_1343@localhost/res1' to='alice_list_contacts_1343@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:35:35.543 ***
bOb_list_contacts_1343@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-01-27 15:35:35.543 ***
bOb_list_contacts_1343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='337e8a794368cf50' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:35:35.543 ***
bOb_list_contacts_1343@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>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-01-27 15:35:35.543 ***
bOb_list_contacts_1343@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9saXN0X2NvbnRhY3RzXzEzNDMAbWFrcm9saWth</auth>
*** User 2022-01-27 15:35:35.544 ***
bOb_list_contacts_1343@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-27 15:35:35.544 ***
bOb_list_contacts_1343@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-01-27 15:35:35.544 ***
bOb_list_contacts_1343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6dda95b166517cb3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-27 15:35:35.544 ***
bOb_list_contacts_1343@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-01-27 15:35:35.544 ***
bOb_list_contacts_1343@localhost/res1 out
<iq type='set' id='d0b8d2d986cc90f8c58ba888c274b9e2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-27 15:35:35.544 ***
bOb_list_contacts_1343@localhost/res1 in
<iq id='d0b8d2d986cc90f8c58ba888c274b9e2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_list_contacts_1343@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-27 15:35:35.544 ***
bOb_list_contacts_1343@localhost/res1 out
<iq type='set' id='8f3c1cd52d2aa394b2bcc66e77a69176'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:35:35.545 ***
bOb_list_contacts_1343@localhost/res1 in
<iq type='result' id='8f3c1cd52d2aa394b2bcc66e77a69176'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-27 15:35:35.545 ***
bOb_list_contacts_1343@localhost/res1 out
<presence/>
*** User 2022-01-27 15:35:35.545 ***
bOb_list_contacts_1343@localhost/res1 in
<presence from='bOb_list_contacts_1343@localhost/res1' to='bob_list_contacts_1343@localhost/res1' xml:lang='en'/>
*** User 2022-01-27 15:35:35.545 ***
bOb_list_contacts_1343@localhost/res1 out
<iq type='set' id='d53e74da648654b6d655fdf36f591b64'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_list_contacts_1343@localhost' name='Alicja'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:35:35.546 ***
bOb_list_contacts_1343@localhost/res1 in
<iq from='bOb_list_contacts_1343@localhost' to='bOb_list_contacts_1343@localhost/res1' id='push7ee93b99d6e78cea' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alicja' jid='alice_list_contacts_1343@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-27 15:35:35.546 ***
bOb_list_contacts_1343@localhost/res1 in
<iq from='bOb_list_contacts_1343@localhost' to='bOb_list_contacts_1343@localhost/res1' id='d53e74da648654b6d655fdf36f591b64' type='result'/>
*** User 2022-01-27 15:35:35.546 ***
bOb_list_contacts_1343@localhost/res1 out
<iq to='bOb_list_contacts_1343@localhost' id='push7ee93b99d6e78cea' type='result'/>
*** User 2022-01-27 15:35:35.548 ***
REST request:
Code: 200
Req: {<0.14216.1>,<<"/api/contacts/bob_list_contacts_1343@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7fbc18b04dc2a530">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 27 Jan 2022 15:35:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"81">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_list_contacts_1343@localhost\",\"ask\":\"none\"}]">>,
205,401}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_list_contacts_1343@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-27 15:35:35.548 ***
bOb_list_contacts_1343@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:35:35.548 ***
bOb_list_contacts_1343@localhost/res1 in
</stream:stream>
*** User 2022-01-27 15:35:35.548 ***
alicE_list_contacts_1343@localhost/res1 out
</stream:stream>
*** User 2022-01-27 15:35:35.549 ***
alicE_list_contacts_1343@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-27 15:35:35
=== successfully completed test case
=== === Returned value: ok