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

=== Config value:

    [{watchdog,<0.83314.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"pgsql_cets"},
     {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@e06ff82a20fb.2024-03-21_07.45.38/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_08.01.42/rest_client_suite.add_and_remove_some_contacts_properly.198018.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@e06ff82a20fb.2024-03-21_07.45.38/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_08.01.42/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_amp => #{},
        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_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              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 => cets,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@e06ff82a20fb.2024-03-21_07.45.38"

=== Started at 2024-03-21 08:01:44


*** CT 2024-03-21 08:01:44.919 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5659.html

*** User 2024-03-21 08:01:44.937 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.937 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c807573d11af3722' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 08:01:44.937 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.937 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzMwBtYXR5Z3J5c2E=</auth>



*** User 2024-03-21 08:01:44.938 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 08:01:44.938 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.938 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1a93e57d6b3b42e7' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3233@localhost'>

*** User 2024-03-21 08:01:44.938 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.939 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<iq type='set' id='7fa0fd73e49422d65e429b715331ef81'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 08:01:44.939 ***🔗
alicE_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq id='7fa0fd73e49422d65e429b715331ef81' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3233@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 08:01:44.939 ***🔗
alice_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<iq type='set' id='b07e544e36ee13f58a0078c54beca8c9'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:44.940 ***🔗
alice_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3233@localhost/res1' id='b07e544e36ee13f58a0078c54beca8c9' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:44.940 ***🔗
alice_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<presence/>



*** User 2024-03-21 08:01:44.941 ***🔗
alice_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3233@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3233@localhost/res1'/>



*** User 2024-03-21 08:01:44.942 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.942 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fe19799514ac6a41' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 08:01:44.942 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.942 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMyMzMAbWFrcm9saWth</auth>



*** User 2024-03-21 08:01:44.943 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 08:01:44.943 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.944 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ac6fa1a677d9380a' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3233@localhost'>

*** User 2024-03-21 08:01:44.944 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.944 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<iq type='set' id='f9a731be9ca8b37738da93f16434f957'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 08:01:44.944 ***🔗
bOb_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq id='f9a731be9ca8b37738da93f16434f957' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3233@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 08:01:44.945 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<iq type='set' id='c1755451d22cdb957c3e0aecb8629894'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:44.945 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3233@localhost/res1' id='c1755451d22cdb957c3e0aecb8629894' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:44.945 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<presence/>



*** User 2024-03-21 08:01:44.947 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3233@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3233@localhost/res1'/>



*** User 2024-03-21 08:01:44.948 ***🔗
kate_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.948 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='98941e0b679e5356' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 08:01:44.949 ***🔗
kate_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.949 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjMzAG1ha3Jvd2U7cA==</auth>



*** User 2024-03-21 08:01:44.950 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 08:01:44.950 ***🔗
kate_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.951 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bc52ec3bf8ab793e' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3233@localhost'>

*** User 2024-03-21 08:01:44.951 ***🔗
kate_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.951 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<iq type='set' id='17737455f625a70f1b17aac673d1fa17'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 08:01:44.951 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq id='17737455f625a70f1b17aac673d1fa17' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3233@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 08:01:44.951 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<iq type='set' id='d237231118783080bd15d9358ad8c76c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:44.953 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3233@localhost/res1' id='d237231118783080bd15d9358ad8c76c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:44.953 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<presence/>



*** User 2024-03-21 08:01:44.966 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3233@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3233@localhost/res1'/>



*** User 2024-03-21 08:01:44.967 ***🔗
mike_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.968 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='82ac77dcb5b7747f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 08:01:44.968 ***🔗
mike_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.968 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjMzAG5pY25pZW1h</auth>



*** User 2024-03-21 08:01:44.970 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 08:01:44.970 ***🔗
mike_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.976 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ae11b39f99507d48' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3233@localhost'>

*** User 2024-03-21 08:01:44.976 ***🔗
mike_add_and_remove_some_contacts_properly_3233@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-03-21 08:01:44.977 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<iq type='set' id='bc2f7c5d8c3eed5d3e531f8981bce164'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 08:01:44.979 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq id='bc2f7c5d8c3eed5d3e531f8981bce164' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3233@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 08:01:44.980 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<iq type='set' id='f41580841be440a056fcbfff3c07ee15'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:44.985 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3233@localhost/res1' id='f41580841be440a056fcbfff3c07ee15' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 08:01:44.985 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 out
<presence/>



*** User 2024-03-21 08:01:45.001 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3233@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3233@localhost/res1'/>



*** User 2024-03-21 08:01:45.020 ***🔗
REST request:
Code: 204
Req: {<0.83456.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c95f446f1b26d147">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3233@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:44 GMT">>}],
         <<>>,80,3859}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3233@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3233@localhost\"}">>,
          return_headers => true}


*** User 2024-03-21 08:01:45.020 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3233@localhost' to='bob_add_and_remove_some_contacts_properly_3233@localhost/res1' id='push1547658a9902d269' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3233@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 08:01:45.031 ***🔗
REST request:
Code: 204
Req: {<0.83489.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ca0503ef2b7929ec">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3233@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:44 GMT">>}],
         <<>>,80,3666}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3233@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3233@localhost\"}">>,
          return_headers => true}


*** User 2024-03-21 08:01:45.031 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3233@localhost' to='bob_add_and_remove_some_contacts_properly_3233@localhost/res1' id='push8d0396dfe0e512a5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3233@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 08:01:45.042 ***🔗
REST request:
Code: 204
Req: {<0.83522.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d6fb22845b2472c5">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3233@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:44 GMT">>}],
         <<>>,80,2751}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3233@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3233@localhost\"}">>,
          return_headers => true}


*** User 2024-03-21 08:01:45.042 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3233@localhost' to='bob_add_and_remove_some_contacts_properly_3233@localhost/res1' id='push353d8977f76ac0a3' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3233@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 08:01:45.104 ***🔗
REST request:
Code: 200
Req: {<0.83542.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4e2b717262792827">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3233@localhost\",\"kate_add_and_remove_some_contacts_properly_3233@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,56182}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3233@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3233@localhost\",\"kate_add_and_remove_some_contacts_properly_3233@localhost\"]}">>,
          return_headers => true}


*** User 2024-03-21 08:01:45.113 ***🔗
REST request:
Code: 200
Req: {<0.83574.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dc12d0853262425f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzM0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 08:01:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3233@localhost\"}]">>,
         229,2491}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3233@localhost">>,
               <<"makrolika">>},
          body => <<>>,return_headers => true}


*** User 2024-03-21 08:01:45.113 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3233@localhost' to='bob_add_and_remove_some_contacts_properly_3233@localhost/res1' id='push967a95364c4cc3e0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3233@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 08:01:45.114 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 out
</stream:stream>

*** User 2024-03-21 08:01:45.114 ***🔗
mike_add_and_remove_some_contacts_properly_3233@localhost/res1 in
</stream:stream>

*** User 2024-03-21 08:01:45.114 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 out
</stream:stream>

*** User 2024-03-21 08:01:45.114 ***🔗
kate_add_and_remove_some_contacts_properly_3233@localhost/res1 in
</stream:stream>

*** User 2024-03-21 08:01:45.115 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 out
</stream:stream>

*** User 2024-03-21 08:01:45.115 ***🔗
bob_add_and_remove_some_contacts_properly_3233@localhost/res1 in
</stream:stream>

*** User 2024-03-21 08:01:45.115 ***🔗
alice_add_and_remove_some_contacts_properly_3233@localhost/res1 out
</stream:stream>

*** User 2024-03-21 08:01:45.115 ***🔗
alice_add_and_remove_some_contacts_properly_3233@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 08:01:45.118 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5659.html



=== Ended at 2024-03-21 08:01:45
=== successfully completed test case
=== === Returned value: ok