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

=== Config value:

    [{watchdog,<0.84002.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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_23.35.36/rest_client_suite.add_and_remove_some_contacts_properly.211330.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@81b4ed498ac1.2024-04-23_23.21.08/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_23.35.36/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_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 =>
            #{server_info => [],iqdisc => one_queue,extra_domains => [],
              users_can_see_hidden_services => false},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => cets,
              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 => cets,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@81b4ed498ac1.2024-04-23_23.21.08"

=== Started at 2024-04-23 23:35:38


*** CT 2024-04-23 23:35:38.375 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5547.html

*** User 2024-04-23 23:35:38.389 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@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 23:35:38.390 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d89809751acd5d56' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 23:35:38.390 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@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 23:35:38.390 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAyNQBtYXR5Z3J5c2E=</auth>



*** User 2024-04-23 23:35:38.391 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 23:35:38.391 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@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 23:35:38.391 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5392eabc8e401865' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3025@localhost'>

*** User 2024-04-23 23:35:38.391 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@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 23:35:38.391 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<iq type='set' id='70aaecdfae1df4b3daad6fc48119fd68'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 23:35:38.391 ***🔗
alicE_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq id='70aaecdfae1df4b3daad6fc48119fd68' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3025@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 23:35:38.391 ***🔗
alice_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<iq type='set' id='8ca0f7fcd992817a8044ecfa296d1ba8'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:38.392 ***🔗
alice_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3025@localhost/res1' id='8ca0f7fcd992817a8044ecfa296d1ba8' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:38.392 ***🔗
alice_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<presence/>



*** User 2024-04-23 23:35:38.394 ***🔗
alice_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3025@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3025@localhost/res1'/>



*** User 2024-04-23 23:35:38.394 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@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 23:35:38.394 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='703805d6d7eb9c8d' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 23:35:38.395 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@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 23:35:38.395 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMwMjUAbWFrcm9saWth</auth>



*** User 2024-04-23 23:35:38.395 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 23:35:38.395 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@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 23:35:38.396 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a4a6e5dce353c9d4' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3025@localhost'>

*** User 2024-04-23 23:35:38.396 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@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 23:35:38.396 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<iq type='set' id='d75a049f5f30b7350580b1ac45500b17'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 23:35:38.396 ***🔗
bOb_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq id='d75a049f5f30b7350580b1ac45500b17' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3025@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 23:35:38.396 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<iq type='set' id='8b3149f608d7728c73eb4772d9c5c019'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:38.397 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3025@localhost/res1' id='8b3149f608d7728c73eb4772d9c5c019' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:38.397 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<presence/>



*** User 2024-04-23 23:35:38.399 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3025@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3025@localhost/res1'/>



*** User 2024-04-23 23:35:38.399 ***🔗
kate_add_and_remove_some_contacts_properly_3025@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 23:35:38.400 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='926cb8535ae1fcc0' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-23 23:35:38.400 ***🔗
kate_add_and_remove_some_contacts_properly_3025@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 23:35:38.400 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDI1AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-23 23:35:38.401 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-23 23:35:38.401 ***🔗
kate_add_and_remove_some_contacts_properly_3025@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 23:35:38.401 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='45cf07c28d1abb52' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3025@localhost'>

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



*** User 2024-04-23 23:35:38.402 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq id='5faae332d1a95d95bbc8219baef45655' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3025@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 23:35:38.402 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<iq type='set' id='afa0aa552387e531c36963108563eb65'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:38.403 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3025@localhost/res1' id='afa0aa552387e531c36963108563eb65' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:38.403 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<presence/>



*** User 2024-04-23 23:35:38.404 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3025@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3025@localhost/res1'/>



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

*** User 2024-04-23 23:35:38.405 ***🔗
mike_add_and_remove_some_contacts_properly_3025@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 23:35:38.405 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDI1AG5pY25pZW1h</auth>



*** User 2024-04-23 23:35:38.407 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



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

*** User 2024-04-23 23:35:38.407 ***🔗
mike_add_and_remove_some_contacts_properly_3025@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 23:35:38.407 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<iq type='set' id='a5d929988ef3cabd039edae60d719d5f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-23 23:35:38.407 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq id='a5d929988ef3cabd039edae60d719d5f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3025@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-23 23:35:38.407 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<iq type='set' id='3fd68cafafd96161b1b95e20bc7b9ce6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:38.408 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3025@localhost/res1' id='3fd68cafafd96161b1b95e20bc7b9ce6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-23 23:35:38.408 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 out
<presence/>



*** User 2024-04-23 23:35:38.410 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3025@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3025@localhost/res1'/>



*** User 2024-04-23 23:35:38.437 ***🔗
REST request:
Code: 204
Req: {<0.84121.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"c4b91d69daf555f1">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAyNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3025@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:35:38 GMT">>}],
         <<>>,80,4400}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3025@localhost\"}">>,
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3025@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-23 23:35:38.438 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3025@localhost' to='bob_add_and_remove_some_contacts_properly_3025@localhost/res1' id='pushf82d2499b3ac493c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3025@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 23:35:38.448 ***🔗
REST request:
Code: 204
Req: {<0.84159.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9f9eff61054fec94">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAyNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3025@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:35:38 GMT">>}],
         <<>>,80,3478}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3025@localhost\"}">>,
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3025@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-23 23:35:38.449 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3025@localhost' to='bob_add_and_remove_some_contacts_properly_3025@localhost/res1' id='push0f5ccb99957d5c9b' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3025@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 23:35:38.462 ***🔗
REST request:
Code: 204
Req: {<0.84199.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5759829b5727c1de">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAyNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3025@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:35:38 GMT">>}],
         <<>>,80,4448}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3025@localhost\"}">>,
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3025@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-23 23:35:38.462 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3025@localhost' to='bob_add_and_remove_some_contacts_properly_3025@localhost/res1' id='pushc7460d16b5385389' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3025@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-23 23:35:38.474 ***🔗
REST request:
Code: 200
Req: {<0.84231.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"a045373a4ac029d6">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAyNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3025@localhost\",\"kate_add_and_remove_some_contacts_properly_3025@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:35:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,4287}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3025@localhost\",\"kate_add_and_remove_some_contacts_properly_3025@localhost\"]}">>,
          role => client,method => <<"DELETE">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3025@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-23 23:35:38.532 ***🔗
REST request:
Code: 200
Req: {<0.84256.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d286585feb022737">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAyNUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Tue, 23 Apr 2024 23:35:38 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3025@localhost\"}]">>,
         229,2550}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,role => client,method => <<"GET">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3025@localhost">>,
               <<"makrolika">>},
          return_headers => true}


*** User 2024-04-23 23:35:38.532 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3025@localhost' to='bob_add_and_remove_some_contacts_properly_3025@localhost/res1' id='push883a448a667bd21c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3025@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-23 23:35:38.532 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 out
</stream:stream>

*** User 2024-04-23 23:35:38.533 ***🔗
mike_add_and_remove_some_contacts_properly_3025@localhost/res1 in
</stream:stream>

*** User 2024-04-23 23:35:38.533 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 out
</stream:stream>

*** User 2024-04-23 23:35:38.534 ***🔗
kate_add_and_remove_some_contacts_properly_3025@localhost/res1 in
</stream:stream>

*** User 2024-04-23 23:35:38.534 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 out
</stream:stream>

*** User 2024-04-23 23:35:38.534 ***🔗
bob_add_and_remove_some_contacts_properly_3025@localhost/res1 in
</stream:stream>

*** User 2024-04-23 23:35:38.534 ***🔗
alice_add_and_remove_some_contacts_properly_3025@localhost/res1 out
</stream:stream>

*** User 2024-04-23 23:35:38.535 ***🔗
alice_add_and_remove_some_contacts_properly_3025@localhost/res1 in
</stream:stream>
*** CT 2024-04-23 23:35:38.538 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5547.html



=== Ended at 2024-04-23 23:35:38
=== successfully completed test case
=== === Returned value: ok