=== Test case: rest_SUITE:list_contacts/1 (click for source code)

=== Config value:

    [{watchdog,<0.25384.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,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/rest_suite.list_contacts.108419.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@998557c7e1d1.2022-01-27_12.27.57/big_tests.tests.rest_SUITE.logs/run.2022-01-27_12.36.31/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@998557c7e1d1.2022-01-27_12.27.57"

=== Started at 2022-01-27 12:36:32


*** CT 2022-01-27 12:36:32.380 *** View log from node mongooseim@localhost when started mongooseim@localhost_2461.html
*** CT 2022-01-27 12:36:32.381 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_655.html

*** User 2022-01-27 12:36:32.439 ***
alicE_list_contacts_1734@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-01-27 12:36:32.439 ***
alicE_list_contacts_1734@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='92b07d236feb96fc' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.439 ***
alicE_list_contacts_1734@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-01-27 12:36:32.440 ***
alicE_list_contacts_1734@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2xpc3RfY29udGFjdHNfMTczNABtYXR5Z3J5c2E=</auth>



*** User 2022-01-27 12:36:32.449 ***
alicE_list_contacts_1734@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:36:32.449 ***
alicE_list_contacts_1734@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-01-27 12:36:32.450 ***
alicE_list_contacts_1734@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c4a9628705bdd75d' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.450 ***
alicE_list_contacts_1734@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-01-27 12:36:32.450 ***
alicE_list_contacts_1734@domain.example.com/res1 out
<iq type='set' id='1ad57729e2164f640de8124a3a467046'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.450 ***
alicE_list_contacts_1734@domain.example.com/res1 in
<iq id='1ad57729e2164f640de8124a3a467046' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_list_contacts_1734@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.451 ***
alicE_list_contacts_1734@domain.example.com/res1 out
<iq type='set' id='e8e1455b4f19a5ec90e7f8dd5226c31c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.451 ***
alicE_list_contacts_1734@domain.example.com/res1 in
<iq type='result' id='e8e1455b4f19a5ec90e7f8dd5226c31c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.451 ***
alicE_list_contacts_1734@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:32.454 ***
alicE_list_contacts_1734@domain.example.com/res1 in
<presence from='alicE_list_contacts_1734@domain.example.com/res1' to='alice_list_contacts_1734@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:32.455 ***
bOb_list_contacts_1734@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-01-27 12:36:32.455 ***
bOb_list_contacts_1734@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aabb0c2732a1d117' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.455 ***
bOb_list_contacts_1734@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-01-27 12:36:32.455 ***
bOb_list_contacts_1734@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9saXN0X2NvbnRhY3RzXzE3MzQAbWFrcm9saWth</auth>



*** User 2022-01-27 12:36:32.457 ***
bOb_list_contacts_1734@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 12:36:32.457 ***
bOb_list_contacts_1734@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-01-27 12:36:32.457 ***
bOb_list_contacts_1734@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='22caa7dec82d56b1' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-01-27 12:36:32.457 ***
bOb_list_contacts_1734@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-01-27 12:36:32.457 ***
bOb_list_contacts_1734@domain.example.com/res1 out
<iq type='set' id='18ffe2cf3ff93ad64424bdc6962f7199'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.457 ***
bOb_list_contacts_1734@domain.example.com/res1 in
<iq id='18ffe2cf3ff93ad64424bdc6962f7199' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_list_contacts_1734@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 12:36:32.458 ***
bOb_list_contacts_1734@domain.example.com/res1 out
<iq type='set' id='98091ac5a583d7ef605054b62fc349a3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.458 ***
bOb_list_contacts_1734@domain.example.com/res1 in
<iq type='result' id='98091ac5a583d7ef605054b62fc349a3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 12:36:32.458 ***
bOb_list_contacts_1734@domain.example.com/res1 out
<presence/>



*** User 2022-01-27 12:36:32.464 ***
bOb_list_contacts_1734@domain.example.com/res1 in
<presence from='bOb_list_contacts_1734@domain.example.com/res1' to='bob_list_contacts_1734@domain.example.com/res1' xml:lang='en'/>



*** User 2022-01-27 12:36:32.464 ***
bOb_list_contacts_1734@domain.example.com/res1 out
<iq type='set' id='8e978593e49f2c95034293f0d91ba584'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alicE_list_contacts_1734@domain.example.com' name='Alicja'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:32.503 ***
bOb_list_contacts_1734@domain.example.com/res1 in
<iq from='bOb_list_contacts_1734@domain.example.com' to='bOb_list_contacts_1734@domain.example.com/res1' id='pushf4412e7713a67fff' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alicja' jid='alice_list_contacts_1734@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 12:36:32.503 ***
bOb_list_contacts_1734@domain.example.com/res1 in
<iq from='bOb_list_contacts_1734@domain.example.com' to='bOb_list_contacts_1734@domain.example.com/res1' id='8e978593e49f2c95034293f0d91ba584' type='result'/>



*** User 2022-01-27 12:36:32.503 ***
bOb_list_contacts_1734@domain.example.com/res1 out
<iq to='bOb_list_contacts_1734@domain.example.com' id='pushf4412e7713a67fff' type='result'/>



*** User 2022-01-27 12:36:32.507 ***
REST request:
Code: 200
Req: {<0.25457.1>,
      <<"/api/contacts/bob_list_contacts_1734@domain.example.com">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ec9033f57cfd4572">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 12:36:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"90">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_list_contacts_1734@domain.example.com\",\"ask\":\"none\"}]">>,
         214,2910}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_list_contacts_1734@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 12:36:32.508 ***
bOb_list_contacts_1734@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:32.508 ***
bOb_list_contacts_1734@domain.example.com/res1 in
</stream:stream>

*** User 2022-01-27 12:36:32.508 ***
alicE_list_contacts_1734@domain.example.com/res1 out
</stream:stream>

*** User 2022-01-27 12:36:32.509 ***
alicE_list_contacts_1734@domain.example.com/res1 in
</stream:stream>
*** CT 2022-01-27 12:36:32.511 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_655.html
*** CT 2022-01-27 12:36:32.513 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2461.html



=== Ended at 2022-01-27 12:36:32
=== successfully completed test case
=== === Returned value: ok