=== Test case: rest_SUITE:list_contacts/1 (click for source code)
=== Config value:
[{watchdog,<0.8229.2>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{preset,"odbc_mssql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_SUITE.logs/run.2022-01-25_16.34.19/rest_suite.list_contacts.150402.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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_SUITE.logs/run.2022-01-25_16.34.19/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@ebe8a8f9fc53.2022-01-25_16.21.59"
=== Started at 2022-01-25 16:34:20
*** User 2022-01-25 16:34:20.977 ***
alicE_list_contacts_2213@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-25 16:34:20.977 ***
alicE_list_contacts_2213@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='381ae26078eec8e2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:20.978 ***
alicE_list_contacts_2213@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-25 16:34:20.978 ***
alicE_list_contacts_2213@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2xpc3RfY29udGFjdHNfMjIxMwBtYXR5Z3J5c2E=</auth>
*** User 2022-01-25 16:34:20.979 ***
alicE_list_contacts_2213@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:20.979 ***
alicE_list_contacts_2213@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-25 16:34:20.979 ***
alicE_list_contacts_2213@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7d46fd98bf73e800' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:20.979 ***
alicE_list_contacts_2213@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-25 16:34:20.979 ***
alicE_list_contacts_2213@localhost/res1 out
<iq type='set' id='0c6d025fa57866c5c595bd94316743ee'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:20.980 ***
alicE_list_contacts_2213@localhost/res1 in
<iq id='0c6d025fa57866c5c595bd94316743ee' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_list_contacts_2213@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:20.980 ***
alicE_list_contacts_2213@localhost/res1 out
<iq type='set' id='8e8b80116a14a80abfe279f785e3030e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:20.980 ***
alicE_list_contacts_2213@localhost/res1 in
<iq type='result' id='8e8b80116a14a80abfe279f785e3030e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:20.980 ***
alicE_list_contacts_2213@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:20.983 ***
alicE_list_contacts_2213@localhost/res1 in
<presence from='alicE_list_contacts_2213@localhost/res1' to='alice_list_contacts_2213@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:20.983 ***
bOb_list_contacts_2213@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-25 16:34:20.984 ***
bOb_list_contacts_2213@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2e90dfd0841049b9' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:20.984 ***
bOb_list_contacts_2213@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-25 16:34:20.984 ***
bOb_list_contacts_2213@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9saXN0X2NvbnRhY3RzXzIyMTMAbWFrcm9saWth</auth>
*** User 2022-01-25 16:34:20.985 ***
bOb_list_contacts_2213@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:20.985 ***
bOb_list_contacts_2213@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-25 16:34:20.985 ***
bOb_list_contacts_2213@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='216abec10e6cc294' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:20.985 ***
bOb_list_contacts_2213@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-25 16:34:20.985 ***
bOb_list_contacts_2213@localhost/res1 out
<iq type='set' id='a8d39580cd35c26186b1e68e130cfedd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:20.986 ***
bOb_list_contacts_2213@localhost/res1 in
<iq id='a8d39580cd35c26186b1e68e130cfedd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_list_contacts_2213@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:20.986 ***
bOb_list_contacts_2213@localhost/res1 out
<iq type='set' id='52af345881fa86316d17f5eefedb5983'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:20.986 ***
bOb_list_contacts_2213@localhost/res1 in
<iq type='result' id='52af345881fa86316d17f5eefedb5983'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:20.986 ***
bOb_list_contacts_2213@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:20.989 ***
bOb_list_contacts_2213@localhost/res1 in
<presence from='bOb_list_contacts_2213@localhost/res1' to='bob_list_contacts_2213@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:20.989 ***
bOb_list_contacts_2213@localhost/res1 out
<iq type='set' id='c71b58d3cfaca0de02f9aeb507a4a2bf'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_list_contacts_2213@localhost' name='Alicja'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-25 16:34:20.994 ***
bOb_list_contacts_2213@localhost/res1 in
<iq from='bOb_list_contacts_2213@localhost' to='bOb_list_contacts_2213@localhost/res1' id='push061fb6d566e8775e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alicja' jid='alice_list_contacts_2213@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-01-25 16:34:20.995 ***
bOb_list_contacts_2213@localhost/res1 in
<iq from='bOb_list_contacts_2213@localhost' to='bOb_list_contacts_2213@localhost/res1' id='c71b58d3cfaca0de02f9aeb507a4a2bf' type='result'/>
*** User 2022-01-25 16:34:20.995 ***
bOb_list_contacts_2213@localhost/res1 out
<iq to='bOb_list_contacts_2213@localhost' id='push061fb6d566e8775e' type='result'/>
*** User 2022-01-25 16:34:20.997 ***
REST request:
Code: 200
Req: {<0.8306.2>,<<"/api/contacts/bob_list_contacts_2213@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e94b604b67c308f8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:20 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"81">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_list_contacts_2213@localhost\",\"ask\":\"none\"}]">>,
205,1698}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_list_contacts_2213@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:20.998 ***
bOb_list_contacts_2213@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:20.998 ***
bOb_list_contacts_2213@localhost/res1 in
</stream:stream>
*** User 2022-01-25 16:34:20.998 ***
alicE_list_contacts_2213@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:20.998 ***
alicE_list_contacts_2213@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-25 16:34:21
=== successfully completed test case
=== === Returned value: ok