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

=== Config value:

    [{watchdog,<0.89232.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@2ccd1e5251fa.2024-04-25_16.16.50/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_16.32.04/rest_client_suite.add_and_remove_some_contacts_properly.264578.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@2ccd1e5251fa.2024-04-25_16.16.50/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_16.32.04/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_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_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@2ccd1e5251fa.2024-04-25_16.16.50"

=== Started at 2024-04-25 16:32:05


*** CT 2024-04-25 16:32:05.950 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4723.html

*** User 2024-04-25 16:32:05.965 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.965 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1048c9087d77f92e' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:32:05.965 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.965 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIxOABtYXR5Z3J5c2E=</auth>



*** User 2024-04-25 16:32:05.966 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:32:05.966 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.966 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4e92847eafba837f' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3218@localhost'>

*** User 2024-04-25 16:32:05.966 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.966 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<iq type='set' id='f4dd75d49f7ee726a52248108ab59517'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:32:05.966 ***🔗
alicE_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq id='f4dd75d49f7ee726a52248108ab59517' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3218@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:32:05.967 ***🔗
alice_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<iq type='set' id='af97a13a2ab9fd14e492dcbef7813961'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:32:05.967 ***🔗
alice_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3218@localhost/res1' id='af97a13a2ab9fd14e492dcbef7813961' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:32:05.967 ***🔗
alice_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<presence/>



*** User 2024-04-25 16:32:05.969 ***🔗
alice_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3218@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3218@localhost/res1'/>



*** User 2024-04-25 16:32:05.969 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.970 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='65f2215233630308' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:32:05.970 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.970 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMyMTgAbWFrcm9saWth</auth>



*** User 2024-04-25 16:32:05.972 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:32:05.972 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.972 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c8d893e2e3ad5224' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3218@localhost'>

*** User 2024-04-25 16:32:05.972 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.972 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<iq type='set' id='9f20f2bce2b0fb1946721574269a990c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:32:05.973 ***🔗
bOb_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq id='9f20f2bce2b0fb1946721574269a990c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3218@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:32:05.973 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<iq type='set' id='a6053f496ea9750909db3a3e454aa9a5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:32:05.973 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3218@localhost/res1' id='a6053f496ea9750909db3a3e454aa9a5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:32:05.973 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<presence/>



*** User 2024-04-25 16:32:05.975 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3218@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3218@localhost/res1'/>



*** User 2024-04-25 16:32:05.975 ***🔗
kate_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.976 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='32e4b1885e585245' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:32:05.976 ***🔗
kate_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.976 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjE4AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-25 16:32:05.977 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:32:05.977 ***🔗
kate_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.977 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e7e3724b67afd240' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3218@localhost'>

*** User 2024-04-25 16:32:05.977 ***🔗
kate_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.977 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<iq type='set' id='4967c8c7e226f5ab40e02d43d438e33c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:32:05.977 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq id='4967c8c7e226f5ab40e02d43d438e33c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3218@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:32:05.977 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<iq type='set' id='b8409ba029a0f96b23384d195d24eef6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:32:05.978 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3218@localhost/res1' id='b8409ba029a0f96b23384d195d24eef6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:32:05.978 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<presence/>



*** User 2024-04-25 16:32:05.980 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3218@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3218@localhost/res1'/>



*** User 2024-04-25 16:32:05.981 ***🔗
mike_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.990 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6e8a7761ab8f111' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:32:05.990 ***🔗
mike_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.990 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjE4AG5pY25pZW1h</auth>



*** User 2024-04-25 16:32:05.991 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:32:05.991 ***🔗
mike_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.991 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4b122cdecb811bb4' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3218@localhost'>

*** User 2024-04-25 16:32:05.991 ***🔗
mike_add_and_remove_some_contacts_properly_3218@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-25 16:32:05.991 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<iq type='set' id='a1710aae32c4ee1a08437eb90342579c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:32:05.991 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq id='a1710aae32c4ee1a08437eb90342579c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3218@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:32:05.991 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<iq type='set' id='5dcf073ed765536a914dfdeeeaf72f60'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:32:05.992 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3218@localhost/res1' id='5dcf073ed765536a914dfdeeeaf72f60' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:32:05.992 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 out
<presence/>



*** User 2024-04-25 16:32:05.994 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3218@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3218@localhost/res1'/>



*** User 2024-04-25 16:32:06.003 ***🔗
REST request:
Code: 204
Req: {<0.89365.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9962b473fb0810b4">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3218@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:32:05 GMT">>}],
         <<>>,80,5034}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3218@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3218@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-25 16:32:06.003 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3218@localhost' to='bob_add_and_remove_some_contacts_properly_3218@localhost/res1' id='pushb5b564323870c54f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3218@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 16:32:06.011 ***🔗
REST request:
Code: 204
Req: {<0.89405.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"11f5fd795dc994cb">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3218@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:32:05 GMT">>}],
         <<>>,80,3250}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3218@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3218@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-25 16:32:06.011 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3218@localhost' to='bob_add_and_remove_some_contacts_properly_3218@localhost/res1' id='pushd7c561eef2ca3ef1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3218@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 16:32:06.019 ***🔗
REST request:
Code: 204
Req: {<0.89438.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9be7ae385197aabc">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3218@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:32:05 GMT">>}],
         <<>>,80,3807}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3218@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3218@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-25 16:32:06.019 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3218@localhost' to='bob_add_and_remove_some_contacts_properly_3218@localhost/res1' id='pushc37b7fb91ceda1f6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3218@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 16:32:06.028 ***🔗
REST request:
Code: 200
Req: {<0.89474.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ca3b21e4e9451ffa">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3218@localhost\",\"kate_add_and_remove_some_contacts_properly_3218@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:32:05 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,4798}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"DELETE">>,
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3218@localhost\",\"kate_add_and_remove_some_contacts_properly_3218@localhost\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3218@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-25 16:32:06.034 ***🔗
REST request:
Code: 200
Req: {<0.89489.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"93d1f1245041f5e0">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIxOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:32:05 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3218@localhost\"}]">>,
         229,2063}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"GET">>,body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3218@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-25 16:32:06.034 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3218@localhost' to='bob_add_and_remove_some_contacts_properly_3218@localhost/res1' id='pusha93967f0db4d00bc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3218@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 16:32:06.034 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 out
</stream:stream>

*** User 2024-04-25 16:32:06.034 ***🔗
mike_add_and_remove_some_contacts_properly_3218@localhost/res1 in
</stream:stream>

*** User 2024-04-25 16:32:06.034 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 out
</stream:stream>

*** User 2024-04-25 16:32:06.034 ***🔗
kate_add_and_remove_some_contacts_properly_3218@localhost/res1 in
</stream:stream>

*** User 2024-04-25 16:32:06.034 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 out
</stream:stream>

*** User 2024-04-25 16:32:06.035 ***🔗
bob_add_and_remove_some_contacts_properly_3218@localhost/res1 in
</stream:stream>

*** User 2024-04-25 16:32:06.035 ***🔗
alice_add_and_remove_some_contacts_properly_3218@localhost/res1 out
</stream:stream>

*** User 2024-04-25 16:32:06.035 ***🔗
alice_add_and_remove_some_contacts_properly_3218@localhost/res1 in
</stream:stream>
*** CT 2024-04-25 16:32:06.037 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4723.html



=== Ended at 2024-04-25 16:32:06
=== successfully completed test case
=== === Returned value: ok