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

=== Config value:

    [{watchdog,<0.85379.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.rest_client_SUITE.logs/run.2023-11-16_09.49.09/rest_client_suite.add_and_remove_some_contacts_properly.117636.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@079a843f8d8b.2023-11-16_09.33.39/big_tests.tests.rest_client_SUITE.logs/run.2023-11-16_09.49.09/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,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}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@079a843f8d8b.2023-11-16_09.33.39"

=== Started at 2023-11-16 09:49:11


*** CT 2023-11-16 09:49:11.410 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4899.html

*** User 2023-11-16 09:49:11.423 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:49:11.424 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d96986bfdac7c68e' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:49:11.424 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@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 2023-11-16 09:49:11.424 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzExNgBtYXR5Z3J5c2E=</auth>



*** User 2023-11-16 09:49:11.425 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-16 09:49:11.425 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:49:11.425 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='744a75bca0d37d2e' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3116@localhost'>

*** User 2023-11-16 09:49:11.425 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@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 2023-11-16 09:49:11.425 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<iq type='set' id='55b513ca96739042de6497f875a729c6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-16 09:49:11.425 ***🔗
alicE_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq id='55b513ca96739042de6497f875a729c6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3116@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:49:11.425 ***🔗
alice_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<iq type='set' id='788ec004ba032cced4fd762a5178199a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:49:11.426 ***🔗
alice_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3116@localhost/res1' id='788ec004ba032cced4fd762a5178199a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:49:11.426 ***🔗
alice_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<presence/>



*** User 2023-11-16 09:49:11.427 ***🔗
alice_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3116@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3116@localhost/res1'/>



*** User 2023-11-16 09:49:11.428 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:49:11.428 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2166c8c3bafd5db8' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:49:11.428 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@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 2023-11-16 09:49:11.428 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMxMTYAbWFrcm9saWth</auth>



*** User 2023-11-16 09:49:11.430 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-16 09:49:11.430 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:49:11.431 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='41be741168dfbe02' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3116@localhost'>

*** User 2023-11-16 09:49:11.431 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@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 2023-11-16 09:49:11.431 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<iq type='set' id='fffee7e2e248cf2912265bbe62e2c99f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-16 09:49:11.431 ***🔗
bOb_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq id='fffee7e2e248cf2912265bbe62e2c99f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3116@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:49:11.431 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<iq type='set' id='a95556c9a8478c0aeded2d98a05a0f5c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:49:11.432 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3116@localhost/res1' id='a95556c9a8478c0aeded2d98a05a0f5c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:49:11.432 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<presence/>



*** User 2023-11-16 09:49:11.433 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3116@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3116@localhost/res1'/>



*** User 2023-11-16 09:49:11.434 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:49:11.434 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bc8c75737181e2cb' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:49:11.434 ***🔗
kate_add_and_remove_some_contacts_properly_3116@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 2023-11-16 09:49:11.434 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMTE2AG1ha3Jvd2U7cA==</auth>



*** User 2023-11-16 09:49:11.435 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-16 09:49:11.435 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:49:11.435 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3d36b325a7e1a01e' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3116@localhost'>

*** User 2023-11-16 09:49:11.435 ***🔗
kate_add_and_remove_some_contacts_properly_3116@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 2023-11-16 09:49:11.435 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<iq type='set' id='4a0d63ea452729626b127eecf592c77f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-16 09:49:11.436 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq id='4a0d63ea452729626b127eecf592c77f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3116@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:49:11.436 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<iq type='set' id='3fe2822f8c36848e2f26ccea9f996504'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:49:11.436 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3116@localhost/res1' id='3fe2822f8c36848e2f26ccea9f996504' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:49:11.436 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<presence/>



*** User 2023-11-16 09:49:11.438 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3116@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3116@localhost/res1'/>



*** User 2023-11-16 09:49:11.439 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:49:11.439 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='35191f492d762945' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:49:11.439 ***🔗
mike_add_and_remove_some_contacts_properly_3116@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 2023-11-16 09:49:11.439 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMTE2AG5pY25pZW1h</auth>



*** User 2023-11-16 09:49:11.440 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-11-16 09:49:11.440 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2023-11-16 09:49:11.440 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4c6bae4f4c17afd4' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3116@localhost'>

*** User 2023-11-16 09:49:11.440 ***🔗
mike_add_and_remove_some_contacts_properly_3116@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 2023-11-16 09:49:11.440 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<iq type='set' id='5741bf1ef1185a67750e5055a6767fe8'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-11-16 09:49:11.440 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq id='5741bf1ef1185a67750e5055a6767fe8' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3116@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:49:11.441 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<iq type='set' id='35e71108bad21fc1802c25fa08dc5dcf'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:49:11.441 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3116@localhost/res1' id='35e71108bad21fc1802c25fa08dc5dcf' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:49:11.441 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 out
<presence/>



*** User 2023-11-16 09:49:11.442 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3116@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3116@localhost/res1'/>



*** User 2023-11-16 09:49:11.452 ***🔗
REST request:
Code: 204
Req: {<0.85522.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d5358a451d379145">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzExNkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3116@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>}],
         <<>>,80,3596}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3116@localhost\"}">>,
          role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3116@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-16 09:49:11.453 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3116@localhost' to='bob_add_and_remove_some_contacts_properly_3116@localhost/res1' id='pushe8ce1aeae8ba35ee' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_3116@localhost'/>
	</query>
</iq>



*** User 2023-11-16 09:49:11.460 ***🔗
REST request:
Code: 204
Req: {<0.85554.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"572a6d16d74a9e88">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzExNkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3116@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>}],
         <<>>,80,2928}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3116@localhost\"}">>,
          role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3116@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-16 09:49:11.461 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3116@localhost' to='bob_add_and_remove_some_contacts_properly_3116@localhost/res1' id='push5e76bb078cd96fd4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_3116@localhost'/>
	</query>
</iq>



*** User 2023-11-16 09:49:11.520 ***🔗
REST request:
Code: 204
Req: {<0.85591.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ff5bab0f47285a55">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzExNkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3116@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>}],
         <<>>,80,4149}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3116@localhost\"}">>,
          role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3116@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-16 09:49:11.520 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3116@localhost' to='bob_add_and_remove_some_contacts_properly_3116@localhost/res1' id='pushe0e27b58e4b0694a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_3116@localhost'/>
	</query>
</iq>



*** User 2023-11-16 09:49:11.530 ***🔗
REST request:
Code: 200
Req: {<0.85623.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"8d3baed439c8cac9">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzExNkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3116@localhost\",\"kate_add_and_remove_some_contacts_properly_3116@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,3718}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3116@localhost\",\"kate_add_and_remove_some_contacts_properly_3116@localhost\"]}">>,
          role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3116@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-16 09:49:11.538 ***🔗
REST request:
Code: 200
Req: {<0.85642.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f3b694e623aacfc4">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzExNkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:49:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3116@localhost\"}]">>,
         229,2559}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,body => <<>>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3116@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2023-11-16 09:49:11.538 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3116@localhost' to='bob_add_and_remove_some_contacts_properly_3116@localhost/res1' id='pushb81f7ab0a4298731' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_3116@localhost'/>
	</query>
</iq>



*** User 2023-11-16 09:49:11.538 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:49:11.538 ***🔗
mike_add_and_remove_some_contacts_properly_3116@localhost/res1 in
</stream:stream>

*** User 2023-11-16 09:49:11.538 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:49:11.539 ***🔗
kate_add_and_remove_some_contacts_properly_3116@localhost/res1 in
</stream:stream>

*** User 2023-11-16 09:49:11.539 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:49:11.539 ***🔗
bob_add_and_remove_some_contacts_properly_3116@localhost/res1 in
</stream:stream>

*** User 2023-11-16 09:49:11.539 ***🔗
alice_add_and_remove_some_contacts_properly_3116@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:49:11.539 ***🔗
alice_add_and_remove_some_contacts_properly_3116@localhost/res1 in
</stream:stream>
*** CT 2023-11-16 09:49:11.541 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4899.html



=== Ended at 2023-11-16 09:49:11
=== successfully completed test case
=== === Returned value: ok