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

=== Config value:

    [{watchdog,<0.19658.2>},
     {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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.rest_client_SUITE.logs/run.2023-11-16_09.20.52/rest_client_suite.add_and_remove_some_contacts_properly.166147.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@fca70da71937.2023-11-16_09.05.55/big_tests.tests.rest_client_SUITE.logs/run.2023-11-16_09.20.52/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}}]

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

=== Started at 2023-11-16 09:20:54


*** CT 2023-11-16 09:20:54.734 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4781.html

*** User 2023-11-16 09:20:54.773 ***🔗
alicE_add_and_remove_some_contacts_properly_3180@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:20:54.773 ***🔗
alicE_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='51bbdda5f39f9f25' from='localhost' version='1.0' xml:lang='en'>

*** User 2023-11-16 09:20:54.773 ***🔗
alicE_add_and_remove_some_contacts_properly_3180@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:20:54.774 ***🔗
alicE_add_and_remove_some_contacts_properly_3180@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE4MABtYXR5Z3J5c2E=</auth>



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



*** User 2023-11-16 09:20:54.775 ***🔗
alicE_add_and_remove_some_contacts_properly_3180@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:20:54.775 ***🔗
alicE_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c9a4a60f238462be' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3180@localhost'>

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



*** User 2023-11-16 09:20:54.776 ***🔗
alicE_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq id='d3cb6746f53dd448050468f2783fffaf' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3180@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:20:54.776 ***🔗
alice_add_and_remove_some_contacts_properly_3180@localhost/res1 out
<iq type='set' id='d3df66ac9ef79cc05fcb43bbd926b72a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



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



*** User 2023-11-16 09:20:54.777 ***🔗
alice_add_and_remove_some_contacts_properly_3180@localhost/res1 out
<presence/>



*** User 2023-11-16 09:20:54.779 ***🔗
alice_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3180@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3180@localhost/res1'/>



*** User 2023-11-16 09:20:54.780 ***🔗
bOb_add_and_remove_some_contacts_properly_3180@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:20:54.781 ***🔗
bOb_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0f8fef12da10dd34' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2023-11-16 09:20:54.782 ***🔗
bOb_add_and_remove_some_contacts_properly_3180@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:20:54.783 ***🔗
bOb_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7eb4c9cadec450b7' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3180@localhost'>

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



*** User 2023-11-16 09:20:54.783 ***🔗
bOb_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq id='368ceaf7892025117a63b7581de1876a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3180@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:20:54.783 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 out
<iq type='set' id='89f47f69c6bf125b82fb96f459950b51'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:20:54.784 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3180@localhost/res1' id='89f47f69c6bf125b82fb96f459950b51' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:20:54.784 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 out
<presence/>



*** User 2023-11-16 09:20:54.786 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3180@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3180@localhost/res1'/>



*** User 2023-11-16 09:20:54.787 ***🔗
kate_add_and_remove_some_contacts_properly_3180@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:20:54.787 ***🔗
kate_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='079285fda5e32e8d' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2023-11-16 09:20:54.790 ***🔗
kate_add_and_remove_some_contacts_properly_3180@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:20:54.791 ***🔗
kate_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='40e0970bd23cc462' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3180@localhost'>

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



*** User 2023-11-16 09:20:54.792 ***🔗
kate_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq id='42df8f25515e974a4d56da94916b70fb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3180@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:20:54.792 ***🔗
kate_add_and_remove_some_contacts_properly_3180@localhost/res1 out
<iq type='set' id='2a312d8f2556c654d13d477aa30a0915'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:20:54.793 ***🔗
kate_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3180@localhost/res1' id='2a312d8f2556c654d13d477aa30a0915' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:20:54.793 ***🔗
kate_add_and_remove_some_contacts_properly_3180@localhost/res1 out
<presence/>



*** User 2023-11-16 09:20:54.794 ***🔗
kate_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3180@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3180@localhost/res1'/>



*** User 2023-11-16 09:20:54.795 ***🔗
mike_add_and_remove_some_contacts_properly_3180@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:20:54.795 ***🔗
mike_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='34e415fa69a0a814' from='localhost' version='1.0' xml:lang='en'>

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



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



*** User 2023-11-16 09:20:54.797 ***🔗
mike_add_and_remove_some_contacts_properly_3180@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:20:54.797 ***🔗
mike_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ee960faadbf2477b' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3180@localhost'>

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



*** User 2023-11-16 09:20:54.798 ***🔗
mike_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq id='c72ef5fcb371cdfd2b999fe7c63bb2b0' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3180@localhost/res1</jid>
	</bind>
</iq>



*** User 2023-11-16 09:20:54.798 ***🔗
mike_add_and_remove_some_contacts_properly_3180@localhost/res1 out
<iq type='set' id='862bbb60c0895d690bb9bce31813f33b'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:20:54.799 ***🔗
mike_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3180@localhost/res1' id='862bbb60c0895d690bb9bce31813f33b' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-11-16 09:20:54.799 ***🔗
mike_add_and_remove_some_contacts_properly_3180@localhost/res1 out
<presence/>



*** User 2023-11-16 09:20:54.801 ***🔗
mike_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3180@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3180@localhost/res1'/>



*** User 2023-11-16 09:20:54.816 ***🔗
REST request:
Code: 204
Req: {<0.19765.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e384a451c7a172d1">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE4MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3180@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:20:53 GMT">>}],
         <<>>,80,8471}
Params: #{body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3180@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3180@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-16 09:20:54.816 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3180@localhost' to='bob_add_and_remove_some_contacts_properly_3180@localhost/res1' id='push43a271abbf5db058' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_3180@localhost'/>
	</query>
</iq>



*** User 2023-11-16 09:20:54.834 ***🔗
REST request:
Code: 204
Req: {<0.19807.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7c39b557096bb0e5">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE4MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3180@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:20:54 GMT">>}],
         <<>>,80,10632}
Params: #{body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3180@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3180@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-16 09:20:54.834 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3180@localhost' to='bob_add_and_remove_some_contacts_properly_3180@localhost/res1' id='push8de52567c55350cf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_3180@localhost'/>
	</query>
</iq>



*** User 2023-11-16 09:20:54.846 ***🔗
REST request:
Code: 204
Req: {<0.19851.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c9d459650a90340a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE4MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3180@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:20:54 GMT">>}],
         <<>>,80,5646}
Params: #{body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3180@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3180@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-16 09:20:54.846 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3180@localhost' to='bob_add_and_remove_some_contacts_properly_3180@localhost/res1' id='pushed747ee5df7f7685' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_3180@localhost'/>
	</query>
</iq>



*** User 2023-11-16 09:20:54.869 ***🔗
REST request:
Code: 200
Req: {<0.19869.2>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a74123030d329948">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE4MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3180@localhost\",\"kate_add_and_remove_some_contacts_properly_3180@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:20:54 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,14958}
Params: #{body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3180@localhost\",\"kate_add_and_remove_some_contacts_properly_3180@localhost\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3180@localhost">>,
               <<"makrolika">>},
          method => <<"DELETE">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-16 09:20:54.925 ***🔗
REST request:
Code: 200
Req: {<0.19902.2>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1d5e702ac7a65e3d">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE4MEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 16 Nov 2023 09:20:54 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3180@localhost\",\"ask\":\"none\"}]">>,
         229,49087}
Params: #{body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3180@localhost">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2023-11-16 09:20:54.925 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3180@localhost' to='bob_add_and_remove_some_contacts_properly_3180@localhost/res1' id='push5ecf3c03f21af669' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_3180@localhost'/>
	</query>
</iq>



*** User 2023-11-16 09:20:54.925 ***🔗
mike_add_and_remove_some_contacts_properly_3180@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:20:54.926 ***🔗
mike_add_and_remove_some_contacts_properly_3180@localhost/res1 in
</stream:stream>

*** User 2023-11-16 09:20:54.926 ***🔗
kate_add_and_remove_some_contacts_properly_3180@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:20:54.926 ***🔗
kate_add_and_remove_some_contacts_properly_3180@localhost/res1 in
</stream:stream>

*** User 2023-11-16 09:20:54.926 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:20:54.927 ***🔗
bob_add_and_remove_some_contacts_properly_3180@localhost/res1 in
</stream:stream>

*** User 2023-11-16 09:20:54.927 ***🔗
alice_add_and_remove_some_contacts_properly_3180@localhost/res1 out
</stream:stream>

*** User 2023-11-16 09:20:54.927 ***🔗
alice_add_and_remove_some_contacts_properly_3180@localhost/res1 in
</stream:stream>
*** CT 2023-11-16 09:20:54.930 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4781.html



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