=== Test case: rest_SUITE:list_contacts/1 (click for source code)
=== Config value:
[{watchdog,<0.10956.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,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.27.36/rest_suite.list_contacts.116611.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@43f5552376e6.2022-03-04_11.16.18/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.27.36/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@43f5552376e6.2022-03-04_11.16.18"
=== Started at 2022-03-04 11:27:37
*** User 2022-03-04 11:27:37.806 ***
alicE_list_contacts_2001@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-04 11:27:37.807 ***
alicE_list_contacts_2001@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e3fbcae021d5182' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:37.807 ***
alicE_list_contacts_2001@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-03-04 11:27:37.807 ***
alicE_list_contacts_2001@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2xpc3RfY29udGFjdHNfMjAwMQBtYXR5Z3J5c2E=</auth>
*** User 2022-03-04 11:27:37.808 ***
alicE_list_contacts_2001@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:27:37.808 ***
alicE_list_contacts_2001@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-04 11:27:37.808 ***
alicE_list_contacts_2001@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c1f60d28d619fb1f' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:37.808 ***
alicE_list_contacts_2001@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-04 11:27:37.808 ***
alicE_list_contacts_2001@localhost/res1 out
<iq type='set' id='655cf0030ffec389f05f8912a6609fa2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:27:37.808 ***
alicE_list_contacts_2001@localhost/res1 in
<iq id='655cf0030ffec389f05f8912a6609fa2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_list_contacts_2001@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:27:37.808 ***
alicE_list_contacts_2001@localhost/res1 out
<iq type='set' id='2ab88380b376d6f62438f7dc50bfa230'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:37.809 ***
alicE_list_contacts_2001@localhost/res1 in
<iq type='result' id='2ab88380b376d6f62438f7dc50bfa230'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:37.809 ***
alicE_list_contacts_2001@localhost/res1 out
<presence/>
*** User 2022-03-04 11:27:37.811 ***
alicE_list_contacts_2001@localhost/res1 in
<presence from='alicE_list_contacts_2001@localhost/res1' to='alice_list_contacts_2001@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:27:37.811 ***
bOb_list_contacts_2001@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-04 11:27:37.812 ***
bOb_list_contacts_2001@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4acbcd7350753096' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:37.812 ***
bOb_list_contacts_2001@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-03-04 11:27:37.812 ***
bOb_list_contacts_2001@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9saXN0X2NvbnRhY3RzXzIwMDEAbWFrcm9saWth</auth>
*** User 2022-03-04 11:27:37.812 ***
bOb_list_contacts_2001@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-04 11:27:37.812 ***
bOb_list_contacts_2001@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-04 11:27:37.813 ***
bOb_list_contacts_2001@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dbec6a78431461b3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-03-04 11:27:37.813 ***
bOb_list_contacts_2001@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-04 11:27:37.813 ***
bOb_list_contacts_2001@localhost/res1 out
<iq type='set' id='12b8dbe9ca974e0f4cd0cc11512dc9a6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-04 11:27:37.813 ***
bOb_list_contacts_2001@localhost/res1 in
<iq id='12b8dbe9ca974e0f4cd0cc11512dc9a6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_list_contacts_2001@localhost/res1</jid>
</bind>
</iq>
*** User 2022-03-04 11:27:37.813 ***
bOb_list_contacts_2001@localhost/res1 out
<iq type='set' id='1beff90ba1f56546cae2bc75d75816ac'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:37.813 ***
bOb_list_contacts_2001@localhost/res1 in
<iq type='result' id='1beff90ba1f56546cae2bc75d75816ac'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-04 11:27:37.813 ***
bOb_list_contacts_2001@localhost/res1 out
<presence/>
*** User 2022-03-04 11:27:37.815 ***
bOb_list_contacts_2001@localhost/res1 in
<presence from='bOb_list_contacts_2001@localhost/res1' to='bob_list_contacts_2001@localhost/res1' xml:lang='en'/>
*** User 2022-03-04 11:27:37.815 ***
bOb_list_contacts_2001@localhost/res1 out
<iq type='set' id='89bad8b448347a0e340ff880ea2bd3b8'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_list_contacts_2001@localhost' name='Alicja'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:27:37.818 ***
bOb_list_contacts_2001@localhost/res1 in
<iq from='bOb_list_contacts_2001@localhost' to='bOb_list_contacts_2001@localhost/res1' id='push33fa3e3712aed55c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alicja' jid='alice_list_contacts_2001@localhost'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-03-04 11:27:37.818 ***
bOb_list_contacts_2001@localhost/res1 in
<iq from='bOb_list_contacts_2001@localhost' to='bOb_list_contacts_2001@localhost/res1' id='89bad8b448347a0e340ff880ea2bd3b8' type='result'/>
*** User 2022-03-04 11:27:37.818 ***
bOb_list_contacts_2001@localhost/res1 out
<iq to='bOb_list_contacts_2001@localhost' id='push33fa3e3712aed55c' type='result'/>
*** User 2022-03-04 11:27:37.821 ***
REST request:
Code: 200
Req: {<0.11027.2>,<<"/api/contacts/bob_list_contacts_2001@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d0bab0f84c9a76bb">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 04 Mar 2022 11:27:37 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"81">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_list_contacts_2001@localhost\",\"ask\":\"none\"}]">>,
205,2111}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_list_contacts_2001@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-03-04 11:27:37.821 ***
bOb_list_contacts_2001@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:27:37.822 ***
bOb_list_contacts_2001@localhost/res1 in
</stream:stream>
*** User 2022-03-04 11:27:37.822 ***
alicE_list_contacts_2001@localhost/res1 out
</stream:stream>
*** User 2022-03-04 11:27:37.822 ***
alicE_list_contacts_2001@localhost/res1 in
</stream:stream>
=== Ended at 2022-03-04 11:27:37
=== successfully completed test case
=== === Returned value: ok