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

=== Config value:

    [{watchdog,<0.89956.0>},
     {muc_light_host,<<"muclight.localhost">>},
     {mam_backend,rdbms},
     {preset,"mysql_redis"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@746355319fb9.2024-03-21_07.35.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.51.42/rest_client_suite.add_and_remove_some_contacts_properly.154371.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@746355319fb9.2024-03-21_07.35.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.51.42/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_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@746355319fb9.2024-03-21_07.35.41"

=== Started at 2024-03-21 07:51:44


*** CT 2024-03-21 07:51:44.677 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_5683.html

*** User 2024-03-21 07:51:44.704 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.705 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='075c6cfc2cd42822' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:51:44.705 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.705 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNABtYXR5Z3J5c2E=</auth>



*** User 2024-03-21 07:51:44.707 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:51:44.707 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.707 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='839b86426420bbea' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3234@localhost'>

*** User 2024-03-21 07:51:44.707 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.707 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='ded3e9f338509b6ba396cd48d5096abe'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:51:44.707 ***🔗
alicE_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq id='ded3e9f338509b6ba396cd48d5096abe' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3234@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:51:44.707 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='f9fcb434086cdb78022ced454ca995ab'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:44.708 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3234@localhost/res1' id='f9fcb434086cdb78022ced454ca995ab' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:44.708 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<presence/>



*** User 2024-03-21 07:51:44.712 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3234@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3234@localhost/res1'/>



*** User 2024-03-21 07:51:44.713 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.713 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8b0b75186f1532a7' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:51:44.713 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.713 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMyMzQAbWFrcm9saWth</auth>



*** User 2024-03-21 07:51:44.714 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:51:44.715 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.715 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='da027bc1e0881653' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3234@localhost'>

*** User 2024-03-21 07:51:44.715 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.715 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='6c2d0e58f477211a1c60c1a96afab9af'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:51:44.716 ***🔗
bOb_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq id='6c2d0e58f477211a1c60c1a96afab9af' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3234@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:51:44.716 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='2d6ee89ad33c194b15f25e1bcba4e702'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:44.716 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='2d6ee89ad33c194b15f25e1bcba4e702' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:44.717 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<presence/>



*** User 2024-03-21 07:51:44.721 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1'/>



*** User 2024-03-21 07:51:44.721 ***🔗
kate_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.722 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bc4daa9c212583a4' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:51:44.722 ***🔗
kate_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.722 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjM0AG1ha3Jvd2U7cA==</auth>



*** User 2024-03-21 07:51:44.723 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:51:44.723 ***🔗
kate_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.724 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='07b5524e214a0f6c' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3234@localhost'>

*** User 2024-03-21 07:51:44.724 ***🔗
kate_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.724 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='06d73c2575704938119c7c0ba0a696c2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:51:44.724 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq id='06d73c2575704938119c7c0ba0a696c2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3234@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:51:44.724 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='ccf52dbebba1769d7b103ddca59b28f2'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:44.752 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3234@localhost/res1' id='ccf52dbebba1769d7b103ddca59b28f2' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:44.752 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<presence/>



*** User 2024-03-21 07:51:44.755 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3234@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3234@localhost/res1'/>



*** User 2024-03-21 07:51:44.756 ***🔗
mike_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.756 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5f47e4bda42f075a' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:51:44.756 ***🔗
mike_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.757 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjM0AG5pY25pZW1h</auth>



*** User 2024-03-21 07:51:44.758 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:51:44.758 ***🔗
mike_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.758 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='324eca32e40a11ac' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3234@localhost'>

*** User 2024-03-21 07:51:44.758 ***🔗
mike_add_and_remove_some_contacts_properly_3234@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-21 07:51:44.758 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='18202458b27212f4d9a9ffc9fd7fdc80'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:51:44.758 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq id='18202458b27212f4d9a9ffc9fd7fdc80' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3234@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:51:44.759 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<iq type='set' id='0ef746db1269732f4f4db6f4e82cd915'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:44.760 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3234@localhost/res1' id='0ef746db1269732f4f4db6f4e82cd915' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:51:44.760 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
<presence/>



*** User 2024-03-21 07:51:44.763 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3234@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3234@localhost/res1'/>



*** User 2024-03-21 07:51:44.773 ***🔗
REST request:
Code: 204
Req: {<0.90115.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cc8fabc2ba218fd9">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3234@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:44 GMT">>}],
         <<>>,80,4097}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3234@localhost\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:44.773 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3234@localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='push1c33e797eed4d3a8' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3234@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:51:44.782 ***🔗
REST request:
Code: 204
Req: {<0.90147.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"52301316b9270651">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3234@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:44 GMT">>}],
         <<>>,80,4007}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3234@localhost\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:44.783 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3234@localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='push2277fc7264bdba01' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3234@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:51:44.794 ***🔗
REST request:
Code: 204
Req: {<0.90186.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b3990b9f52c016e1">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3234@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:44 GMT">>}],
         <<>>,80,5042}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3234@localhost\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:44.794 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3234@localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='pushf3c05c1e8cff483c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3234@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-03-21 07:51:44.855 ***🔗
REST request:
Code: 200
Req: {<0.90206.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"ec02cc7e8f50d054">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3234@localhost\",\"kate_add_and_remove_some_contacts_properly_3234@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,55192}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3234@localhost\",\"kate_add_and_remove_some_contacts_properly_3234@localhost\"]}">>,
          method => <<"DELETE">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:44.862 ***🔗
REST request:
Code: 200
Req: {<0.90222.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dbca158670524d47">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzIzNEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 21 Mar 2024 07:51:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3234@localhost\"}]">>,
         229,2791}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3234@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-03-21 07:51:44.863 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3234@localhost' to='bob_add_and_remove_some_contacts_properly_3234@localhost/res1' id='push687e5cda145bb3b4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3234@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-03-21 07:51:44.863 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:51:44.863 ***🔗
mike_add_and_remove_some_contacts_properly_3234@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:51:44.863 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:51:44.863 ***🔗
kate_add_and_remove_some_contacts_properly_3234@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:51:44.863 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:51:44.864 ***🔗
bob_add_and_remove_some_contacts_properly_3234@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:51:44.864 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:51:44.864 ***🔗
alice_add_and_remove_some_contacts_properly_3234@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 07:51:44.866 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_5683.html



=== Ended at 2024-03-21 07:51:44
=== successfully completed test case
=== === Returned value: ok