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

=== Config value:

    [{watchdog,<0.80104.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.20.06/rest_client_suite.add_and_remove_some_contacts_properly.113924.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@fe524ba9ae35.2024-03-11_09.05.30/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.20.06/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        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_bosh =>
            #{backend => cets,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@fe524ba9ae35.2024-03-11_09.05.30"

=== Started at 2024-03-11 09:20:10


*** CT 2024-03-11 09:20:10.768 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4473.html

*** User 2024-03-11 09:20:10.799 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.800 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4a8d402ab1fecc7e' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 09:20:10.801 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.801 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkwNQBtYXR5Z3J5c2E=</auth>



*** User 2024-03-11 09:20:10.804 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 09:20:10.804 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.805 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b013834a465709bf' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2905@localhost'>

*** User 2024-03-11 09:20:10.805 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.805 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<iq type='set' id='cd4120a24e7f88c877a3d1bddb12d4e0'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 09:20:10.806 ***🔗
alicE_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq id='cd4120a24e7f88c877a3d1bddb12d4e0' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_2905@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 09:20:10.806 ***🔗
alice_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<iq type='set' id='b44713c1c1dc982124881dd3c6b61003'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:10.816 ***🔗
alice_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_2905@localhost/res1' id='b44713c1c1dc982124881dd3c6b61003' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:10.816 ***🔗
alice_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<presence/>



*** User 2024-03-11 09:20:10.839 ***🔗
alice_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2905@localhost/res1' to='alice_add_and_remove_some_contacts_properly_2905@localhost/res1'/>



*** User 2024-03-11 09:20:10.842 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.845 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1bdfb465f48d109d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 09:20:10.845 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.845 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI5MDUAbWFrcm9saWth</auth>



*** User 2024-03-11 09:20:10.848 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 09:20:10.848 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.852 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='89817e6509e2c640' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2905@localhost'>

*** User 2024-03-11 09:20:10.852 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.852 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<iq type='set' id='1ff757b4593c4eb18799b8b192615189'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 09:20:10.860 ***🔗
bOb_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq id='1ff757b4593c4eb18799b8b192615189' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_2905@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 09:20:10.860 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<iq type='set' id='948245a060478da151d871e7d806b1dd'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:10.861 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_2905@localhost/res1' id='948245a060478da151d871e7d806b1dd' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:10.862 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<presence/>



*** User 2024-03-11 09:20:10.883 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2905@localhost/res1' to='bob_add_and_remove_some_contacts_properly_2905@localhost/res1'/>



*** User 2024-03-11 09:20:10.886 ***🔗
kate_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.888 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee719e45f013d50d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 09:20:10.888 ***🔗
kate_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.889 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTA1AG1ha3Jvd2U7cA==</auth>



*** User 2024-03-11 09:20:10.890 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 09:20:10.890 ***🔗
kate_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.891 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d278c72fb3dfa17a' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2905@localhost'>

*** User 2024-03-11 09:20:10.891 ***🔗
kate_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.891 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<iq type='set' id='074b55762e52bf65829f68d1bfcef0eb'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 09:20:10.891 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq id='074b55762e52bf65829f68d1bfcef0eb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_2905@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 09:20:10.891 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<iq type='set' id='cfedd48d44d8681b10f4d9ec34f3de38'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:10.906 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_2905@localhost/res1' id='cfedd48d44d8681b10f4d9ec34f3de38' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:10.906 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<presence/>



*** User 2024-03-11 09:20:10.924 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2905@localhost/res1' to='kate_add_and_remove_some_contacts_properly_2905@localhost/res1'/>



*** User 2024-03-11 09:20:10.924 ***🔗
mike_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.927 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='91d3298cac80dc5f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 09:20:10.927 ***🔗
mike_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.927 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTA1AG5pY25pZW1h</auth>



*** User 2024-03-11 09:20:10.948 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 09:20:10.948 ***🔗
mike_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.949 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c457131572d306d9' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2905@localhost'>

*** User 2024-03-11 09:20:10.950 ***🔗
mike_add_and_remove_some_contacts_properly_2905@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-11 09:20:10.950 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<iq type='set' id='29c4c396e27ee76271cb7bc3ab557c59'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 09:20:10.953 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq id='29c4c396e27ee76271cb7bc3ab557c59' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_2905@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 09:20:10.953 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<iq type='set' id='f1f003c2f1484d1f3c83ec6d75c39806'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:10.969 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_2905@localhost/res1' id='f1f003c2f1484d1f3c83ec6d75c39806' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 09:20:10.969 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 out
<presence/>



*** User 2024-03-11 09:20:11.001 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2905@localhost/res1' to='mike_add_and_remove_some_contacts_properly_2905@localhost/res1'/>



*** User 2024-03-11 09:20:11.089 ***🔗
REST request:
Code: 204
Req: {<0.80265.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dee28a85422c8fe3">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkwNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2905@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:20:10 GMT">>}],
         <<>>,80,53916}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2905@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2905@localhost\"}">>,
          role => client,return_headers => true}


*** User 2024-03-11 09:20:11.090 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2905@localhost' to='bob_add_and_remove_some_contacts_properly_2905@localhost/res1' id='push4241b714eeb68d60' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2905@localhost'/>
	</query>
</iq>



*** User 2024-03-11 09:20:11.143 ***🔗
REST request:
Code: 204
Req: {<0.80313.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ef4506d4b8b36144">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkwNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2905@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:20:10 GMT">>}],
         <<>>,80,29267}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2905@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2905@localhost\"}">>,
          role => client,return_headers => true}


*** User 2024-03-11 09:20:11.143 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2905@localhost' to='bob_add_and_remove_some_contacts_properly_2905@localhost/res1' id='pushd3062b64bf2fadad' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2905@localhost'/>
	</query>
</iq>



*** User 2024-03-11 09:20:11.178 ***🔗
REST request:
Code: 204
Req: {<0.80346.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"74f5cbd6b792b4e6">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkwNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2905@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:20:10 GMT">>}],
         <<>>,80,15723}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2905@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2905@localhost\"}">>,
          role => client,return_headers => true}


*** User 2024-03-11 09:20:11.179 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2905@localhost' to='bob_add_and_remove_some_contacts_properly_2905@localhost/res1' id='push9b61d9fc4c73b8d8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2905@localhost'/>
	</query>
</iq>



*** User 2024-03-11 09:20:11.215 ***🔗
REST request:
Code: 200
Req: {<0.80364.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f6bc437303bdd10b">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkwNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2905@localhost\",\"kate_add_and_remove_some_contacts_properly_2905@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:20:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,8462}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2905@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2905@localhost\",\"kate_add_and_remove_some_contacts_properly_2905@localhost\"]}">>,
          role => client,return_headers => true}


*** User 2024-03-11 09:20:11.243 ***🔗
REST request:
Code: 200
Req: {<0.80376.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f0f4faca8b64d4de">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjkwNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 09:20:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2905@localhost\"}]">>,
         229,10945}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2905@localhost">>,
               <<"makrolika">>},
          body => <<>>,role => client,return_headers => true}


*** User 2024-03-11 09:20:11.244 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2905@localhost' to='bob_add_and_remove_some_contacts_properly_2905@localhost/res1' id='push708d3a5d7474fdbf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2905@localhost'/>
	</query>
</iq>



*** User 2024-03-11 09:20:11.244 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 out
</stream:stream>

*** User 2024-03-11 09:20:11.245 ***🔗
mike_add_and_remove_some_contacts_properly_2905@localhost/res1 in
</stream:stream>

*** User 2024-03-11 09:20:11.245 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 out
</stream:stream>

*** User 2024-03-11 09:20:11.248 ***🔗
kate_add_and_remove_some_contacts_properly_2905@localhost/res1 in
</stream:stream>

*** User 2024-03-11 09:20:11.248 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 out
</stream:stream>

*** User 2024-03-11 09:20:11.249 ***🔗
bob_add_and_remove_some_contacts_properly_2905@localhost/res1 in
</stream:stream>

*** User 2024-03-11 09:20:11.249 ***🔗
alice_add_and_remove_some_contacts_properly_2905@localhost/res1 out
</stream:stream>

*** User 2024-03-11 09:20:11.249 ***🔗
alice_add_and_remove_some_contacts_properly_2905@localhost/res1 in
</stream:stream>
*** CT 2024-03-11 09:20:11.262 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4473.html



=== Ended at 2024-03-11 09:20:11
=== successfully completed test case
=== === Returned value: ok