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

=== Config value:

    [{watchdog,<0.89321.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"mysql_redis"},
     {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@de34115c687f.2024-04-10_12.44.09/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.58.39/rest_client_suite.add_and_remove_some_contacts_properly.177923.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@de34115c687f.2024-04-10_12.44.09/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.58.39/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,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,buffer_max => 100,ack_freq => 1,
              resume_timeout => 600},
        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@de34115c687f.2024-04-10_12.44.09"

=== Started at 2024-04-10 12:58:41


*** CT 2024-04-10 12:58:41.467 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4739.html

*** User 2024-04-10 12:58:41.482 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@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 12:58:41.482 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1d97e7a1a9b55566' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 12:58:41.482 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@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 12:58:41.483 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNABtYXR5Z3J5c2E=</auth>



*** User 2024-04-10 12:58:41.483 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 12:58:41.483 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@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 12:58:41.483 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b316edccfc6445f' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3234@localhost'>

*** User 2024-04-10 12:58:41.483 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@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 12:58:41.484 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='834359f5108452469862100406b4d9ce'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 12:58:41.484 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq id='834359f5108452469862100406b4d9ce' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3234@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 12:58:41.484 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='c1271c18aad6d30a60eeee0733d4a230'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:41.485 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3234@localhost/res1' id='c1271c18aad6d30a60eeee0733d4a230' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:41.485 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<presence/>



*** User 2024-04-10 12:58:41.486 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3234@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3234@localhost/res1'/>



*** User 2024-04-10 12:58:41.487 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@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 12:58:41.487 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ea2f42caf934508d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 12:58:41.487 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@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 12:58:41.487 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMyMzQAbWFrcm9saWth</auth>



*** User 2024-04-10 12:58:41.488 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 12:58:41.488 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@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 12:58:41.488 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7bb8470620f64021' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3234@localhost'>

*** User 2024-04-10 12:58:41.488 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@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 12:58:41.488 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='23d2a6d1ea9a1142ad802fa42cd7bbb1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 12:58:41.489 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq id='23d2a6d1ea9a1142ad802fa42cd7bbb1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3234@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 12:58:41.489 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='245464dcd108de882826cf3f02d5de43'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:41.490 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='245464dcd108de882826cf3f02d5de43' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:41.490 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<presence/>



*** User 2024-04-10 12:58:41.492 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1'/>



*** User 2024-04-10 12:58:41.492 ***🔗
kate_add_and_remove_some_contacts_properly_3234@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 12:58:41.493 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2fa34b2122157a9b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 12:58:41.493 ***🔗
kate_add_and_remove_some_contacts_properly_3234@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 12:58:41.493 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjM0AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-10 12:58:41.494 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 12:58:41.494 ***🔗
kate_add_and_remove_some_contacts_properly_3234@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 12:58:41.495 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4990810fc07fae03' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3234@localhost'>

*** User 2024-04-10 12:58:41.495 ***🔗
kate_add_and_remove_some_contacts_properly_3234@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 12:58:41.495 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='309cd82396ba5216f133bc79c9aebff2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 12:58:41.495 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq id='309cd82396ba5216f133bc79c9aebff2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3234@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 12:58:41.495 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='1c9a18c23654a01175ffcf77fa751f6f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:41.496 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3234@localhost/res1' id='1c9a18c23654a01175ffcf77fa751f6f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:41.496 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<presence/>



*** User 2024-04-10 12:58:41.498 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3234@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3234@localhost/res1'/>



*** User 2024-04-10 12:58:41.498 ***🔗
mike_add_and_remove_some_contacts_properly_3234@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 12:58:41.499 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f33dcff675453ea' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 12:58:41.499 ***🔗
mike_add_and_remove_some_contacts_properly_3234@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 12:58:41.499 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjM0AG5pY25pZW1h</auth>



*** User 2024-04-10 12:58:41.500 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 12:58:41.500 ***🔗
mike_add_and_remove_some_contacts_properly_3234@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 12:58:41.500 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4cf2cea481a5fb68' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3234@localhost'>

*** User 2024-04-10 12:58:41.500 ***🔗
mike_add_and_remove_some_contacts_properly_3234@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 12:58:41.500 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='6e62b50c2d854618165bb06c2001845a'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 12:58:41.501 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq id='6e62b50c2d854618165bb06c2001845a' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3234@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 12:58:41.501 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='323663313294c8206fd69eaa8941907a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:41.501 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3234@localhost/res1' id='323663313294c8206fd69eaa8941907a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 12:58:41.502 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<presence/>



*** User 2024-04-10 12:58:41.504 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3234@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3234@localhost/res1'/>



*** User 2024-04-10 12:58:41.513 ***🔗
REST request:
Code: 204
Req: {<0.89446.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7de06929727d153a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3234@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:40 GMT">>}],
         <<>>,80,4524}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3234@localhost\"}">>,
          return_headers => true}


*** User 2024-04-10 12:58:41.513 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3234@localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='push498f1eabb5e04acf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3234@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-10 12:58:41.568 ***🔗
REST request:
Code: 204
Req: {<0.89488.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b4fbd0273202863b">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3234@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:40 GMT">>}],
         <<>>,80,50650}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3234@localhost\"}">>,
          return_headers => true}


*** User 2024-04-10 12:58:41.569 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3234@localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='pushecdddff0131381d7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3234@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-10 12:58:41.578 ***🔗
REST request:
Code: 204
Req: {<0.89522.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"64518b95028cdb5a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3234@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:40 GMT">>}],
         <<>>,80,4361}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3234@localhost\"}">>,
          return_headers => true}


*** User 2024-04-10 12:58:41.578 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3234@localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='push426d8d3653853ec0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3234@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-10 12:58:41.589 ***🔗
REST request:
Code: 200
Req: {<0.89563.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"fb71682a01f251f7">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3234@localhost\",\"kate_add_and_remove_some_contacts_properly_3234@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:41 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,4924}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          method => <<"DELETE">>,role => client,
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3234@localhost\",\"kate_add_and_remove_some_contacts_properly_3234@localhost\"]}">>,
          return_headers => true}


*** User 2024-04-10 12:58:41.596 ***🔗
REST request:
Code: 200
Req: {<0.89578.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7ee400b9a1c147d4">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 12:58:41 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3234@localhost\"}]">>,
         229,2350}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          method => <<"GET">>,role => client,body => <<>>,
          return_headers => true}


*** User 2024-04-10 12:58:41.596 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3234@localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='pushbb6a7e87a0d85e5d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3234@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-10 12:58:41.596 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
</stream:stream>

*** User 2024-04-10 12:58:41.596 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
</stream:stream>

*** User 2024-04-10 12:58:41.596 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
</stream:stream>

*** User 2024-04-10 12:58:41.597 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
</stream:stream>

*** User 2024-04-10 12:58:41.597 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 out
</stream:stream>

*** User 2024-04-10 12:58:41.597 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
</stream:stream>

*** User 2024-04-10 12:58:41.597 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 out
</stream:stream>

*** User 2024-04-10 12:58:41.598 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 in
</stream:stream>
*** CT 2024-04-10 12:58:41.599 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4739.html



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