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

=== Config value:

    [{watchdog,<0.73651.0>},
     {{ejabberd_cwd,mongooseim@localhost},
      "/home/circleci/project/_build/mim1/rel/mongooseim"},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.rest_SUITE.logs/run.2024-02-23_17.45.30/rest_suite.befriend_and_alienate.215682.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@5f60ef475eab.2024-02-23_17.31.31/big_tests.tests.rest_SUITE.logs/run.2024-02-23_17.45.30/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_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              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}}},
     {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@5f60ef475eab.2024-02-23_17.31.31"

=== Started at 2024-02-23 17:45:31


*** CT 2024-02-23 17:45:31.343 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2645.html

*** User 2024-02-23 17:45:31.354 ***🔗
alicE_befriend_and_alienate_2849@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 2024-02-23 17:45:31.354 ***🔗
alicE_befriend_and_alienate_2849@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='de1f05a5a11b6d44' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-23 17:45:31.354 ***🔗
alicE_befriend_and_alienate_2849@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 2024-02-23 17:45:31.354 ***🔗
alicE_befriend_and_alienate_2849@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yODQ5AG1hdHlncnlzYQ==</auth>



*** User 2024-02-23 17:45:31.356 ***🔗
alicE_befriend_and_alienate_2849@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-23 17:45:31.356 ***🔗
alicE_befriend_and_alienate_2849@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 2024-02-23 17:45:31.356 ***🔗
alicE_befriend_and_alienate_2849@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e5a6a350f8213c55' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2849@domain.example.com'>

*** User 2024-02-23 17:45:31.356 ***🔗
alicE_befriend_and_alienate_2849@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 2024-02-23 17:45:31.357 ***🔗
alicE_befriend_and_alienate_2849@domain.example.com/res1 out
<iq type='set' id='13c99427ab0ea48fe8bb8a4fe279e3d4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-23 17:45:31.357 ***🔗
alicE_befriend_and_alienate_2849@domain.example.com/res1 in
<iq id='13c99427ab0ea48fe8bb8a4fe279e3d4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_befriend_and_alienate_2849@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-23 17:45:31.357 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 out
<iq type='set' id='827a59de85277779fc765ded8d9b01f9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 17:45:31.357 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' id='827a59de85277779fc765ded8d9b01f9' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 17:45:31.357 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 out
<presence/>



*** User 2024-02-23 17:45:31.359 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2849@domain.example.com/res1' to='alice_befriend_and_alienate_2849@domain.example.com/res1'/>



*** User 2024-02-23 17:45:31.360 ***🔗
bOb_befriend_and_alienate_2849@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 2024-02-23 17:45:31.360 ***🔗
bOb_befriend_and_alienate_2849@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8dd1bdc8bc507f40' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-02-23 17:45:31.360 ***🔗
bOb_befriend_and_alienate_2849@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 2024-02-23 17:45:31.360 ***🔗
bOb_befriend_and_alienate_2849@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjg0OQBtYWtyb2xpa2E=</auth>



*** User 2024-02-23 17:45:31.361 ***🔗
bOb_befriend_and_alienate_2849@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-02-23 17:45:31.361 ***🔗
bOb_befriend_and_alienate_2849@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 2024-02-23 17:45:31.362 ***🔗
bOb_befriend_and_alienate_2849@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='226d4a7730e5eec1' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2849@domain.example.com'>

*** User 2024-02-23 17:45:31.362 ***🔗
bOb_befriend_and_alienate_2849@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 2024-02-23 17:45:31.362 ***🔗
bOb_befriend_and_alienate_2849@domain.example.com/res1 out
<iq type='set' id='53cec4959a8f3ca78a6d5c5f0b36c6d7'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-02-23 17:45:31.363 ***🔗
bOb_befriend_and_alienate_2849@domain.example.com/res1 in
<iq id='53cec4959a8f3ca78a6d5c5f0b36c6d7' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_befriend_and_alienate_2849@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-02-23 17:45:31.363 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 out
<iq type='set' id='d6aa8c25dff94d0e1cd0dd2aaaf4ed85'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 17:45:31.363 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' id='d6aa8c25dff94d0e1cd0dd2aaaf4ed85' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-02-23 17:45:31.363 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 out
<presence/>



*** User 2024-02-23 17:45:31.365 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2849@domain.example.com/res1' to='bob_befriend_and_alienate_2849@domain.example.com/res1'/>



*** User 2024-02-23 17:45:31.367 ***🔗
REST request:
Code: 200
Req: {<0.73766.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6592a415074ad0d9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1529}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.369 ***🔗
REST request:
Code: 200
Req: {<0.73774.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"528ccd30ec753fd0">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1281}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.374 ***🔗
REST request:
Code: 204
Req: {<0.73780.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a5e4817ba3413e59">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2849@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>}],
         <<>>,80,3588}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2849@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-02-23 17:45:31.380 ***🔗
REST request:
Code: 204
Req: {<0.73788.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"985592d542c125a7">>}],
      <<"{\"jid\":\"bob_befriend_and_alienate_2849@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>}],
         <<>>,80,4648}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"bob_befriend_and_alienate_2849@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-02-23 17:45:31.384 ***🔗
REST request:
Code: 204
Req: {<0.73790.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f9bd22312f0c6c80">>}],
      <<"{\"jid\":\"alice_befriend_and_alienate_2849@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>}],
         <<>>,80,3584}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_befriend_and_alienate_2849@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-02-23 17:45:31.390 ***🔗
REST request:
Code: 200
Req: {<0.73792.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a0971c829210d1c9">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2849@domain.example.com\"}]">>,
         222,5151}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.393 ***🔗
REST request:
Code: 200
Req: {<0.73794.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6e57dc61283c1e34">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2849@domain.example.com\"}]">>,
         220,1397}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.399 ***🔗
REST request:
Code: 204
Req: {<0.73796.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"eb441e2ab7437875">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>}],
         <<>>,80,5310}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-02-23 17:45:31.401 ***🔗
REST request:
Code: 200
Req: {<0.73800.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"384be24e980182cc">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"95">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2849@domain.example.com\"}]">>,
         219,1717}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.408 ***🔗
REST request:
Code: 204
Req: {<0.73804.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0953fd35818fcea8">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>}],
         <<>>,80,5700}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-02-23 17:45:31.411 ***🔗
REST request:
Code: 200
Req: {<0.73808.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"57ac52c6c2d8d9c8">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"94">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2849@domain.example.com\"}]">>,
         218,1745}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.414 ***🔗
REST request:
Code: 200
Req: {<0.73810.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5cdc34ff474ef01f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2849@domain.example.com\"}]">>,
         222,2137}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.421 ***🔗
REST request:
Code: 204
Req: {<0.73812.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f7a8360f5fb63c76">>}],
      <<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>}],
         <<>>,80,6217}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}


*** User 2024-02-23 17:45:31.423 ***🔗
REST request:
Code: 200
Req: {<0.73818.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c86802a4dc3b9ba2">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"97">>}],
         <<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2849@domain.example.com\"}]">>,
         221,1505}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.429 ***🔗
REST request:
Code: 204
Req: {<0.73820.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"PUT">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a8c34afa386931b3">>}],
      <<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>}],
         <<>>,80,5072}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"PUT">>,
          body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}


*** User 2024-02-23 17:45:31.432 ***🔗
REST request:
Code: 200
Req: {<0.73822.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"536cf3d9d2ed6879">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"96">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2849@domain.example.com\"}]">>,
         220,1669}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.434 ***🔗
REST request:
Code: 200
Req: {<0.73824.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e21cd7104e1ffe93">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2849@domain.example.com\"}]">>,
         222,1511}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.474 ***🔗
REST request:
Code: 204
Req: {<0.73826.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"99262882bdb7f644">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>}],
         <<>>,80,39304}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"DELETE">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.477 ***🔗
REST request:
Code: 200
Req: {<0.73828.0>,
      <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aafaef307104cb1f">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1747}
Params: #{path =>
              <<"/api/contacts/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.480 ***🔗
REST request:
Code: 200
Req: {<0.73830.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"72dd21fbbfed6bea">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"98">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2849@domain.example.com\"}]">>,
         222,1746}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.484 ***🔗
REST request:
Code: 204
Req: {<0.73832.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com/alice_befriend_and_alienate_2849@domain.example.com">>,
      <<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c1740cad6edfd161">>}],
      <<>>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>}],
         <<>>,80,3211}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com/alice_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"DELETE">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.487 ***🔗
REST request:
Code: 200
Req: {<0.73834.0>,
      <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
      <<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e37d184d2fe81b45">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 23 Feb 2024 17:45:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"2">>}],
         <<"[]">>,125,1760}
Params: #{path =>
              <<"/api/contacts/bob_befriend_and_alienate_2849@domain.example.com">>,
          server => #{node => mongooseim@localhost},
          role => admin,method => <<"GET">>,body => <<>>,
          return_headers => true}


*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2849@domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' id='pushf02ffe53381a1bcc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2849@domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' id='push84f9072c73287c84' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='bob_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2849@domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' id='pushba546e0d33b7ba25' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2849@domain.example.com/res1' to='alice_befriend_and_alienate_2849@domain.example.com/res1'/>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2849@domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' id='push89818123e1859f11' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2849@domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' type='subscribed'/>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2849@domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' id='push63b7889eb9d1a23f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='bob_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2849@domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' type='subscribe'/>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2849@domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' id='push8d8500b5006188f4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='bob_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2849@domain.example.com' to='alice_befriend_and_alienate_2849@domain.example.com/res1' id='push93550d38e4092e88' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='bob_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:31.487 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2849@domain.example.com/res1' to='alice_befriend_and_alienate_2849@domain.example.com/res1' type='unavailable'/>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' id='pushbaeb23d333842fd9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' type='subscribe'/>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' id='pushc99541cf718650aa' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='from' jid='alice_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' id='push0683597b82f42b22' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2849@domain.example.com/res1' to='bob_befriend_and_alienate_2849@domain.example.com/res1'/>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' id='pushbd0ece25d5ca41ab' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='both' jid='alice_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' type='subscribed'/>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2849@domain.example.com/res1' to='bob_befriend_and_alienate_2849@domain.example.com/res1' type='unavailable'/>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' id='push12e99ff7051bd0f3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='to' jid='alice_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' type='unsubscribe'/>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' id='pushc254605a9de1702d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' type='unsubscribed'/>



*** User 2024-02-23 17:45:36.489 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2849@domain.example.com' to='bob_befriend_and_alienate_2849@domain.example.com/res1' id='pusha2ebf983165c44ab' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_befriend_and_alienate_2849@domain.example.com'/>
	</query>
</iq>



*** User 2024-02-23 17:45:41.490 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-23 17:45:41.490 ***🔗
bob_befriend_and_alienate_2849@domain.example.com/res1 in
</stream:stream>

*** User 2024-02-23 17:45:41.490 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 out
</stream:stream>

*** User 2024-02-23 17:45:41.491 ***🔗
alice_befriend_and_alienate_2849@domain.example.com/res1 in
</stream:stream>
*** CT 2024-02-23 17:45:41.493 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2664.html



=== Ended at 2024-02-23 17:45:41
=== successfully completed test case
=== === Returned value: ok