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

=== Config value:

    [{watchdog,<0.88714.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.12.43/rest_client_suite.add_contact_and_be_invited.161283.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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.12.43/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_sic => #{iqdisc => one_queue},
        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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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@96ddc50d3205.2024-04-23_10.53.40"

=== Started at 2024-04-23 11:12:45


*** CT 2024-04-23 11:12:45.164 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4744.html

*** User 2024-04-23 11:12:45.184 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:12:45.184 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f8c399c7c8e98937' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:12:45.185 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/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 2024-04-23 11:12:45.185 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0MjYAbWF0eWdyeXNh</auth>



*** User 2024-04-23 11:12:45.186 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:12:45.186 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:12:45.186 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='870792c050be0421' from='localhost' version='1.0' xml:lang='en' to='alice_add_contact_and_be_invited_3426@localhost'>

*** User 2024-04-23 11:12:45.186 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/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 2024-04-23 11:12:45.186 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/res1 out
<iq type='set' id='c26fae6f1bc1f8866aac1350d0ee4bdc'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.186 ***🔗
alicE_add_contact_and_be_invited_3426@localhost/res1 in
<iq id='c26fae6f1bc1f8866aac1350d0ee4bdc' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_contact_and_be_invited_3426@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.187 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 out
<iq type='set' id='b113eb9df824e02332285f70ff585412'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.187 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 in
<iq from='localhost' to='alice_add_contact_and_be_invited_3426@localhost/res1' id='b113eb9df824e02332285f70ff585412' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.187 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 out
<presence/>



*** User 2024-04-23 11:12:45.189 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3426@localhost/res1' to='alice_add_contact_and_be_invited_3426@localhost/res1'/>



*** User 2024-04-23 11:12:45.190 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:12:45.190 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='75e7c8f215a2fd71' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:12:45.190 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/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 2024-04-23 11:12:45.191 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfY29udGFjdF9hbmRfYmVfaW52aXRlZF8zNDI2AG1ha3JvbGlrYQ==</auth>



*** User 2024-04-23 11:12:45.192 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:12:45.192 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-23 11:12:45.192 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76d8ece21f1b8e37' from='localhost' version='1.0' xml:lang='en' to='bob_add_contact_and_be_invited_3426@localhost'>

*** User 2024-04-23 11:12:45.192 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/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 2024-04-23 11:12:45.192 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/res1 out
<iq type='set' id='6a692817f65bb2368c45487cbdb94392'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.192 ***🔗
bOb_add_contact_and_be_invited_3426@localhost/res1 in
<iq id='6a692817f65bb2368c45487cbdb94392' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_contact_and_be_invited_3426@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.192 ***🔗
bob_add_contact_and_be_invited_3426@localhost/res1 out
<iq type='set' id='25d0e7e9446d98d2d582f66abbaa195c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.193 ***🔗
bob_add_contact_and_be_invited_3426@localhost/res1 in
<iq from='localhost' to='bob_add_contact_and_be_invited_3426@localhost/res1' id='25d0e7e9446d98d2d582f66abbaa195c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.193 ***🔗
bob_add_contact_and_be_invited_3426@localhost/res1 out
<presence/>



*** User 2024-04-23 11:12:45.195 ***🔗
bob_add_contact_and_be_invited_3426@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3426@localhost/res1' to='bob_add_contact_and_be_invited_3426@localhost/res1'/>



*** User 2024-04-23 11:12:45.206 ***🔗
REST request:
Code: 200
Req: {<0.88779.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"2a4b559ae7fdabd9">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0MjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,4121}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_contact_and_be_invited_3426@localhost">>,
               <<"makrolika">>},
          role => client,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:12:45.218 ***🔗
REST request:
Code: 204
Req: {<0.88812.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1fa7764f0c9af553">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0MjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
      <<"{\"jid\":\"alice_add_contact_and_be_invited_3426@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>}],
         <<>>,80,5179}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_contact_and_be_invited_3426@localhost">>,
               <<"makrolika">>},
          role => client,
          body =>
              <<"{\"jid\":\"alice_add_contact_and_be_invited_3426@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-23 11:12:45.218 ***🔗
bob_add_contact_and_be_invited_3426@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3426@localhost' to='bob_add_contact_and_be_invited_3426@localhost/res1' id='pusha32f9df2aa3cb3ac' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_contact_and_be_invited_3426@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.228 ***🔗
REST request:
Code: 200
Req: {<0.88839.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c56c70c1b9a3904c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0MjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3426@localhost\"}]">>,
         218,4208}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_contact_and_be_invited_3426@localhost">>,
               <<"makrolika">>},
          role => client,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:12:45.228 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 out
<iq type='set' id='27c255062854aeb87edb6bc87d8b0141'>
	<query xmlns='jabber:iq:roster'>
		<item jid='bob_add_contact_and_be_invited_3426@localhost' name='Bobek'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.234 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3426@localhost' to='alice_add_contact_and_be_invited_3426@localhost/res1' id='pushd49ae0a5bde2d39c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobek' jid='bob_add_contact_and_be_invited_3426@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.234 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3426@localhost' to='alice_add_contact_and_be_invited_3426@localhost/res1' id='27c255062854aeb87edb6bc87d8b0141' type='result'/>



*** User 2024-04-23 11:12:45.234 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 out
<presence type='subscribe' to='bob_add_contact_and_be_invited_3426@localhost'/>



*** User 2024-04-23 11:12:45.240 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3426@localhost' to='alice_add_contact_and_be_invited_3426@localhost/res1' id='push53fca68de79cf9f2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobek' ask='subscribe' jid='bob_add_contact_and_be_invited_3426@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.240 ***🔗
bob_add_contact_and_be_invited_3426@localhost/res1 in
<presence from='alice_add_contact_and_be_invited_3426@localhost' to='bob_add_contact_and_be_invited_3426@localhost/res1' type='subscribe'/>



*** User 2024-04-23 11:12:45.299 ***🔗
REST request:
Code: 200
Req: {<0.88911.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3badfc5fc913e38c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0MjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"92">>}],
         <<"[{\"ask\":\"in\",\"subscription\":\"none\",\"jid\":\"alice_add_contact_and_be_invited_3426@localhost\"}]">>,
         216,53100}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_contact_and_be_invited_3426@localhost">>,
               <<"makrolika">>},
          role => client,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:12:45.314 ***🔗
REST request:
Code: 204
Req: {<0.88937.0>,
      <<"/api/contacts/alice_add_contact_and_be_invited_3426@localhost">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b711ac73e9edc65d">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9jb250YWN0X2FuZF9iZV9pbnZpdGVkXzM0MjZAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
      <<"{\"action\":\"accept\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>}],
         <<>>,80,9604}
Params: #{path =>
              <<"/api/contacts/alice_add_contact_and_be_invited_3426@localhost">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_contact_and_be_invited_3426@localhost">>,
               <<"makrolika">>},
          role => client,body => <<"{\"action\":\"accept\"}">>,
          method => <<"PUT">>,return_headers => true}


*** User 2024-04-23 11:12:45.314 ***🔗
bob_add_contact_and_be_invited_3426@localhost/res1 in
<iq from='bob_add_contact_and_be_invited_3426@localhost' to='bob_add_contact_and_be_invited_3426@localhost/res1' id='pushcfdb27fa9baff5bb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_contact_and_be_invited_3426@localhost' subscription='from'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.315 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3426@localhost/res1' to='alice_add_contact_and_be_invited_3426@localhost/res1'/>



*** User 2024-04-23 11:12:45.315 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 in
<iq from='alice_add_contact_and_be_invited_3426@localhost' to='alice_add_contact_and_be_invited_3426@localhost/res1' id='push58bcebd8e5ffd303' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item name='Bobek' jid='bob_add_contact_and_be_invited_3426@localhost' subscription='to'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.315 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 in
<presence from='bob_add_contact_and_be_invited_3426@localhost' to='alice_add_contact_and_be_invited_3426@localhost/res1' type='subscribed'/>



*** User 2024-04-23 11:12:45.315 ***🔗
bob_add_contact_and_be_invited_3426@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:12:45.315 ***🔗
bob_add_contact_and_be_invited_3426@localhost/res1 in
</stream:stream>

*** User 2024-04-23 11:12:45.315 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:12:45.316 ***🔗
alice_add_contact_and_be_invited_3426@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 11:12:45.319 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4744.html



=== Ended at 2024-04-23 11:12:45
=== successfully completed test case
=== === Returned value: ok