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

=== Config value:

    [{watchdog,<0.82550.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@c63aed7f6ecc.2024-04-26_12.39.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_12.54.16/rest_client_suite.add_and_remove_some_contacts_properly.203906.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@c63aed7f6ecc.2024-04-26_12.39.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_12.54.16/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,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@c63aed7f6ecc.2024-04-26_12.39.39"

=== Started at 2024-04-26 12:54:18


*** CT 2024-04-26 12:54:18.230 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_4559.html

*** User 2024-04-26 12:54:18.246 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.247 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f5cc2c37e2d831a0' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 12:54:18.247 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.247 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzEwOABtYXR5Z3J5c2E=</auth>



*** User 2024-04-26 12:54:18.248 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 12:54:18.248 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.248 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2fa2dac20b7049f5' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3108@localhost'>

*** User 2024-04-26 12:54:18.248 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.249 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<iq type='set' id='58d936ce0c332829bd6b655fbccdab27'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 12:54:18.249 ***🔗
alicE_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq id='58d936ce0c332829bd6b655fbccdab27' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3108@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 12:54:18.249 ***🔗
alice_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<iq type='set' id='12e02ac281141bbdb28f389a87336834'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:18.249 ***🔗
alice_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3108@localhost/res1' id='12e02ac281141bbdb28f389a87336834' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:18.249 ***🔗
alice_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<presence/>



*** User 2024-04-26 12:54:18.251 ***🔗
alice_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3108@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3108@localhost/res1'/>



*** User 2024-04-26 12:54:18.252 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.252 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='25c24eea6b792772' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 12:54:18.252 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.253 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMxMDgAbWFrcm9saWth</auth>



*** User 2024-04-26 12:54:18.255 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 12:54:18.255 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.255 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb0bcf2b409a7432' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3108@localhost'>

*** User 2024-04-26 12:54:18.255 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.255 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<iq type='set' id='152f80ac43c3c372d331b202524a9fb6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 12:54:18.255 ***🔗
bOb_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq id='152f80ac43c3c372d331b202524a9fb6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3108@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 12:54:18.255 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<iq type='set' id='22b09ca890c8616f93fe504c9b54092f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:18.256 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3108@localhost/res1' id='22b09ca890c8616f93fe504c9b54092f' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:18.256 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<presence/>



*** User 2024-04-26 12:54:18.258 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3108@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3108@localhost/res1'/>



*** User 2024-04-26 12:54:18.258 ***🔗
kate_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.262 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec2c30f681384ad4' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 12:54:18.262 ***🔗
kate_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.262 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMTA4AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-26 12:54:18.263 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 12:54:18.263 ***🔗
kate_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.264 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77c777f5b5b1776a' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3108@localhost'>

*** User 2024-04-26 12:54:18.264 ***🔗
kate_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.264 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<iq type='set' id='ef34a9ce3e8fa9b93267ab4148aa37eb'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 12:54:18.264 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq id='ef34a9ce3e8fa9b93267ab4148aa37eb' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3108@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 12:54:18.264 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<iq type='set' id='ca49a114ea8f75d1a0e69cb56dc5778a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:18.265 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3108@localhost/res1' id='ca49a114ea8f75d1a0e69cb56dc5778a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:18.265 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<presence/>



*** User 2024-04-26 12:54:18.267 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3108@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3108@localhost/res1'/>



*** User 2024-04-26 12:54:18.268 ***🔗
mike_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.268 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b6088a4720338262' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-04-26 12:54:18.268 ***🔗
mike_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.268 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMTA4AG5pY25pZW1h</auth>



*** User 2024-04-26 12:54:18.269 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-26 12:54:18.269 ***🔗
mike_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.269 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f14248b4c755048e' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3108@localhost'>

*** User 2024-04-26 12:54:18.270 ***🔗
mike_add_and_remove_some_contacts_properly_3108@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-26 12:54:18.270 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<iq type='set' id='7878e8127f747fd2a909017188077e16'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-26 12:54:18.270 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq id='7878e8127f747fd2a909017188077e16' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3108@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-04-26 12:54:18.270 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<iq type='set' id='4205d045d95b1c80ea7104ad1b55bf80'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:18.271 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3108@localhost/res1' id='4205d045d95b1c80ea7104ad1b55bf80' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-26 12:54:18.271 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 out
<presence/>



*** User 2024-04-26 12:54:18.273 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3108@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3108@localhost/res1'/>



*** User 2024-04-26 12:54:18.284 ***🔗
REST request:
Code: 204
Req: {<0.82671.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"33d829346b8d5265">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzEwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3108@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:17 GMT">>}],
         <<>>,80,3920}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3108@localhost\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3108@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-26 12:54:18.284 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3108@localhost' to='bob_add_and_remove_some_contacts_properly_3108@localhost/res1' id='pushfb6ca8cf423b72f5' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3108@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-26 12:54:18.339 ***🔗
REST request:
Code: 204
Req: {<0.82711.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"5140cd0627ff517f">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzEwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3108@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:17 GMT">>}],
         <<>>,80,4700}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3108@localhost\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3108@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-26 12:54:18.339 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3108@localhost' to='bob_add_and_remove_some_contacts_properly_3108@localhost/res1' id='push1449a382ebe6675d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3108@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-26 12:54:18.350 ***🔗
REST request:
Code: 204
Req: {<0.82753.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"96558af46b928648">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzEwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3108@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:17 GMT">>}],
         <<>>,80,3822}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3108@localhost\"}">>,
          method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3108@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-26 12:54:18.351 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3108@localhost' to='bob_add_and_remove_some_contacts_properly_3108@localhost/res1' id='push6cd46c4801ad5b98' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3108@localhost' subscription='none'/>
	</query>
</iq>



*** User 2024-04-26 12:54:18.360 ***🔗
REST request:
Code: 200
Req: {<0.82786.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"34655f577d11dd74">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzEwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3108@localhost\",\"kate_add_and_remove_some_contacts_properly_3108@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,4999}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3108@localhost\",\"kate_add_and_remove_some_contacts_properly_3108@localhost\"]}">>,
          method => <<"DELETE">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3108@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-26 12:54:18.369 ***🔗
REST request:
Code: 200
Req: {<0.82804.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"65daefd516f6b16c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzEwOEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 26 Apr 2024 12:54:17 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"104">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3108@localhost\"}]">>,
         229,2759}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          body => <<>>,method => <<"GET">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3108@localhost">>,
               <<"makrolika">>},
          role => client,return_headers => true}


*** User 2024-04-26 12:54:18.369 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3108@localhost' to='bob_add_and_remove_some_contacts_properly_3108@localhost/res1' id='pushea2f74b580e3ab06' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3108@localhost' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-26 12:54:18.369 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 out
</stream:stream>

*** User 2024-04-26 12:54:18.369 ***🔗
mike_add_and_remove_some_contacts_properly_3108@localhost/res1 in
</stream:stream>

*** User 2024-04-26 12:54:18.369 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 out
</stream:stream>

*** User 2024-04-26 12:54:18.370 ***🔗
kate_add_and_remove_some_contacts_properly_3108@localhost/res1 in
</stream:stream>

*** User 2024-04-26 12:54:18.370 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 out
</stream:stream>

*** User 2024-04-26 12:54:18.372 ***🔗
bob_add_and_remove_some_contacts_properly_3108@localhost/res1 in
</stream:stream>

*** User 2024-04-26 12:54:18.372 ***🔗
alice_add_and_remove_some_contacts_properly_3108@localhost/res1 out
</stream:stream>

*** User 2024-04-26 12:54:18.372 ***🔗
alice_add_and_remove_some_contacts_properly_3108@localhost/res1 in
</stream:stream>
*** CT 2024-04-26 12:54:18.376 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_4559.html



=== Ended at 2024-04-26 12:54:18
=== successfully completed test case
=== === Returned value: ok