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

=== Config value:

    [{watchdog,<0.88658.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@459df0fd388f.2024-04-10_14.24.42/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_14.41.30/rest_client_suite.add_and_remove_some_contacts_properly.113412.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@459df0fd388f.2024-04-10_14.24.42/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_14.41.30/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_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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@459df0fd388f.2024-04-10_14.24.42"

=== Started at 2024-04-10 14:41:32


*** CT 2024-04-10 14:41:32.378 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4712.html

*** User 2024-04-10 14:41:32.402 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.402 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f2195a0bfa08d699' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 14:41:32.402 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.402 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2NABtYXR5Z3J5c2E=</auth>



*** User 2024-04-10 14:41:32.403 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 14:41:32.403 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.404 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5170e1bb4a323984' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3364@localhost'>

*** User 2024-04-10 14:41:32.404 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.404 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<iq type='set' id='ca3b0f328b87373ff3d62a32f5dd8a09'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 14:41:32.404 ***🔗
alicE_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq id='ca3b0f328b87373ff3d62a32f5dd8a09' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3364@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 14:41:32.404 ***🔗
alice_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<iq type='set' id='6f5188686809af04d9f101e1a393c690'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 14:41:32.405 ***🔗
alice_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3364@localhost/res1' id='6f5188686809af04d9f101e1a393c690' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 14:41:32.405 ***🔗
alice_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<presence/>



*** User 2024-04-10 14:41:32.407 ***🔗
alice_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3364@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3364@localhost/res1'/>



*** User 2024-04-10 14:41:32.407 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.407 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60b170073f5ead2f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 14:41:32.407 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.408 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMzNjQAbWFrcm9saWth</auth>



*** User 2024-04-10 14:41:32.408 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 14:41:32.409 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.409 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f2e83891bc8dc73' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3364@localhost'>

*** User 2024-04-10 14:41:32.409 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.409 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<iq type='set' id='c9940546fffb4706f86b935bd625c0e8'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 14:41:32.409 ***🔗
bOb_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq id='c9940546fffb4706f86b935bd625c0e8' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3364@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 14:41:32.409 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<iq type='set' id='fb949594ffc82a9ea73e30aed92a58b3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 14:41:32.410 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3364@localhost/res1' id='fb949594ffc82a9ea73e30aed92a58b3' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 14:41:32.410 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<presence/>



*** User 2024-04-10 14:41:32.412 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3364@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3364@localhost/res1'/>



*** User 2024-04-10 14:41:32.413 ***🔗
kate_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.413 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ed7fc59181847c1b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 14:41:32.413 ***🔗
kate_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.413 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzY0AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-10 14:41:32.414 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 14:41:32.414 ***🔗
kate_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.414 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac4c63811ccfff05' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3364@localhost'>

*** User 2024-04-10 14:41:32.414 ***🔗
kate_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.414 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<iq type='set' id='ac3fc021d1dac04f3f6749dbf712a391'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 14:41:32.415 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq id='ac3fc021d1dac04f3f6749dbf712a391' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3364@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 14:41:32.415 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<iq type='set' id='40d2c7d8dc3347ead95821294d999f32'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 14:41:32.415 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3364@localhost/res1' id='40d2c7d8dc3347ead95821294d999f32' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 14:41:32.415 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<presence/>



*** User 2024-04-10 14:41:32.417 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3364@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3364@localhost/res1'/>



*** User 2024-04-10 14:41:32.417 ***🔗
mike_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.418 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8c9c75f5ea566d9' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 14:41:32.418 ***🔗
mike_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.418 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzY0AG5pY25pZW1h</auth>



*** User 2024-04-10 14:41:32.419 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 14:41:32.419 ***🔗
mike_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.419 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='60a24b79c74d27d6' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3364@localhost'>

*** User 2024-04-10 14:41:32.419 ***🔗
mike_add_and_remove_some_contacts_properly_3364@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-10 14:41:32.420 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<iq type='set' id='4fdf3e9809fddb68a5839bfaa9d35d94'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 14:41:32.420 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq id='4fdf3e9809fddb68a5839bfaa9d35d94' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3364@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 14:41:32.420 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<iq type='set' id='654710ecc5d21fa32ab24b9e84a719c3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 14:41:32.420 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3364@localhost/res1' id='654710ecc5d21fa32ab24b9e84a719c3' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 14:41:32.420 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 out
<presence/>



*** User 2024-04-10 14:41:32.422 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3364@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3364@localhost/res1'/>



*** User 2024-04-10 14:41:32.432 ***🔗
REST request:
Code: 204
Req: {<0.88783.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"32c3d3df74544b73">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3364@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 14:41:31 GMT">>}],
         <<>>,80,4948}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3364@localhost\"}">>,
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3364@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-10 14:41:32.432 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3364@localhost' to='bob_add_and_remove_some_contacts_properly_3364@localhost/res1' id='pushd13c23153303f414' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3364@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-10 14:41:32.484 ***🔗
REST request:
Code: 204
Req: {<0.88825.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bf12ee40619f70f2">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3364@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 14:41:32 GMT">>}],
         <<>>,80,5025}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3364@localhost\"}">>,
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3364@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-10 14:41:32.484 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3364@localhost' to='bob_add_and_remove_some_contacts_properly_3364@localhost/res1' id='push54edced195492b3f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3364@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-10 14:41:32.494 ***🔗
REST request:
Code: 204
Req: {<0.88855.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"98cd0c473c16f94a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3364@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 14:41:32 GMT">>}],
         <<>>,80,5597}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3364@localhost\"}">>,
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3364@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-10 14:41:32.495 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3364@localhost' to='bob_add_and_remove_some_contacts_properly_3364@localhost/res1' id='push389e16446703e3c3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3364@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-10 14:41:32.506 ***🔗
REST request:
Code: 200
Req: {<0.88890.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a0690daa918536d4">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3364@localhost\",\"kate_add_and_remove_some_contacts_properly_3364@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 14:41:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,6846}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3364@localhost\",\"kate_add_and_remove_some_contacts_properly_3364@localhost\"]}">>,
          method => <<"DELETE">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3364@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-10 14:41:32.515 ***🔗
REST request:
Code: 200
Req: {<0.88915.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f4a26c5bdf732585">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 14:41:32 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3364@localhost\"}]">>,
         229,3942}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3364@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-10 14:41:32.515 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3364@localhost' to='bob_add_and_remove_some_contacts_properly_3364@localhost/res1' id='pushead13ccd4c9ef1c6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3364@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-10 14:41:32.515 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 out
</stream:stream>

*** User 2024-04-10 14:41:32.515 ***🔗
mike_add_and_remove_some_contacts_properly_3364@localhost/res1 in
</stream:stream>

*** User 2024-04-10 14:41:32.515 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 out
</stream:stream>

*** User 2024-04-10 14:41:32.515 ***🔗
kate_add_and_remove_some_contacts_properly_3364@localhost/res1 in
</stream:stream>

*** User 2024-04-10 14:41:32.515 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 out
</stream:stream>

*** User 2024-04-10 14:41:32.516 ***🔗
bob_add_and_remove_some_contacts_properly_3364@localhost/res1 in
</stream:stream>

*** User 2024-04-10 14:41:32.516 ***🔗
alice_add_and_remove_some_contacts_properly_3364@localhost/res1 out
</stream:stream>

*** User 2024-04-10 14:41:32.516 ***🔗
alice_add_and_remove_some_contacts_properly_3364@localhost/res1 in
</stream:stream>
*** CT 2024-04-10 14:41:32.518 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4712.html



=== Ended at 2024-04-10 14:41:32
=== successfully completed test case
=== === Returned value: ok