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

=== Config value:

    [{watchdog,<0.88296.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/rest_client_suite.add_and_remove_some_contacts_properly.157187.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@38467046e2a2.2024-03-11_11.25.28/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_11.44.03/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_amp => #{},
        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_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_presence => #{},
        mod_stream_management =>
            #{buffer => true,ack => true,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              backend => mnesia,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 => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@38467046e2a2.2024-03-11_11.25.28"

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


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

*** User 2024-03-11 11:44:05.427 ***🔗
alicE_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:44:05.427 ***🔗
alicE_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0368c500ba59ddf0' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:05.427 ***🔗
alicE_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 11:44:05.427 ***🔗
alicE_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzMyMQBtYXR5Z3J5c2E=</auth>



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



*** User 2024-03-11 11:44:05.428 ***🔗
alicE_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:44:05.429 ***🔗
alicE_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b27bbe8ee61e9da4' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3321@localhost'>

*** User 2024-03-11 11:44:05.429 ***🔗
alicE_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 11:44:05.429 ***🔗
alicE_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<iq type='set' id='a5e95ad5a6194fe8e2c83d3f309d9be2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



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



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



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



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



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



*** User 2024-03-11 11:44:05.444 ***🔗
bOb_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:44:05.444 ***🔗
bOb_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e18d8a66377c59ff' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:05.444 ***🔗
bOb_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 11:44:05.444 ***🔗
bOb_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMzMjEAbWFrcm9saWth</auth>



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



*** User 2024-03-11 11:44:05.446 ***🔗
bOb_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:44:05.446 ***🔗
bOb_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='99d989ef946260d0' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3321@localhost'>

*** User 2024-03-11 11:44:05.446 ***🔗
bOb_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 11:44:05.446 ***🔗
bOb_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<iq type='set' id='c6a99fececfb4af64d0dae64575a49a2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



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



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



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



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



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



*** User 2024-03-11 11:44:05.450 ***🔗
kate_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:44:05.450 ***🔗
kate_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3cf0b2ff193d7877' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:05.450 ***🔗
kate_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 11:44:05.451 ***🔗
kate_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzIxAG1ha3Jvd2U7cA==</auth>



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



*** User 2024-03-11 11:44:05.452 ***🔗
kate_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:44:05.452 ***🔗
kate_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='942fcb2b521b6659' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3321@localhost'>

*** User 2024-03-11 11:44:05.453 ***🔗
kate_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 11:44:05.453 ***🔗
kate_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<iq type='set' id='7146ea9f66c1cbd2c4a58521e77e4caa'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



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



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



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



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



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



*** User 2024-03-11 11:44:05.456 ***🔗
mike_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:44:05.456 ***🔗
mike_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1140961a53590e02' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-11 11:44:05.456 ***🔗
mike_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 11:44:05.456 ***🔗
mike_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzIxAG5pY25pZW1h</auth>



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



*** User 2024-03-11 11:44:05.458 ***🔗
mike_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-11 11:44:05.458 ***🔗
mike_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='90e98d0382ff3a50' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3321@localhost'>

*** User 2024-03-11 11:44:05.458 ***🔗
mike_add_and_remove_some_contacts_properly_3321@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-11 11:44:05.458 ***🔗
mike_add_and_remove_some_contacts_properly_3321@localhost/res1 out
<iq type='set' id='136c1bb5def359a1e7639fa56d368aef'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



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



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



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



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



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



*** User 2024-03-11 11:44:05.472 ***🔗
REST request:
Code: 204
Req: {<0.88421.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"d5a5d10a6af6385c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzMyMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3321@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>}],
         <<>>,80,5455}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3321@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3321@localhost">>,
               <<"makrolika">>},
          role => client,method => <<"POST">>,return_headers => true}


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



*** User 2024-03-11 11:44:05.483 ***🔗
REST request:
Code: 204
Req: {<0.88457.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"790078b3c9e7c08c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzMyMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3321@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>}],
         <<>>,80,5371}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3321@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3321@localhost">>,
               <<"makrolika">>},
          role => client,method => <<"POST">>,return_headers => true}


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



*** User 2024-03-11 11:44:05.541 ***🔗
REST request:
Code: 204
Req: {<0.88493.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"05d2de96cee13105">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzMyMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3321@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>}],
         <<>>,80,12848}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3321@localhost\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3321@localhost">>,
               <<"makrolika">>},
          role => client,method => <<"POST">>,return_headers => true}


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



*** User 2024-03-11 11:44:05.552 ***🔗
REST request:
Code: 200
Req: {<0.88524.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"496168c4a2192b6a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzMyMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3321@localhost\",\"kate_add_and_remove_some_contacts_properly_3321@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,6174}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3321@localhost\",\"kate_add_and_remove_some_contacts_properly_3321@localhost\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3321@localhost">>,
               <<"makrolika">>},
          role => client,method => <<"DELETE">>,return_headers => true}


*** User 2024-03-11 11:44:05.564 ***🔗
REST request:
Code: 200
Req: {<0.88552.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"64ee7cb9893978e9">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzMyMUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Mon, 11 Mar 2024 11:44:05 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3321@localhost\"}]">>,
         229,2554}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3321@localhost">>,
               <<"makrolika">>},
          role => client,method => <<"GET">>,return_headers => true}


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



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

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

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

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

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

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

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

*** User 2024-03-11 11:44:05.565 ***🔗
alice_add_and_remove_some_contacts_properly_3321@localhost/res1 in
</stream:stream>
*** CT 2024-03-11 11:44:05.567 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4835.html



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