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

=== Config value:

    [{watchdog,<0.8863.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/rest_suite.list_contacts.148098.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@43a5deef6262.2022-01-27_15.25.11/big_tests.tests.rest_SUITE.logs/run.2022-01-27_15.36.47/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@43a5deef6262.2022-01-27_15.25.11"

=== Started at 2022-01-27 15:36:48


*** CT 2022-01-27 15:36:48.912 *** View log from node mongooseim@localhost when started mongooseim@localhost_5797.html
*** CT 2022-01-27 15:36:48.913 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_2385.html

*** User 2022-01-27 15:36:48.928 ***
alicE_list_contacts_2148@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-27 15:36:48.928 ***
alicE_list_contacts_2148@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fed1aeb2bee953d0' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:48.929 ***
alicE_list_contacts_2148@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-27 15:36:48.929 ***
alicE_list_contacts_2148@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2xpc3RfY29udGFjdHNfMjE0OABtYXR5Z3J5c2E=</auth>



*** User 2022-01-27 15:36:48.931 ***
alicE_list_contacts_2148@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:36:48.931 ***
alicE_list_contacts_2148@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-27 15:36:48.931 ***
alicE_list_contacts_2148@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77fe02b568537dbb' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:48.931 ***
alicE_list_contacts_2148@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-27 15:36:48.931 ***
alicE_list_contacts_2148@localhost/res1 out
<iq type='set' id='b13e988ab61baac0a83846cac50785e1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.932 ***
alicE_list_contacts_2148@localhost/res1 in
<iq id='b13e988ab61baac0a83846cac50785e1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_list_contacts_2148@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.932 ***
alicE_list_contacts_2148@localhost/res1 out
<iq type='set' id='7fe6218c0d34104212a1e551b7339f50'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.932 ***
alicE_list_contacts_2148@localhost/res1 in
<iq type='result' id='7fe6218c0d34104212a1e551b7339f50'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.933 ***
alicE_list_contacts_2148@localhost/res1 out
<presence/>



*** User 2022-01-27 15:36:48.935 ***
alicE_list_contacts_2148@localhost/res1 in
<presence from='alicE_list_contacts_2148@localhost/res1' to='alice_list_contacts_2148@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:48.936 ***
bOb_list_contacts_2148@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-27 15:36:48.936 ***
bOb_list_contacts_2148@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e0862c31f910ee50' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:48.936 ***
bOb_list_contacts_2148@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-27 15:36:48.936 ***
bOb_list_contacts_2148@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9saXN0X2NvbnRhY3RzXzIxNDgAbWFrcm9saWth</auth>



*** User 2022-01-27 15:36:48.937 ***
bOb_list_contacts_2148@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-01-27 15:36:48.937 ***
bOb_list_contacts_2148@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-27 15:36:48.937 ***
bOb_list_contacts_2148@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fd1a0e75ac7a2457' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-01-27 15:36:48.938 ***
bOb_list_contacts_2148@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-27 15:36:48.938 ***
bOb_list_contacts_2148@localhost/res1 out
<iq type='set' id='05021e7ca78a605344071ac81e03291d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.938 ***
bOb_list_contacts_2148@localhost/res1 in
<iq id='05021e7ca78a605344071ac81e03291d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_list_contacts_2148@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-01-27 15:36:48.938 ***
bOb_list_contacts_2148@localhost/res1 out
<iq type='set' id='e777c160166900c666619629654c39d7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.938 ***
bOb_list_contacts_2148@localhost/res1 in
<iq type='result' id='e777c160166900c666619629654c39d7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-01-27 15:36:48.939 ***
bOb_list_contacts_2148@localhost/res1 out
<presence/>



*** User 2022-01-27 15:36:48.941 ***
bOb_list_contacts_2148@localhost/res1 in
<presence from='bOb_list_contacts_2148@localhost/res1' to='bob_list_contacts_2148@localhost/res1' xml:lang='en'/>



*** User 2022-01-27 15:36:48.941 ***
bOb_list_contacts_2148@localhost/res1 out
<iq type='set' id='9bd56a4c8eaf05f72afdd47656352433'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alicE_list_contacts_2148@localhost' name='Alicja'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 15:36:48.946 ***
bOb_list_contacts_2148@localhost/res1 in
<iq from='bOb_list_contacts_2148@localhost' to='bOb_list_contacts_2148@localhost/res1' id='push5160c8b97bd9db5d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Alicja' jid='alice_list_contacts_2148@localhost'>
			<group>friends</group>
		</item>
	</query>
</iq>



*** User 2022-01-27 15:36:48.946 ***
bOb_list_contacts_2148@localhost/res1 in
<iq from='bOb_list_contacts_2148@localhost' to='bOb_list_contacts_2148@localhost/res1' id='9bd56a4c8eaf05f72afdd47656352433' type='result'/>



*** User 2022-01-27 15:36:48.946 ***
bOb_list_contacts_2148@localhost/res1 out
<iq to='bOb_list_contacts_2148@localhost' id='push5160c8b97bd9db5d' type='result'/>



*** User 2022-01-27 15:36:48.949 ***
REST request:
Code: 200
Req: {<0.8936.2>,<<"/api/contacts/bob_list_contacts_2148@localhost">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"94b853e263034e9f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 27 Jan 2022 15:36:48 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"81">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"alice_list_contacts_2148@localhost\",\"ask\":\"none\"}]">>,
         205,1804}
Params: #{body => <<>>,method => <<"GET">>,
          path => <<"/api/contacts/bob_list_contacts_2148@localhost">>,
          return_headers => true,role => admin,
          server => #{node => mongooseim@localhost}}


*** User 2022-01-27 15:36:48.949 ***
bOb_list_contacts_2148@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:36:48.949 ***
bOb_list_contacts_2148@localhost/res1 in
</stream:stream>

*** User 2022-01-27 15:36:48.949 ***
alicE_list_contacts_2148@localhost/res1 out
</stream:stream>

*** User 2022-01-27 15:36:48.949 ***
alicE_list_contacts_2148@localhost/res1 in
</stream:stream>
*** CT 2022-01-27 15:36:48.952 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_2385.html
*** CT 2022-01-27 15:36:48.953 *** View log from node mongooseim@localhost when finished mongooseim@localhost_5797.html



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