=== Test case: rest_SUITE:list_contacts/1 (click for source code)
=== Config value:
[{watchdog,<0.26047.1>},
{{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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_SUITE.logs/run.2022-02-02_15.14.56/rest_suite.list_contacts.37381.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@7a520fcf4274.2022-02-02_15.07.36/big_tests.tests.rest_SUITE.logs/run.2022-02-02_15.14.56/log_private/"},
{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@7a520fcf4274.2022-02-02_15.07.36"
=== Started at 2022-02-02 15:14:57
*** User 2022-02-02 15:14:57.693 ***
alicE_list_contacts_1606@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 2022-02-02 15:14:57.693 ***
alicE_list_contacts_1606@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5a7919858cff01cd' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:57.693 ***
alicE_list_contacts_1606@domain.example.com/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-02-02 15:14:57.693 ***
alicE_list_contacts_1606@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2xpc3RfY29udGFjdHNfMTYwNgBtYXR5Z3J5c2E=</auth>
*** User 2022-02-02 15:14:57.694 ***
alicE_list_contacts_1606@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:57.694 ***
alicE_list_contacts_1606@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 2022-02-02 15:14:57.694 ***
alicE_list_contacts_1606@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6c5d955b5312d55' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:57.694 ***
alicE_list_contacts_1606@domain.example.com/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-02-02 15:14:57.694 ***
alicE_list_contacts_1606@domain.example.com/res1 out
<iq type='set' id='6b1c8d6fd3996841ee174dba470284a2'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:57.695 ***
alicE_list_contacts_1606@domain.example.com/res1 in
<iq id='6b1c8d6fd3996841ee174dba470284a2' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_list_contacts_1606@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:57.695 ***
alicE_list_contacts_1606@domain.example.com/res1 out
<iq type='set' id='370778ae0683b35f4f462b7fff8a8e1a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:57.695 ***
alicE_list_contacts_1606@domain.example.com/res1 in
<iq type='result' id='370778ae0683b35f4f462b7fff8a8e1a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:57.695 ***
alicE_list_contacts_1606@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:57.697 ***
alicE_list_contacts_1606@domain.example.com/res1 in
<presence from='alicE_list_contacts_1606@domain.example.com/res1' to='alice_list_contacts_1606@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:57.697 ***
bOb_list_contacts_1606@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 2022-02-02 15:14:57.698 ***
bOb_list_contacts_1606@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f0b1f09d5ed8184' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:57.698 ***
bOb_list_contacts_1606@domain.example.com/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-02-02 15:14:57.698 ***
bOb_list_contacts_1606@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9saXN0X2NvbnRhY3RzXzE2MDYAbWFrcm9saWth</auth>
*** User 2022-02-02 15:14:57.699 ***
bOb_list_contacts_1606@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-02-02 15:14:57.699 ***
bOb_list_contacts_1606@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 2022-02-02 15:14:57.699 ***
bOb_list_contacts_1606@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5adc6eb2a698667c' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-02-02 15:14:57.699 ***
bOb_list_contacts_1606@domain.example.com/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-02-02 15:14:57.699 ***
bOb_list_contacts_1606@domain.example.com/res1 out
<iq type='set' id='a4955a02e8dc719461d5acb064777d2b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-02-02 15:14:57.699 ***
bOb_list_contacts_1606@domain.example.com/res1 in
<iq id='a4955a02e8dc719461d5acb064777d2b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_list_contacts_1606@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-02-02 15:14:57.699 ***
bOb_list_contacts_1606@domain.example.com/res1 out
<iq type='set' id='7ea8ba19c8b4164ba01713bb3fc6b261'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:57.700 ***
bOb_list_contacts_1606@domain.example.com/res1 in
<iq type='result' id='7ea8ba19c8b4164ba01713bb3fc6b261'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-02-02 15:14:57.700 ***
bOb_list_contacts_1606@domain.example.com/res1 out
<presence/>
*** User 2022-02-02 15:14:57.701 ***
bOb_list_contacts_1606@domain.example.com/res1 in
<presence from='bOb_list_contacts_1606@domain.example.com/res1' to='bob_list_contacts_1606@domain.example.com/res1' xml:lang='en'/>
*** User 2022-02-02 15:14:57.702 ***
bOb_list_contacts_1606@domain.example.com/res1 out
<iq type='set' id='d4635889409ffa9da1d4ed049968ae50'>
<query xmlns='jabber:iq:roster'>
<item jid='alicE_list_contacts_1606@domain.example.com' name='Alicja'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:57.704 ***
bOb_list_contacts_1606@domain.example.com/res1 in
<iq from='bOb_list_contacts_1606@domain.example.com' to='bOb_list_contacts_1606@domain.example.com/res1' id='push05070c45b116da92' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' name='Alicja' jid='alice_list_contacts_1606@domain.example.com'>
<group>friends</group>
</item>
</query>
</iq>
*** User 2022-02-02 15:14:57.704 ***
bOb_list_contacts_1606@domain.example.com/res1 in
<iq from='bOb_list_contacts_1606@domain.example.com' to='bOb_list_contacts_1606@domain.example.com/res1' id='d4635889409ffa9da1d4ed049968ae50' type='result'/>
*** User 2022-02-02 15:14:57.704 ***
bOb_list_contacts_1606@domain.example.com/res1 out
<iq to='bOb_list_contacts_1606@domain.example.com' id='push05070c45b116da92' type='result'/>
*** User 2022-02-02 15:14:57.708 ***
REST request:
Code: 200
Req: {<0.26118.1>,
<<"/api/contacts/bob_list_contacts_1606@domain.example.com">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4086b2066c9e0189">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 02 Feb 2022 15:14:57 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"90">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_list_contacts_1606@domain.example.com\",\"ask\":\"none\"}]">>,
214,2508}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_list_contacts_1606@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2022-02-02 15:14:57.708 ***
bOb_list_contacts_1606@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:57.708 ***
bOb_list_contacts_1606@domain.example.com/res1 in
</stream:stream>
*** User 2022-02-02 15:14:57.708 ***
alicE_list_contacts_1606@domain.example.com/res1 out
</stream:stream>
*** User 2022-02-02 15:14:57.708 ***
alicE_list_contacts_1606@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-02-02 15:14:57
=== successfully completed test case
=== === Returned value: ok