=== Test case: rest_client_SUITE:add_contact_and_invite/1 (click for source code)

=== Config value:

    [{watchdog,<0.73571.0>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {mam_backend,rdbms},
     {preset,"pgsql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.rest_client_SUITE.logs/run.2023-11-23_14.27.28/rest_client_suite.add_contact_and_invite.191746.html"},
     {tc_group_properties,[{name,roster},parallel]},
     {tc_group_path,[]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@7465fd1d5a64.2023-11-23_14.13.58/big_tests.tests.rest_client_SUITE.logs/run.2023-11-23_14.27.28/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_amp => #{},
        mod_sic => #{iqdisc => one_queue},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@7465fd1d5a64.2023-11-23_14.13.58"

=== Started at 2023-11-23 14:27:30


*** CT 2023-11-23 14:27:30.650 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2706.html

*** User 2023-11-23 14:27:30.660 ***🔗
alicE_add_contact_and_invite_2748@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 2023-11-23 14:27:30.660 ***🔗
alicE_add_contact_and_invite_2748@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='462002ec0c7b334f' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-23 14:27:30.661 ***🔗
alicE_add_contact_and_invite_2748@domain.example.com/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-11-23 14:27:30.661 ***🔗
alicE_add_contact_and_invite_2748@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjc0OABtYXR5Z3J5c2E=</auth>



*** User 2023-11-23 14:27:30.661 ***🔗
alicE_add_contact_and_invite_2748@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-23 14:27:30.661 ***🔗
alicE_add_contact_and_invite_2748@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 2023-11-23 14:27:30.661 ***🔗
alicE_add_contact_and_invite_2748@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce340a272935f229' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_contact_and_invite_2748@domain.example.com'>

*** User 2023-11-23 14:27:30.662 ***🔗
alicE_add_contact_and_invite_2748@domain.example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-11-23 14:27:30.662 ***🔗
alicE_add_contact_and_invite_2748@domain.example.com/res1 out
<iq type='set' id='f711398a7a6af64a3af9c760d587e4fb'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-23 14:27:30.662 ***🔗
alicE_add_contact_and_invite_2748@domain.example.com/res1 in
<iq id='f711398a7a6af64a3af9c760d587e4fb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_contact_and_invite_2748@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-23 14:27:30.662 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 out
<iq type='set' id='4454dddbea99e333e3386b6cac560141'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:30.662 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_contact_and_invite_2748@domain.example.com/res1' id='4454dddbea99e333e3386b6cac560141' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:30.662 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 out
<presence/>



*** User 2023-11-23 14:27:30.664 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 in
<presence from='alice_add_contact_and_invite_2748@domain.example.com/res1' to='alice_add_contact_and_invite_2748@domain.example.com/res1'/>



*** User 2023-11-23 14:27:30.664 ***🔗
bOb_add_contact_and_invite_2748@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 2023-11-23 14:27:30.665 ***🔗
bOb_add_contact_and_invite_2748@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e12ddb0fa2d4d5c2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-11-23 14:27:30.665 ***🔗
bOb_add_contact_and_invite_2748@domain.example.com/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-11-23 14:27:30.665 ***🔗
bOb_add_contact_and_invite_2748@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfaW52aXRlXzI3NDgAbWFrcm9saWth</auth>



*** User 2023-11-23 14:27:30.666 ***🔗
bOb_add_contact_and_invite_2748@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-23 14:27:30.666 ***🔗
bOb_add_contact_and_invite_2748@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 2023-11-23 14:27:30.666 ***🔗
bOb_add_contact_and_invite_2748@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d22770193d91cb7c' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_contact_and_invite_2748@domain.example.com'>

*** User 2023-11-23 14:27:30.666 ***🔗
bOb_add_contact_and_invite_2748@domain.example.com/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2023-11-23 14:27:30.666 ***🔗
bOb_add_contact_and_invite_2748@domain.example.com/res1 out
<iq type='set' id='161febeaaa34652e4256369587336c4d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-23 14:27:30.667 ***🔗
bOb_add_contact_and_invite_2748@domain.example.com/res1 in
<iq id='161febeaaa34652e4256369587336c4d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_contact_and_invite_2748@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-11-23 14:27:30.667 ***🔗
bob_add_contact_and_invite_2748@domain.example.com/res1 out
<iq type='set' id='c98d1412911500ef6c6964cc7194abf6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:30.667 ***🔗
bob_add_contact_and_invite_2748@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_contact_and_invite_2748@domain.example.com/res1' id='c98d1412911500ef6c6964cc7194abf6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-23 14:27:30.667 ***🔗
bob_add_contact_and_invite_2748@domain.example.com/res1 out
<presence/>



*** User 2023-11-23 14:27:30.668 ***🔗
bob_add_contact_and_invite_2748@domain.example.com/res1 in
<presence from='bob_add_contact_and_invite_2748@domain.example.com/res1' to='bob_add_contact_and_invite_2748@domain.example.com/res1'/>



*** User 2023-11-23 14:27:30.678 ***🔗
REST request:
Code: 200
Req: {<0.73642.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"03abc3992774ec19">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjc0OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,3866}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,body => <<>>,method => <<"GET">>,
          creds =>
              {<<"bob_add_contact_and_invite_2748@domain.example.com">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-23 14:27:30.689 ***🔗
REST request:
Code: 204
Req: {<0.73684.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"faed51895f1c0969">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjc0OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_contact_and_invite_2748@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:30 GMT">>}],
         <<>>,80,3632}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,
          body =>
              <<"{\"jid\":\"alice_add_contact_and_invite_2748@domain.example.com\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"bob_add_contact_and_invite_2748@domain.example.com">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-23 14:27:30.689 ***🔗
bob_add_contact_and_invite_2748@domain.example.com/res1 in
<iq from='bob_add_contact_and_invite_2748@domain.example.com' to='bob_add_contact_and_invite_2748@domain.example.com/res1' id='push49f7032ef09b643c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_contact_and_invite_2748@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:30.698 ***🔗
REST request:
Code: 200
Req: {<0.73720.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1c9cf48cbd9e4fa2">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjc0OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"99">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2748@domain.example.com\"}]">>,
         223,3213}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,body => <<>>,method => <<"GET">>,
          creds =>
              {<<"bob_add_contact_and_invite_2748@domain.example.com">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-23 14:27:30.708 ***🔗
REST request:
Code: 204
Req: {<0.73752.0>,
      <<"/api/contacts/alice_add_contact_and_invite_2748@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d9eeb8d7aa9fc2f4">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjc0OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"action\":\"invite\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:30 GMT">>}],
         <<>>,80,4694}
Params: #{path =>
              <<"/api/contacts/alice_add_contact_and_invite_2748@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => client,body => <<"{\"action\":\"invite\"}">>,
          method => <<"PUT">>,
          creds =>
              {<<"bob_add_contact_and_invite_2748@domain.example.com">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-23 14:27:30.708 ***🔗
bob_add_contact_and_invite_2748@domain.example.com/res1 in
<iq from='bob_add_contact_and_invite_2748@domain.example.com' to='bob_add_contact_and_invite_2748@domain.example.com/res1' id='push8e9c7607177ce4df' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='alice_add_contact_and_invite_2748@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:30.708 ***🔗
Push2: {xmlel,<<"iq">>,
              [{<<"from">>,
                <<"bob_add_contact_and_invite_2748@domain.example.com">>},
               {<<"to">>,
                <<"bob_add_contact_and_invite_2748@domain.example.com/res1">>},
               {<<"id">>,<<"push8e9c7607177ce4df">>},
               {<<"type">>,<<"set">>}],
              [{xmlel,<<"query">>,
                      [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                      [{xmlel,<<"item">>,
                              [{<<"ask">>,<<"subscribe">>},
                               {<<"subscription">>,<<"none">>},
                               {<<"jid">>,
                                <<"alice_add_contact_and_invite_2748@domain.example.com">>}],
                              []}]}]}

*** User 2023-11-23 14:27:30.708 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 in
<presence from='bob_add_contact_and_invite_2748@domain.example.com' to='alice_add_contact_and_invite_2748@domain.example.com/res1' type='subscribe'/>



*** User 2023-11-23 14:27:30.716 ***🔗
REST request:
Code: 200
Req: {<0.73789.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"df0ef46e1696dbd3">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjc0OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_invite_2748@domain.example.com\"}]">>,
         222,3580}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,body => <<>>,method => <<"GET">>,
          creds =>
              {<<"bob_add_contact_and_invite_2748@domain.example.com">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-23 14:27:30.716 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 out
<iq type='set' id='a6fdb955afe3ffb7a1cd75bc79143f15'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_add_contact_and_invite_2748@domain.example.com' name='Bob'/>
	</query>
</iq>



*** User 2023-11-23 14:27:30.767 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 in
<iq from='alice_add_contact_and_invite_2748@domain.example.com' to='alice_add_contact_and_invite_2748@domain.example.com/res1' id='pushfe10f7fa6215095d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' name='Bob' jid='bob_add_contact_and_invite_2748@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:30.767 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 out
<iq to='alice_add_contact_and_invite_2748@domain.example.com' id='pushfe10f7fa6215095d' type='result'/>



*** User 2023-11-23 14:27:30.767 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 in
<iq from='alice_add_contact_and_invite_2748@domain.example.com' to='alice_add_contact_and_invite_2748@domain.example.com/res1' id='a6fdb955afe3ffb7a1cd75bc79143f15' type='result'/>



*** User 2023-11-23 14:27:30.767 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 out
<presence type='subscribed' to='bob_add_contact_and_invite_2748@domain.example.com'/>



*** User 2023-11-23 14:27:30.772 ***🔗
bob_add_contact_and_invite_2748@domain.example.com/res1 in
<iq from='bob_add_contact_and_invite_2748@domain.example.com' to='bob_add_contact_and_invite_2748@domain.example.com/res1' id='push5060cc07539f354f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_add_contact_and_invite_2748@domain.example.com'/>
	</query>
</iq>



*** User 2023-11-23 14:27:30.772 ***🔗
Push3 {xmlel,<<"iq">>,
             [{<<"from">>,
               <<"bob_add_contact_and_invite_2748@domain.example.com">>},
              {<<"to">>,
               <<"bob_add_contact_and_invite_2748@domain.example.com/res1">>},
              {<<"id">>,<<"push5060cc07539f354f">>},
              {<<"type">>,<<"set">>}],
             [{xmlel,<<"query">>,
                     [{<<"xmlns">>,<<"jabber:iq:roster">>}],
                     [{xmlel,<<"item">>,
                             [{<<"subscription">>,<<"to">>},
                              {<<"jid">>,
                               <<"alice_add_contact_and_invite_2748@domain.example.com">>}],
                             []}]}]}

*** User 2023-11-23 14:27:30.778 ***🔗
REST request:
Code: 200
Req: {<0.73834.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e970f89aa9b0002f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9pbnZpdGVfMjc0OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 23 Nov 2023 14:27:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"alice_add_contact_and_invite_2748@domain.example.com\"}]">>,
         221,1986}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,body => <<>>,method => <<"GET">>,
          creds =>
              {<<"bob_add_contact_and_invite_2748@domain.example.com">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-23 14:27:30.778 ***🔗
bob_add_contact_and_invite_2748@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-23 14:27:30.779 ***🔗
bob_add_contact_and_invite_2748@domain.example.com/res1 in
</stream:stream>

*** User 2023-11-23 14:27:30.779 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 out
</stream:stream>

*** User 2023-11-23 14:27:30.779 ***🔗
alice_add_contact_and_invite_2748@domain.example.com/res1 in
</stream:stream>
*** CT 2023-11-23 14:27:30.781 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2706.html



=== Ended at 2023-11-23 14:27:30
=== successfully completed test case
=== === Returned value: ok