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

=== Config value:

    [{watchdog,<0.88714.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"odbc_mssql_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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.12.43/rest_client_suite.add_and_remove_some_contacts_properly.250114.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@96ddc50d3205.2024-04-23_10.53.40/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.12.43/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_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_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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@96ddc50d3205.2024-04-23_10.53.40"

=== Started at 2024-04-23 11:12:45


*** CT 2024-04-23 11:12:45.175 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4744.html

*** User 2024-04-23 11:12:45.195 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.195 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4e226c29f468c5c6' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:12:45.195 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.196 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQzMQBtYXR5Z3J5c2E=</auth>



*** User 2024-04-23 11:12:45.197 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:12:45.197 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.197 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8c27b57dd04735c7' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3431@localhost'>

*** User 2024-04-23 11:12:45.197 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.197 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<iq type='set' id='165ac3be8b4352545a4def0901ff02c4'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.198 ***🔗
alicE_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq id='165ac3be8b4352545a4def0901ff02c4' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3431@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.198 ***🔗
alice_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<iq type='set' id='1f7414c62a69e867b39533df72425f0d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.198 ***🔗
alice_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3431@localhost/res1' id='1f7414c62a69e867b39533df72425f0d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.198 ***🔗
alice_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<presence/>



*** User 2024-04-23 11:12:45.200 ***🔗
alice_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3431@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3431@localhost/res1'/>



*** User 2024-04-23 11:12:45.201 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.203 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1a88257138430a90' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:12:45.203 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.203 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzM0MzEAbWFrcm9saWth</auth>



*** User 2024-04-23 11:12:45.204 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:12:45.204 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.204 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2f9d27df9b3150dc' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3431@localhost'>

*** User 2024-04-23 11:12:45.205 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.205 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<iq type='set' id='5f830b3dbbcb22f0a72c1c790e324bd3'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.205 ***🔗
bOb_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq id='5f830b3dbbcb22f0a72c1c790e324bd3' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3431@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.205 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<iq type='set' id='37b928815cdc47cea2f8f92c9418d827'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.205 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3431@localhost/res1' id='37b928815cdc47cea2f8f92c9418d827' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.205 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<presence/>



*** User 2024-04-23 11:12:45.207 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3431@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3431@localhost/res1'/>



*** User 2024-04-23 11:12:45.208 ***🔗
kate_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.208 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e2a531e9049a450c' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:12:45.208 ***🔗
kate_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.208 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zNDMxAG1ha3Jvd2U7cA==</auth>



*** User 2024-04-23 11:12:45.209 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:12:45.209 ***🔗
kate_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.210 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='caada76d6161826f' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3431@localhost'>

*** User 2024-04-23 11:12:45.210 ***🔗
kate_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.210 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<iq type='set' id='95345dfab76746636b2bef73c6629440'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.210 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq id='95345dfab76746636b2bef73c6629440' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3431@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.210 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<iq type='set' id='9cc1d9431e75162f06f914e7864b36f5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.211 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3431@localhost/res1' id='9cc1d9431e75162f06f914e7864b36f5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.211 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<presence/>



*** User 2024-04-23 11:12:45.213 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3431@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3431@localhost/res1'/>



*** User 2024-04-23 11:12:45.214 ***🔗
mike_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.214 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cc8eafef290d7f6f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 11:12:45.215 ***🔗
mike_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.215 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zNDMxAG5pY25pZW1h</auth>



*** User 2024-04-23 11:12:45.216 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 11:12:45.216 ***🔗
mike_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.216 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='72f3e518d3f78c53' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3431@localhost'>

*** User 2024-04-23 11:12:45.216 ***🔗
mike_add_and_remove_some_contacts_properly_3431@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-23 11:12:45.216 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<iq type='set' id='0ab072f415910c442d0640c3960eef48'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.216 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq id='0ab072f415910c442d0640c3960eef48' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3431@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 11:12:45.217 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<iq type='set' id='bf0ffae78a85ac876536c90685d27722'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.217 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3431@localhost/res1' id='bf0ffae78a85ac876536c90685d27722' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 11:12:45.217 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 out
<presence/>



*** User 2024-04-23 11:12:45.219 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3431@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3431@localhost/res1'/>



*** User 2024-04-23 11:12:45.230 ***🔗
REST request:
Code: 204
Req: {<0.88847.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e033f0217e298ee6">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQzMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3431@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>}],
         <<>>,80,5697}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3431@localhost">>,
               <<"makrolika">>},
          role => client,
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3431@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-23 11:12:45.231 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3431@localhost' to='bob_add_and_remove_some_contacts_properly_3431@localhost/res1' id='push3ab9ec58a725c796' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3431@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.295 ***🔗
REST request:
Code: 204
Req: {<0.88881.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4d9735d40e2748d4">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQzMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3431@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>}],
         <<>>,80,57654}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3431@localhost">>,
               <<"makrolika">>},
          role => client,
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3431@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-23 11:12:45.295 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3431@localhost' to='bob_add_and_remove_some_contacts_properly_3431@localhost/res1' id='push6437055e08dbe533' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3431@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.307 ***🔗
REST request:
Code: 204
Req: {<0.88917.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"244692df17aa8e47">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQzMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3431@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>}],
         <<>>,80,5190}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3431@localhost">>,
               <<"makrolika">>},
          role => client,
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3431@localhost\"}">>,
          method => <<"POST">>,return_headers => true}


*** User 2024-04-23 11:12:45.307 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3431@localhost' to='bob_add_and_remove_some_contacts_properly_3431@localhost/res1' id='push43d6abb4cd32599c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3431@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.323 ***🔗
REST request:
Code: 200
Req: {<0.88956.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1786bc71b7f99efd">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQzMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3431@localhost\",\"kate_add_and_remove_some_contacts_properly_3431@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,9254}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3431@localhost">>,
               <<"makrolika">>},
          role => client,
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3431@localhost\",\"kate_add_and_remove_some_contacts_properly_3431@localhost\"]}">>,
          method => <<"DELETE">>,return_headers => true}


*** User 2024-04-23 11:12:45.332 ***🔗
REST request:
Code: 200
Req: {<0.88974.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b111873ab7f03e8a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzQzMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 11:12:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3431@localhost\"}]">>,
         229,3623}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3431@localhost">>,
               <<"makrolika">>},
          role => client,body => <<>>,method => <<"GET">>,
          return_headers => true}


*** User 2024-04-23 11:12:45.332 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3431@localhost' to='bob_add_and_remove_some_contacts_properly_3431@localhost/res1' id='push73a1a0eb9b9241d0' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3431@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 11:12:45.332 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:12:45.332 ***🔗
mike_add_and_remove_some_contacts_properly_3431@localhost/res1 in
</stream:stream>

*** User 2024-04-23 11:12:45.332 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:12:45.332 ***🔗
kate_add_and_remove_some_contacts_properly_3431@localhost/res1 in
</stream:stream>

*** User 2024-04-23 11:12:45.332 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:12:45.333 ***🔗
bob_add_and_remove_some_contacts_properly_3431@localhost/res1 in
</stream:stream>

*** User 2024-04-23 11:12:45.333 ***🔗
alice_add_and_remove_some_contacts_properly_3431@localhost/res1 out
</stream:stream>

*** User 2024-04-23 11:12:45.333 ***🔗
alice_add_and_remove_some_contacts_properly_3431@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 11:12:45.339 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4744.html



=== Ended at 2024-04-23 11:12:45
=== successfully completed test case
=== === Returned value: ok