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

=== Config value:

    [{watchdog,<0.82597.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"pgsql_cets"},
     {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@e5991d55cb5f.2024-04-10_07.52.47/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_08.07.17/rest_client_suite.add_and_remove_some_contacts_properly.107780.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@e5991d55cb5f.2024-04-10_07.52.47/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_08.07.17/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_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => cets,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_carboncopy => #{iqdisc => no_queue},
        mod_bosh =>
            #{backend => cets,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@e5991d55cb5f.2024-04-10_07.52.47"

=== Started at 2024-04-10 08:07:19


*** CT 2024-04-10 08:07:19.457 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4594.html

*** User 2024-04-10 08:07:19.474 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@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 08:07:19.474 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0ddaa5bb20a5b919' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 08:07:19.474 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@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 08:07:19.474 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4MgBtYXR5Z3J5c2E=</auth>



*** User 2024-04-10 08:07:19.475 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 08:07:19.476 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@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 08:07:19.476 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0d50da2c6f746828' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2982@localhost'>

*** User 2024-04-10 08:07:19.476 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@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 08:07:19.476 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<iq type='set' id='2cfed369e80337d0c180a5a895d70b7b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 08:07:19.476 ***🔗
alicE_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq id='2cfed369e80337d0c180a5a895d70b7b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_2982@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 08:07:19.476 ***🔗
alice_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<iq type='set' id='994bb36d9dca39b85a5faa250cf86ca3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:07:19.477 ***🔗
alice_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_2982@localhost/res1' id='994bb36d9dca39b85a5faa250cf86ca3' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:07:19.478 ***🔗
alice_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<presence/>



*** User 2024-04-10 08:07:19.479 ***🔗
alice_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2982@localhost/res1' to='alice_add_and_remove_some_contacts_properly_2982@localhost/res1'/>



*** User 2024-04-10 08:07:19.480 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@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 08:07:19.480 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6e1b9517fb2e049b' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 08:07:19.481 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@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 08:07:19.481 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI5ODIAbWFrcm9saWth</auth>



*** User 2024-04-10 08:07:19.482 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 08:07:19.482 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@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 08:07:19.482 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f8904beca5feb229' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2982@localhost'>

*** User 2024-04-10 08:07:19.482 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@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 08:07:19.482 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<iq type='set' id='01bc95d1607b6dea7a73f5006a1f95c1'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 08:07:19.482 ***🔗
bOb_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq id='01bc95d1607b6dea7a73f5006a1f95c1' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_2982@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 08:07:19.483 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<iq type='set' id='90e3bac21072fea159e8e603f1fe479f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:07:19.483 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_2982@localhost/res1' id='90e3bac21072fea159e8e603f1fe479f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:07:19.483 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<presence/>



*** User 2024-04-10 08:07:19.485 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2982@localhost/res1' to='bob_add_and_remove_some_contacts_properly_2982@localhost/res1'/>



*** User 2024-04-10 08:07:19.486 ***🔗
kate_add_and_remove_some_contacts_properly_2982@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 08:07:19.487 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='95f9aed740063595' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 08:07:19.487 ***🔗
kate_add_and_remove_some_contacts_properly_2982@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 08:07:19.487 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTgyAG1ha3Jvd2U7cA==</auth>



*** User 2024-04-10 08:07:19.489 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 08:07:19.489 ***🔗
kate_add_and_remove_some_contacts_properly_2982@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 08:07:19.489 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a705f7193c89b2f8' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2982@localhost'>

*** User 2024-04-10 08:07:19.489 ***🔗
kate_add_and_remove_some_contacts_properly_2982@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 08:07:19.489 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<iq type='set' id='5b8ac7662e854b8dc4c110669e105891'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 08:07:19.490 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq id='5b8ac7662e854b8dc4c110669e105891' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_2982@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 08:07:19.490 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<iq type='set' id='b594a0e0b1b93bab5ae770c047f3fdad'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:07:19.491 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_2982@localhost/res1' id='b594a0e0b1b93bab5ae770c047f3fdad' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:07:19.491 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<presence/>



*** User 2024-04-10 08:07:19.495 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2982@localhost/res1' to='kate_add_and_remove_some_contacts_properly_2982@localhost/res1'/>



*** User 2024-04-10 08:07:19.495 ***🔗
mike_add_and_remove_some_contacts_properly_2982@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 08:07:19.496 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='490b921b5103836f' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-10 08:07:19.496 ***🔗
mike_add_and_remove_some_contacts_properly_2982@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 08:07:19.496 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTgyAG5pY25pZW1h</auth>



*** User 2024-04-10 08:07:19.497 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-10 08:07:19.497 ***🔗
mike_add_and_remove_some_contacts_properly_2982@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 08:07:19.497 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cee14a6f2d918c74' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2982@localhost'>

*** User 2024-04-10 08:07:19.498 ***🔗
mike_add_and_remove_some_contacts_properly_2982@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 08:07:19.498 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<iq type='set' id='0a37258c297100aea9d82f8b37c63995'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-10 08:07:19.498 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq id='0a37258c297100aea9d82f8b37c63995' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_2982@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-10 08:07:19.498 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<iq type='set' id='ad219540b9de8aca0f0b738a68af1857'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:07:19.539 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_2982@localhost/res1' id='ad219540b9de8aca0f0b738a68af1857' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-10 08:07:19.540 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 out
<presence/>



*** User 2024-04-10 08:07:19.542 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2982@localhost/res1' to='mike_add_and_remove_some_contacts_properly_2982@localhost/res1'/>



*** User 2024-04-10 08:07:19.557 ***🔗
REST request:
Code: 204
Req: {<0.82736.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6b3f101f81b12775">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2982@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 08:07:18 GMT">>}],
         <<>>,80,5240}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2982@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2982@localhost\"}">>,
          role => client,return_headers => true}


*** User 2024-04-10 08:07:19.557 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2982@localhost' to='bob_add_and_remove_some_contacts_properly_2982@localhost/res1' id='push81f3711803468d87' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_2982@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-10 08:07:19.570 ***🔗
REST request:
Code: 204
Req: {<0.82776.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c6d66057d5b338af">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2982@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 08:07:18 GMT">>}],
         <<>>,80,5187}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2982@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2982@localhost\"}">>,
          role => client,return_headers => true}


*** User 2024-04-10 08:07:19.570 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2982@localhost' to='bob_add_and_remove_some_contacts_properly_2982@localhost/res1' id='push3f730ca0db6ebcf1' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_2982@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-10 08:07:19.582 ***🔗
REST request:
Code: 204
Req: {<0.82810.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3b25e4cebf7e9d90">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2982@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 08:07:18 GMT">>}],
         <<>>,80,3453}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2982@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2982@localhost\"}">>,
          role => client,return_headers => true}


*** User 2024-04-10 08:07:19.582 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2982@localhost' to='bob_add_and_remove_some_contacts_properly_2982@localhost/res1' id='pushbeb4f193173c9637' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_2982@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-10 08:07:19.596 ***🔗
REST request:
Code: 200
Req: {<0.82833.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7c20c109ac733016">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2982@localhost\",\"kate_add_and_remove_some_contacts_properly_2982@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 08:07:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,7741}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2982@localhost">>,
               <<"makrolika">>},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2982@localhost\",\"kate_add_and_remove_some_contacts_properly_2982@localhost\"]}">>,
          role => client,return_headers => true}


*** User 2024-04-10 08:07:19.650 ***🔗
REST request:
Code: 200
Req: {<0.82860.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"95f35904dc42ad35">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4MkBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 10 Apr 2024 08:07:18 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2982@localhost\"}]">>,
         229,3077}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2982@localhost">>,
               <<"makrolika">>},
          body => <<>>,role => client,return_headers => true}


*** User 2024-04-10 08:07:19.650 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2982@localhost' to='bob_add_and_remove_some_contacts_properly_2982@localhost/res1' id='push29ba87ce47c201bc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_2982@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-10 08:07:19.650 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 out
</stream:stream>

*** User 2024-04-10 08:07:19.651 ***🔗
mike_add_and_remove_some_contacts_properly_2982@localhost/res1 in
</stream:stream>

*** User 2024-04-10 08:07:19.651 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 out
</stream:stream>

*** User 2024-04-10 08:07:19.651 ***🔗
kate_add_and_remove_some_contacts_properly_2982@localhost/res1 in
</stream:stream>

*** User 2024-04-10 08:07:19.651 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 out
</stream:stream>

*** User 2024-04-10 08:07:19.652 ***🔗
bob_add_and_remove_some_contacts_properly_2982@localhost/res1 in
</stream:stream>

*** User 2024-04-10 08:07:19.652 ***🔗
alice_add_and_remove_some_contacts_properly_2982@localhost/res1 out
</stream:stream>

*** User 2024-04-10 08:07:19.652 ***🔗
alice_add_and_remove_some_contacts_properly_2982@localhost/res1 in
</stream:stream>
*** CT 2024-04-10 08:07:19.654 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4594.html



=== Ended at 2024-04-10 08:07:19
=== successfully completed test case
=== === Returned value: ok