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

=== Config value:

    [{watchdog,<0.89381.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_12.18.40/rest_client_suite.add_and_remove_some_contacts_properly.107780.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@26557528e1a5.2024-04-25_12.01.25/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_12.18.40/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_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_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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@26557528e1a5.2024-04-25_12.01.25"

=== Started at 2024-04-25 12:18:42


*** CT 2024-04-25 12:18:43.005 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4970.html

*** User 2024-04-25 12:18:43.024 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.024 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='15b2056c544718de' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:18:43.025 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.025 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ4NwBtYXR5Z3J5c2E=</auth>



*** User 2024-04-25 12:18:43.026 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:18:43.026 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.026 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e8a72d793399a90' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3487@localhost'>

*** User 2024-04-25 12:18:43.026 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.026 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<iq type='set' id='da39db1bde37f1a8a13c4d99667d1eb8'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:18:43.026 ***🔗
alicE_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq id='da39db1bde37f1a8a13c4d99667d1eb8' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3487@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:18:43.027 ***🔗
alice_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<iq type='set' id='16ca46dfbadd0acdf9da3f11398b837b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:43.027 ***🔗
alice_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3487@localhost/res1' id='16ca46dfbadd0acdf9da3f11398b837b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:43.027 ***🔗
alice_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<presence/>



*** User 2024-04-25 12:18:43.029 ***🔗
alice_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3487@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3487@localhost/res1'/>



*** User 2024-04-25 12:18:43.029 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.030 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='72af5a8bd91f266a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:18:43.030 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.030 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzM0ODcAbWFrcm9saWth</auth>



*** User 2024-04-25 12:18:43.031 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:18:43.031 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.031 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='370c2709285d2471' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3487@localhost'>

*** User 2024-04-25 12:18:43.032 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.032 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<iq type='set' id='d5b53e9b3aced4e41de8e0a8072a3ce2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:18:43.032 ***🔗
bOb_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq id='d5b53e9b3aced4e41de8e0a8072a3ce2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3487@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:18:43.032 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<iq type='set' id='4499231215591e50f736d683b4e69e9a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:43.033 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3487@localhost/res1' id='4499231215591e50f736d683b4e69e9a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:43.033 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<presence/>



*** User 2024-04-25 12:18:43.035 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3487@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3487@localhost/res1'/>



*** User 2024-04-25 12:18:43.040 ***🔗
kate_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.041 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='43b3f16e6421600b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:18:43.041 ***🔗
kate_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.041 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zNDg3AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-25 12:18:43.047 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:18:43.047 ***🔗
kate_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.047 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='256046ea416ea29f' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3487@localhost'>

*** User 2024-04-25 12:18:43.048 ***🔗
kate_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.048 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<iq type='set' id='fa5674fe53217ac9cf00c5ab2ff80f96'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:18:43.048 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq id='fa5674fe53217ac9cf00c5ab2ff80f96' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3487@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:18:43.048 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<iq type='set' id='6e76f9d27a713f68816bb3d7780e917c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:43.049 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3487@localhost/res1' id='6e76f9d27a713f68816bb3d7780e917c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:43.049 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<presence/>



*** User 2024-04-25 12:18:43.054 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3487@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3487@localhost/res1'/>



*** User 2024-04-25 12:18:43.055 ***🔗
mike_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.056 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1388fb72bda2dd8a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 12:18:43.056 ***🔗
mike_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.057 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zNDg3AG5pY25pZW1h</auth>



*** User 2024-04-25 12:18:43.060 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 12:18:43.060 ***🔗
mike_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.067 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='159fc42af4327df4' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3487@localhost'>

*** User 2024-04-25 12:18:43.067 ***🔗
mike_add_and_remove_some_contacts_properly_3487@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-25 12:18:43.067 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<iq type='set' id='0ba6688272c7b1d2a315031d88544f73'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 12:18:43.068 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq id='0ba6688272c7b1d2a315031d88544f73' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3487@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 12:18:43.068 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<iq type='set' id='c23f11522b022d4dde4062c78fe1f8b9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:43.069 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3487@localhost/res1' id='c23f11522b022d4dde4062c78fe1f8b9' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 12:18:43.069 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 out
<presence/>



*** User 2024-04-25 12:18:43.072 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3487@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3487@localhost/res1'/>



*** User 2024-04-25 12:18:43.085 ***🔗
REST request:
Code: 204
Req: {<0.89506.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"86ebf6a729678d90">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ4N0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3487@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>}],
         <<>>,80,5194}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3487@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3487@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 12:18:43.086 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3487@localhost' to='bob_add_and_remove_some_contacts_properly_3487@localhost/res1' id='push7da0e885be4c32cd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3487@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:18:43.100 ***🔗
REST request:
Code: 204
Req: {<0.89546.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"91dac07bed7cf9b3">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ4N0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3487@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>}],
         <<>>,80,6662}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3487@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3487@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 12:18:43.100 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3487@localhost' to='bob_add_and_remove_some_contacts_properly_3487@localhost/res1' id='pushfde24e9608424bcd' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3487@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:18:43.114 ***🔗
REST request:
Code: 204
Req: {<0.89580.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"11419a7c90d0e48e">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ4N0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3487@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>}],
         <<>>,80,7080}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3487@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3487@localhost\"}">>,
          return_headers => true}


*** User 2024-04-25 12:18:43.114 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3487@localhost' to='bob_add_and_remove_some_contacts_properly_3487@localhost/res1' id='pushf13d73f53011d67f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3487@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 12:18:43.159 ***🔗
REST request:
Code: 200
Req: {<0.89611.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"812bbc1f269d8be6">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ4N0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3487@localhost\",\"kate_add_and_remove_some_contacts_properly_3487@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,5835}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3487@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3487@localhost\",\"kate_add_and_remove_some_contacts_properly_3487@localhost\"]}">>,
          return_headers => true}


*** User 2024-04-25 12:18:43.168 ***🔗
REST request:
Code: 200
Req: {<0.89634.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"14f6513d270a4533">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQ4N0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 12:18:42 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3487@localhost\"}]">>,
         229,2417}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3487@localhost">>,
               <<"makrolika">>},
          body => <<>>,return_headers => true}


*** User 2024-04-25 12:18:43.168 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3487@localhost' to='bob_add_and_remove_some_contacts_properly_3487@localhost/res1' id='push06371f75a2a2c170' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3487@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 12:18:43.168 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 out
</stream:stream>

*** User 2024-04-25 12:18:43.169 ***🔗
mike_add_and_remove_some_contacts_properly_3487@localhost/res1 in
</stream:stream>

*** User 2024-04-25 12:18:43.169 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 out
</stream:stream>

*** User 2024-04-25 12:18:43.170 ***🔗
kate_add_and_remove_some_contacts_properly_3487@localhost/res1 in
</stream:stream>

*** User 2024-04-25 12:18:43.170 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 out
</stream:stream>

*** User 2024-04-25 12:18:43.170 ***🔗
bob_add_and_remove_some_contacts_properly_3487@localhost/res1 in
</stream:stream>

*** User 2024-04-25 12:18:43.170 ***🔗
alice_add_and_remove_some_contacts_properly_3487@localhost/res1 out
</stream:stream>

*** User 2024-04-25 12:18:43.171 ***🔗
alice_add_and_remove_some_contacts_properly_3487@localhost/res1 in
</stream:stream>
*** CT 2024-04-25 12:18:43.177 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4970.html



=== Ended at 2024-04-25 12:18:43
=== successfully completed test case
=== === Returned value: ok