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

=== Config value:

    [{watchdog,<0.27618.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/rest_suite.list_contacts.151682.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@88d84ff17c71.2022-03-04_11.16.52/big_tests.tests.rest_SUITE.logs/run.2022-03-04_11.25.01/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@88d84ff17c71.2022-03-04_11.16.52"

=== Started at 2022-03-04 11:25:02


*** CT 2022-03-04 11:25:02.086 *** View log from node mongooseim@localhost when started mongooseim@localhost_2509.html
*** CT 2022-03-04 11:25:02.087 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_646.html

*** User 2022-03-04 11:25:02.096 ***
alicE_list_contacts_1793@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-03-04 11:25:02.096 ***
alicE_list_contacts_1793@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ed4ca16c5b71a2fd' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.096 ***
alicE_list_contacts_1793@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-03-04 11:25:02.097 ***
alicE_list_contacts_1793@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2xpc3RfY29udGFjdHNfMTc5MwBtYXR5Z3J5c2E=</auth>



*** User 2022-03-04 11:25:02.097 ***
alicE_list_contacts_1793@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:25:02.098 ***
alicE_list_contacts_1793@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-03-04 11:25:02.098 ***
alicE_list_contacts_1793@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6c1745a25a79a456' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.098 ***
alicE_list_contacts_1793@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-03-04 11:25:02.098 ***
alicE_list_contacts_1793@domain.example.com/res1 out
<iq type='set' id='2c9114da6b41c5fe6e798b51b6aa1e07'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.098 ***
alicE_list_contacts_1793@domain.example.com/res1 in
<iq id='2c9114da6b41c5fe6e798b51b6aa1e07' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_list_contacts_1793@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.098 ***
alicE_list_contacts_1793@domain.example.com/res1 out
<iq type='set' id='087d83321edfef75df0c98fe3279da56'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.099 ***
alicE_list_contacts_1793@domain.example.com/res1 in
<iq type='result' id='087d83321edfef75df0c98fe3279da56'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.099 ***
alicE_list_contacts_1793@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:25:02.100 ***
alicE_list_contacts_1793@domain.example.com/res1 in
<presence from='alicE_list_contacts_1793@domain.example.com/res1' to='alice_list_contacts_1793@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.101 ***
bOb_list_contacts_1793@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-03-04 11:25:02.101 ***
bOb_list_contacts_1793@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bdc15086a56518eb' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.101 ***
bOb_list_contacts_1793@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-03-04 11:25:02.101 ***
bOb_list_contacts_1793@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9saXN0X2NvbnRhY3RzXzE3OTMAbWFrcm9saWth</auth>



*** User 2022-03-04 11:25:02.102 ***
bOb_list_contacts_1793@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-03-04 11:25:02.102 ***
bOb_list_contacts_1793@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-03-04 11:25:02.102 ***
bOb_list_contacts_1793@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b20da010bafd1eb7' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-03-04 11:25:02.102 ***
bOb_list_contacts_1793@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-03-04 11:25:02.103 ***
bOb_list_contacts_1793@domain.example.com/res1 out
<iq type='set' id='86730c7547969bd6805048477b62e27a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.103 ***
bOb_list_contacts_1793@domain.example.com/res1 in
<iq id='86730c7547969bd6805048477b62e27a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_list_contacts_1793@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-03-04 11:25:02.103 ***
bOb_list_contacts_1793@domain.example.com/res1 out
<iq type='set' id='ec8e741961c61fd10c45d218a82697b7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.103 ***
bOb_list_contacts_1793@domain.example.com/res1 in
<iq type='result' id='ec8e741961c61fd10c45d218a82697b7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-03-04 11:25:02.103 ***
bOb_list_contacts_1793@domain.example.com/res1 out
<presence/>



*** User 2022-03-04 11:25:02.105 ***
bOb_list_contacts_1793@domain.example.com/res1 in
<presence from='bOb_list_contacts_1793@domain.example.com/res1' to='bob_list_contacts_1793@domain.example.com/res1' xml:lang='en'/>



*** User 2022-03-04 11:25:02.105 ***
bOb_list_contacts_1793@domain.example.com/res1 out
<iq type='set' id='ce0cb61c7c23c7f58e5be46b2a05d20b'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alicE_list_contacts_1793@domain.example.com' name='Alicja'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-03-04 11:25:02.108 ***
bOb_list_contacts_1793@domain.example.com/res1 in
<iq from='bOb_list_contacts_1793@domain.example.com' to='bOb_list_contacts_1793@domain.example.com/res1' id='push68d49039b81942c5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alicja' jid='alice_list_contacts_1793@domain.example.com'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-03-04 11:25:02.108 ***
bOb_list_contacts_1793@domain.example.com/res1 in
<iq from='bOb_list_contacts_1793@domain.example.com' to='bOb_list_contacts_1793@domain.example.com/res1' id='ce0cb61c7c23c7f58e5be46b2a05d20b' type='result'/>



*** User 2022-03-04 11:25:02.108 ***
bOb_list_contacts_1793@domain.example.com/res1 out
<iq to='bOb_list_contacts_1793@domain.example.com' id='push68d49039b81942c5' type='result'/>



*** User 2022-03-04 11:25:02.111 ***
REST request:
Code: 200
Req: {<0.27689.1>,
      <<"/api/contacts/bob_list_contacts_1793@domain.example.com">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dd1e8bc8b3708a68">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 04 Mar 2022 11:25:01 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"90">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_list_contacts_1793@domain.example.com\",\"ask\":\"none\"}]">>,
         214,1602}
Params: #{body => <<>>,method => <<"GET">>,
          path =>
              <<"/api/contacts/bob_list_contacts_1793@domain.example.com">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-03-04 11:25:02.111 ***
bOb_list_contacts_1793@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:25:02.111 ***
bOb_list_contacts_1793@domain.example.com/res1 in
</stream:stream>

*** User 2022-03-04 11:25:02.112 ***
alicE_list_contacts_1793@domain.example.com/res1 out
</stream:stream>

*** User 2022-03-04 11:25:02.112 ***
alicE_list_contacts_1793@domain.example.com/res1 in
</stream:stream>
*** CT 2022-03-04 11:25:02.114 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_646.html
*** CT 2022-03-04 11:25:02.115 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2509.html



=== Ended at 2022-03-04 11:25:02
=== successfully completed test case
=== === Returned value: ok