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

=== Config value:

    [{watchdog,<0.76700.0>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {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@e8b7f85c8254.2024-04-24_13.09.52/big_tests.tests.rest_client_SUITE.logs/run.2024-04-24_13.22.06/rest_client_suite.add_and_remove_some_contacts_properly.171523.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@e8b7f85c8254.2024-04-24_13.09.52/big_tests.tests.rest_client_SUITE.logs/run.2024-04-24_13.22.06/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,backend => rdbms,iqdisc => parallel},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,versioning => false,
              store_current_id => false},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_amp => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        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_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@e8b7f85c8254.2024-04-24_13.09.52"

=== Started at 2024-04-24 13:22:08


*** CT 2024-04-24 13:22:08.519 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2366.html

*** User 2024-04-24 13:22:08.544 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.544 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='975e7d512a4200a2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:22:08.544 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.545 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgzNABtYXR5Z3J5c2E=</auth>



*** User 2024-04-24 13:22:08.546 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:22:08.546 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.546 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='281977eeba4ae16c' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2834@domain.example.com'>

*** User 2024-04-24 13:22:08.546 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.546 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<iq type='set' id='d0fa2a28929efd09befa9321b29cf8fa'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:22:08.547 ***🔗
alicE_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq id='d0fa2a28929efd09befa9321b29cf8fa' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:22:08.547 ***🔗
alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<iq type='set' id='c5245324e77832bc82dc4a41c522f1c7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:22:08.550 ***🔗
alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' id='c5245324e77832bc82dc4a41c522f1c7' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:22:08.550 ***🔗
alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<presence/>



*** User 2024-04-24 13:22:08.553 ***🔗
alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1'/>



*** User 2024-04-24 13:22:08.554 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.554 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9848362f9d7e2c14' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:22:08.554 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.554 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI4MzQAbWFrcm9saWth</auth>



*** User 2024-04-24 13:22:08.556 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:22:08.556 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.556 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d1b2b202e44415b9' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2834@domain.example.com'>

*** User 2024-04-24 13:22:08.556 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.557 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<iq type='set' id='a4b084ebc2ef4cee7b03621bda1f9fc0'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:22:08.557 ***🔗
bOb_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq id='a4b084ebc2ef4cee7b03621bda1f9fc0' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:22:08.557 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<iq type='set' id='a43c23c838df3778025d5afa6d4defc3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:22:08.559 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' id='a43c23c838df3778025d5afa6d4defc3' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:22:08.559 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<presence/>



*** User 2024-04-24 13:22:08.572 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1'/>



*** User 2024-04-24 13:22:08.572 ***🔗
kate_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.573 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='69557d57d79067a2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:22:08.573 ***🔗
kate_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.573 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yODM0AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-24 13:22:08.575 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:22:08.575 ***🔗
kate_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.575 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5060be0129ce7ec8' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2834@domain.example.com'>

*** User 2024-04-24 13:22:08.575 ***🔗
kate_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.575 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<iq type='set' id='4e89d132dcacfa54ea7af86daf1bd936'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:22:08.576 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq id='4e89d132dcacfa54ea7af86daf1bd936' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:22:08.576 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<iq type='set' id='1acbd0eab36453dc0f1247d014e54c7d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:22:08.577 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' id='1acbd0eab36453dc0f1247d014e54c7d' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:22:08.577 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<presence/>



*** User 2024-04-24 13:22:08.580 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1'/>



*** User 2024-04-24 13:22:08.580 ***🔗
mike_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.581 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='358c210833287d5f' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-24 13:22:08.581 ***🔗
mike_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.581 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yODM0AG5pY25pZW1h</auth>



*** User 2024-04-24 13:22:08.582 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-24 13:22:08.582 ***🔗
mike_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.583 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2fed52475f292c27' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2834@domain.example.com'>

*** User 2024-04-24 13:22:08.583 ***🔗
mike_add_and_remove_some_contacts_properly_2834@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-24 13:22:08.584 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<iq type='set' id='bdb4b82e079b1f19f2d479b032841361'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-24 13:22:08.584 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq id='bdb4b82e079b1f19f2d479b032841361' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-24 13:22:08.584 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<iq type='set' id='419ffde7b24a567bf1d616fe7d05a031'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:22:08.585 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' id='419ffde7b24a567bf1d616fe7d05a031' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-24 13:22:08.585 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
<presence/>



*** User 2024-04-24 13:22:08.588 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1'/>



*** User 2024-04-24 13:22:08.598 ***🔗
REST request:
Code: 204
Req: {<0.76843.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9565d62dc5558b11">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgzNEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2834@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:22:08 GMT">>}],
         <<>>,80,4550}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2834@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2834@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-24 13:22:08.598 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2834@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' id='push2e06f5539f2f83be' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_2834@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-24 13:22:08.614 ***🔗
REST request:
Code: 204
Req: {<0.76869.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"6fec928f1ab69962">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgzNEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2834@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:22:08 GMT">>}],
         <<>>,80,9682}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2834@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2834@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-24 13:22:08.614 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2834@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' id='push813913f4b2229937' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_2834@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-24 13:22:08.676 ***🔗
REST request:
Code: 204
Req: {<0.76900.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"93dc301ff5284688">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgzNEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2834@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:22:08 GMT">>}],
         <<>>,80,46047}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2834@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2834@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-24 13:22:08.676 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2834@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' id='push24df2b3de206b0bc' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_2834@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-24 13:22:08.688 ***🔗
REST request:
Code: 200
Req: {<0.76942.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"99b48e536a510887">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgzNEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2834@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2834@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:22:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,7140}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"DELETE">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2834@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2834@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2834@domain.example.com\"]}">>,
          return_headers => true}


*** User 2024-04-24 13:22:08.698 ***🔗
REST request:
Code: 200
Req: {<0.76954.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"b25fd6fbfaf5c824">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgzNEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 24 Apr 2024 13:22:08 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"113">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2834@domain.example.com\"}]">>,
         238,3116}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"GET">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2834@domain.example.com">>,
               <<"makrolika">>},
          body => <<>>,return_headers => true}


*** User 2024-04-24 13:22:08.699 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2834@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1' id='pushac2f48dd52fcc308' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_2834@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-24 13:22:08.699 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-24 13:22:08.699 ***🔗
mike_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-24 13:22:08.699 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-24 13:22:08.700 ***🔗
kate_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-24 13:22:08.700 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-24 13:22:08.700 ***🔗
bob_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-24 13:22:08.700 ***🔗
alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-24 13:22:08.700 ***🔗
alice_add_and_remove_some_contacts_properly_2834@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-24 13:22:08.704 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2366.html



=== Ended at 2024-04-24 13:22:08
=== successfully completed test case
=== === Returned value: ok