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

=== Config value:

    [{watchdog,<0.76836.0>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {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@e69c7ef90d22.2024-04-12_09.30.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-12_09.44.42/rest_client_suite.add_and_remove_some_contacts_properly.160131.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@e69c7ef90d22.2024-04-12_09.30.33/big_tests.tests.rest_client_SUITE.logs/run.2024-04-12_09.44.42/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{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_disco =>
            #{iqdisc => one_queue,users_can_see_hidden_services => false,
              server_info => [],extra_domains => []},
        mod_presence => #{},
        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_carboncopy => #{iqdisc => no_queue},
        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}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@e69c7ef90d22.2024-04-12_09.30.33"

=== Started at 2024-04-12 09:44:44


*** CT 2024-04-12 09:44:44.289 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2662.html

*** User 2024-04-12 09:44:44.312 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:44:44.312 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='33cfc60b9d68b947' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:44:44.312 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/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-12 09:44:44.312 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAxNgBtYXR5Z3J5c2E=</auth>



*** User 2024-04-12 09:44:44.313 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:44:44.313 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:44:44.314 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7c9e7d89d0707b79' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3016@domain.example.com'>

*** User 2024-04-12 09:44:44.314 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/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-12 09:44:44.314 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<iq type='set' id='217ceae5bf1ca022ac684ccb607f1377'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:44:44.314 ***🔗
alicE_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq id='217ceae5bf1ca022ac684ccb607f1377' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:44:44.314 ***🔗
alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<iq type='set' id='4ebd35ca584e5a84ab8814b3cc9f8af6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:44.315 ***🔗
alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' id='4ebd35ca584e5a84ab8814b3cc9f8af6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:44.315 ***🔗
alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 09:44:44.323 ***🔗
alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1'/>



*** User 2024-04-12 09:44:44.323 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:44:44.324 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7cb047aba7cdf93b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:44:44.324 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/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-12 09:44:44.324 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMwMTYAbWFrcm9saWth</auth>



*** User 2024-04-12 09:44:44.326 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:44:44.326 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:44:44.327 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='baf20d9db37c4d2d' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3016@domain.example.com'>

*** User 2024-04-12 09:44:44.327 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/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-12 09:44:44.327 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<iq type='set' id='f168409e87ac9b952161b35f32ea1060'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:44:44.327 ***🔗
bOb_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq id='f168409e87ac9b952161b35f32ea1060' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:44:44.327 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<iq type='set' id='0b1f957badbf3893519b40dff4392f21'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:44.328 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' id='0b1f957badbf3893519b40dff4392f21' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:44.328 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 09:44:44.331 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1'/>



*** User 2024-04-12 09:44:44.332 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:44:44.332 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d23c4ad1d8bc1538' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:44:44.333 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/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-12 09:44:44.333 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDE2AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-12 09:44:44.334 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:44:44.334 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:44:44.334 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0c447848607e8ecd' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3016@domain.example.com'>

*** User 2024-04-12 09:44:44.334 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/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-12 09:44:44.335 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<iq type='set' id='4a7ca78aa0b662b5d8a8745c23aaad82'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:44:44.335 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq id='4a7ca78aa0b662b5d8a8745c23aaad82' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:44:44.335 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<iq type='set' id='72b2f14670e67a11e4d938b1debbd75c'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:44.336 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' id='72b2f14670e67a11e4d938b1debbd75c' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:44.336 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 09:44:44.353 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1'/>



*** User 2024-04-12 09:44:44.354 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:44:44.354 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='49c6509578db7666' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-12 09:44:44.354 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/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-12 09:44:44.354 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDE2AG5pY25pZW1h</auth>



*** User 2024-04-12 09:44:44.356 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-12 09:44:44.356 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-04-12 09:44:44.356 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a63b5d14a949ddd0' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3016@domain.example.com'>

*** User 2024-04-12 09:44:44.356 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/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-12 09:44:44.356 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<iq type='set' id='1781d54bba2f6834d60783d71038ecc9'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-12 09:44:44.357 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq id='1781d54bba2f6834d60783d71038ecc9' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-12 09:44:44.357 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<iq type='set' id='86cab41466a57f212153cc8f1e0bb246'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:44.357 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' id='86cab41466a57f212153cc8f1e0bb246' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-12 09:44:44.358 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
<presence/>



*** User 2024-04-12 09:44:44.361 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1'/>



*** User 2024-04-12 09:44:44.377 ***🔗
REST request:
Code: 204
Req: {<0.76984.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"be988a81ea6ec49d">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAxNkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3016@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:44 GMT">>}],
         <<>>,80,10481}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3016@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3016@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-12 09:44:44.377 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3016@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' id='push7b1208a87b8224ca' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3016@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-12 09:44:44.389 ***🔗
REST request:
Code: 204
Req: {<0.77024.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b240f522fc500762">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAxNkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3016@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:44 GMT">>}],
         <<>>,80,6044}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3016@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3016@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-12 09:44:44.389 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3016@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' id='pushefe6fafe983ee0d7' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_3016@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-12 09:44:44.456 ***🔗
REST request:
Code: 204
Req: {<0.77054.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4354c526444af09c">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAxNkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3016@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:44 GMT">>}],
         <<>>,80,61539}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3016@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,role => client,
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3016@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-12 09:44:44.456 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3016@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' id='push44a3bf78c0f589e4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_3016@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-12 09:44:44.482 ***🔗
REST request:
Code: 200
Req: {<0.77080.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7da180d451b21bb8">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAxNkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3016@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3016@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,20488}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3016@domain.example.com">>,
               <<"makrolika">>},
          method => <<"DELETE">>,role => client,
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3016@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3016@domain.example.com\"]}">>,
          return_headers => true}


*** User 2024-04-12 09:44:44.492 ***🔗
REST request:
Code: 200
Req: {<0.77104.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"cab8a5238e1eaae1">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAxNkBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Fri, 12 Apr 2024 09:44:44 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"113">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3016@domain.example.com\"}]">>,
         238,3134}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_3016@domain.example.com">>,
               <<"makrolika">>},
          method => <<"GET">>,role => client,body => <<>>,
          return_headers => true}


*** User 2024-04-12 09:44:44.492 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3016@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1' id='push83dd4f690d030963' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_3016@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-12 09:44:44.492 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 09:44:44.492 ***🔗
mike_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-12 09:44:44.492 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 09:44:44.493 ***🔗
kate_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-12 09:44:44.493 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 09:44:44.493 ***🔗
bob_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-12 09:44:44.493 ***🔗
alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-12 09:44:44.493 ***🔗
alice_add_and_remove_some_contacts_properly_3016@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-12 09:44:44.497 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2662.html



=== Ended at 2024-04-12 09:44:44
=== successfully completed test case
=== === Returned value: ok