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

=== Config value:

    [{watchdog,<0.56328.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,disabled},
     {preset,"internal_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@d02a26308542.2024-03-11_11.28.58/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.09/rest_client_suite.add_and_remove_some_contacts_properly.43140.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@d02a26308542.2024-03-11_11.28.58/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.09/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => mnesia,iqdisc => parallel},
        mod_roster =>
            #{backend => mnesia,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_bosh =>
            #{backend => mnesia,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@d02a26308542.2024-03-11_11.28.58"

=== Started at 2024-03-11 11:44:10


*** CT 2024-03-11 11:44:10.959 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4764.html

*** User 2024-03-11 11:44:10.971 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@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 11:44:10.972 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='645105adb602f56b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:10.973 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@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 11:44:10.973 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg4NABtYXR5Z3J5c2E=</auth>



*** User 2024-03-11 11:44:10.974 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:10.974 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@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 11:44:10.974 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1e012d355f06829c' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_1884@localhost'>

*** User 2024-03-11 11:44:10.974 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@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 11:44:10.974 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<iq type='set' id='675f65b6aa768528d4df5e2ad4eb733e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:10.975 ***🔗
alicE_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq id='675f65b6aa768528d4df5e2ad4eb733e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_1884@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:10.975 ***🔗
alice_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<iq type='set' id='638bcc94e683117cf5843b0f37c88e7d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:10.976 ***🔗
alice_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_1884@localhost/res1' id='638bcc94e683117cf5843b0f37c88e7d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:10.976 ***🔗
alice_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:10.977 ***🔗
alice_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_1884@localhost/res1' to='alice_add_and_remove_some_contacts_properly_1884@localhost/res1'/>



*** User 2024-03-11 11:44:10.978 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@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 11:44:10.978 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='04ef02ccc102cb13' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:10.979 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@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 11:44:10.979 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE4ODQAbWFrcm9saWth</auth>



*** User 2024-03-11 11:44:10.980 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:10.980 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@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 11:44:10.980 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='23ab3e629697fbb8' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_1884@localhost'>

*** User 2024-03-11 11:44:10.980 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@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 11:44:10.980 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<iq type='set' id='c1c01be015c562397dbc620cd6db6ea9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:10.981 ***🔗
bOb_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq id='c1c01be015c562397dbc620cd6db6ea9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_1884@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:10.981 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<iq type='set' id='6d4d9dbd4b124b8441fb492df183a647'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:10.982 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_1884@localhost/res1' id='6d4d9dbd4b124b8441fb492df183a647' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:10.982 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:10.985 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_1884@localhost/res1' to='bob_add_and_remove_some_contacts_properly_1884@localhost/res1'/>



*** User 2024-03-11 11:44:10.986 ***🔗
kate_add_and_remove_some_contacts_properly_1884@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 11:44:10.988 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6de1bcefd092667' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:10.988 ***🔗
kate_add_and_remove_some_contacts_properly_1884@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 11:44:10.988 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xODg0AG1ha3Jvd2U7cA==</auth>



*** User 2024-03-11 11:44:10.989 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:10.989 ***🔗
kate_add_and_remove_some_contacts_properly_1884@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 11:44:10.990 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0049b347e278bd94' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_1884@localhost'>

*** User 2024-03-11 11:44:10.990 ***🔗
kate_add_and_remove_some_contacts_properly_1884@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 11:44:10.990 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<iq type='set' id='a9b67869247dd279d6c8c859d2e95cc6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:10.990 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq id='a9b67869247dd279d6c8c859d2e95cc6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_1884@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:10.991 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<iq type='set' id='f57a278f41e99eeda0ce688d0dc90eb4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:10.991 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_1884@localhost/res1' id='f57a278f41e99eeda0ce688d0dc90eb4' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:10.991 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:10.992 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1884@localhost/res1' to='kate_add_and_remove_some_contacts_properly_1884@localhost/res1'/>



*** User 2024-03-11 11:44:11.037 ***🔗
mike_add_and_remove_some_contacts_properly_1884@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 11:44:11.038 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fab96e9dbab2a29f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:11.038 ***🔗
mike_add_and_remove_some_contacts_properly_1884@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 11:44:11.038 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xODg0AG5pY25pZW1h</auth>



*** User 2024-03-11 11:44:11.041 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-11 11:44:11.041 ***🔗
mike_add_and_remove_some_contacts_properly_1884@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 11:44:11.042 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d1e2213097233319' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_1884@localhost'>

*** User 2024-03-11 11:44:11.042 ***🔗
mike_add_and_remove_some_contacts_properly_1884@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 11:44:11.042 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<iq type='set' id='b487935bcb4ab9c4240b39e173f5ef77'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-11 11:44:11.042 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq id='b487935bcb4ab9c4240b39e173f5ef77' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_1884@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-11 11:44:11.043 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<iq type='set' id='2e439bf872a750482af26ea42af49bad'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:11.043 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_1884@localhost/res1' id='2e439bf872a750482af26ea42af49bad' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-11 11:44:11.043 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 out
<presence/>



*** User 2024-03-11 11:44:11.044 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1884@localhost/res1' to='mike_add_and_remove_some_contacts_properly_1884@localhost/res1'/>



*** User 2024-03-11 11:44:11.053 ***🔗
REST request:
Code: 204
Req: {<0.56463.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6c2e85f99446ca3e">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1884@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:10 GMT">>}],
         <<>>,80,983}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1884@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1884@localhost\"}">>,
          return_headers => true}


*** User 2024-03-11 11:44:11.053 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1884@localhost' to='bob_add_and_remove_some_contacts_properly_1884@localhost/res1' id='pushf2b6f8182021d1ef' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_1884@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-11 11:44:11.061 ***🔗
REST request:
Code: 204
Req: {<0.56498.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0f6ebd7b10489704">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1884@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:10 GMT">>}],
         <<>>,80,1016}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1884@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1884@localhost\"}">>,
          return_headers => true}


*** User 2024-03-11 11:44:11.061 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1884@localhost' to='bob_add_and_remove_some_contacts_properly_1884@localhost/res1' id='push24895d3debdcd58a' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_1884@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-11 11:44:11.071 ***🔗
REST request:
Code: 204
Req: {<0.56525.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7ae078f26e7d174f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1884@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:10 GMT">>}],
         <<>>,80,1582}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1884@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1884@localhost\"}">>,
          return_headers => true}


*** User 2024-03-11 11:44:11.072 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1884@localhost' to='bob_add_and_remove_some_contacts_properly_1884@localhost/res1' id='push407a95ad0d1e9e8d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_1884@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-11 11:44:11.081 ***🔗
REST request:
Code: 200
Req: {<0.56558.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"bd6a8ddf54877c06">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1884@localhost\",\"kate_add_and_remove_some_contacts_properly_1884@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,2002}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"DELETE">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1884@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1884@localhost\",\"kate_add_and_remove_some_contacts_properly_1884@localhost\"]}">>,
          return_headers => true}


*** User 2024-03-11 11:44:11.137 ***🔗
REST request:
Code: 200
Req: {<0.56587.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7874429e300446af">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTg4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:10 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1884@localhost\"}]">>,
         229,47595}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"GET">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_1884@localhost">>,
               <<"makrolika">>},
          body => <<>>,return_headers => true}


*** User 2024-03-11 11:44:11.137 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1884@localhost' to='bob_add_and_remove_some_contacts_properly_1884@localhost/res1' id='pushe528c5ff0eb3e633' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_1884@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-11 11:44:11.138 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:11.138 ***🔗
mike_add_and_remove_some_contacts_properly_1884@localhost/res1 in
</stream:stream>

*** User 2024-03-11 11:44:11.138 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:11.138 ***🔗
kate_add_and_remove_some_contacts_properly_1884@localhost/res1 in
</stream:stream>

*** User 2024-03-11 11:44:11.138 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:11.139 ***🔗
bob_add_and_remove_some_contacts_properly_1884@localhost/res1 in
</stream:stream>

*** User 2024-03-11 11:44:11.139 ***🔗
alice_add_and_remove_some_contacts_properly_1884@localhost/res1 out
</stream:stream>

*** User 2024-03-11 11:44:11.139 ***🔗
alice_add_and_remove_some_contacts_properly_1884@localhost/res1 in
</stream:stream>
*** CT 2024-03-11 11:44:11.142 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4764.html



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