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

=== Config value:

    [{watchdog,<0.76622.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@83d0658cfa1c.2024-04-25_16.16.58/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_16.29.28/rest_client_suite.add_and_remove_some_contacts_properly.152579.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@83d0658cfa1c.2024-04-25_16.16.58/big_tests.tests.rest_client_SUITE.logs/run.2024-04-25_16.29.28/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_sic => #{iqdisc => one_queue},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_amp => #{},
        mod_disco =>
            #{users_can_see_hidden_services => false,iqdisc => one_queue,
              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_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@83d0658cfa1c.2024-04-25_16.16.58"

=== Started at 2024-04-25 16:29:30


*** CT 2024-04-25 16:29:30.055 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2370.html

*** User 2024-04-25 16:29:30.068 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.068 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5f63ee4be45ce050' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:29:30.069 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.069 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyNQBtYXR5Z3J5c2E=</auth>



*** User 2024-04-25 16:29:30.070 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:29:30.070 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.070 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='550cc4d01c0390e3' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2825@domain.example.com'>

*** User 2024-04-25 16:29:30.070 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.070 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<iq type='set' id='16ae9b07fde89c6225c7d7e7a9fb7132'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:29:30.070 ***🔗
alicE_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq id='16ae9b07fde89c6225c7d7e7a9fb7132' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:29:30.070 ***🔗
alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<iq type='set' id='d48ea1c3ff3ad8a80e56d2cf5b5f3b31'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:30.071 ***🔗
alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' id='d48ea1c3ff3ad8a80e56d2cf5b5f3b31' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:30.071 ***🔗
alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:29:30.073 ***🔗
alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1'/>



*** User 2024-04-25 16:29:30.073 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.074 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4eba4211ec5b7e0a' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:29:30.074 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.074 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI4MjUAbWFrcm9saWth</auth>



*** User 2024-04-25 16:29:30.075 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:29:30.075 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.075 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='abf30e7021135531' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2825@domain.example.com'>

*** User 2024-04-25 16:29:30.075 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.075 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<iq type='set' id='84076cc737091468ea6b8f7d1960bd93'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:29:30.075 ***🔗
bOb_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq id='84076cc737091468ea6b8f7d1960bd93' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:29:30.075 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<iq type='set' id='1af668b47960b4757b67208dbf6ec55a'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:30.076 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' id='1af668b47960b4757b67208dbf6ec55a' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:30.076 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:29:30.078 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1'/>



*** User 2024-04-25 16:29:30.079 ***🔗
kate_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.079 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf9352acce3e56ea' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:29:30.079 ***🔗
kate_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.079 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yODI1AG1ha3Jvd2U7cA==</auth>



*** User 2024-04-25 16:29:30.080 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:29:30.080 ***🔗
kate_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.080 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='039938a7517691e4' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2825@domain.example.com'>

*** User 2024-04-25 16:29:30.081 ***🔗
kate_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.081 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<iq type='set' id='15d97a4af83752f4f0115985ec7a4c39'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:29:30.081 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq id='15d97a4af83752f4f0115985ec7a4c39' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:29:30.081 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<iq type='set' id='1ca935a8d6016971b4b471a82c2fea10'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:30.082 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' id='1ca935a8d6016971b4b471a82c2fea10' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:30.082 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:29:30.084 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1'/>



*** User 2024-04-25 16:29:30.084 ***🔗
mike_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.085 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='791fc79685500f65' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2024-04-25 16:29:30.085 ***🔗
mike_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.085 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yODI1AG5pY25pZW1h</auth>



*** User 2024-04-25 16:29:30.086 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-04-25 16:29:30.086 ***🔗
mike_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.086 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f85a4ceb05b52657' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2825@domain.example.com'>

*** User 2024-04-25 16:29:30.086 ***🔗
mike_add_and_remove_some_contacts_properly_2825@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-25 16:29:30.086 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<iq type='set' id='f8f7bb64340139e3972fe07d61196ae2'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-04-25 16:29:30.086 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq id='f8f7bb64340139e3972fe07d61196ae2' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2024-04-25 16:29:30.086 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<iq type='set' id='206516a215c37e0e375b1b565c3ac620'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:30.087 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' id='206516a215c37e0e375b1b565c3ac620' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-04-25 16:29:30.087 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
<presence/>



*** User 2024-04-25 16:29:30.089 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1'/>



*** User 2024-04-25 16:29:30.100 ***🔗
REST request:
Code: 204
Req: {<0.76755.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"50d05a895dcd247e">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2825@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:29:30 GMT">>}],
         <<>>,80,5189}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2825@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2825@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-25 16:29:30.100 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2825@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' id='push2615b62e17e7d55c' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_2825@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 16:29:30.110 ***🔗
REST request:
Code: 204
Req: {<0.76801.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"efdd658b1f2efb1a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2825@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:29:30 GMT">>}],
         <<>>,80,5194}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2825@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2825@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-25 16:29:30.110 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2825@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' id='push7179b02a863e55c2' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='kate_add_and_remove_some_contacts_properly_2825@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 16:29:30.120 ***🔗
REST request:
Code: 204
Req: {<0.76844.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"98159e33312b5b1a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2825@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:29:30 GMT">>}],
         <<>>,80,6009}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"POST">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2825@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2825@domain.example.com\"}">>,
          return_headers => true}


*** User 2024-04-25 16:29:30.120 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2825@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' id='pushb0505a70adfb2cb4' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='mike_add_and_remove_some_contacts_properly_2825@domain.example.com' subscription='none'/>
	</query>
</iq>



*** User 2024-04-25 16:29:30.179 ***🔗
REST request:
Code: 200
Req: {<0.76870.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"80e17e0f2f3e26c0">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2825@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2825@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:29:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,54250}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"DELETE">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2825@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2825@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2825@domain.example.com\"]}">>,
          return_headers => true}


*** User 2024-04-25 16:29:30.187 ***🔗
REST request:
Code: 200
Req: {<0.76891.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"f5bddbcbcf0152e8">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjgyNUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 25 Apr 2024 16:29:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"113">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2825@domain.example.com\"}]">>,
         238,2788}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          method => <<"GET">>,role => client,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2825@domain.example.com">>,
               <<"makrolika">>},
          body => <<>>,return_headers => true}


*** User 2024-04-25 16:29:30.187 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2825@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1' id='push14083e8c924b3ddf' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item jid='alice_add_and_remove_some_contacts_properly_2825@domain.example.com' subscription='remove'/>
	</query>
</iq>



*** User 2024-04-25 16:29:30.187 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 16:29:30.187 ***🔗
mike_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-25 16:29:30.187 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 16:29:30.188 ***🔗
kate_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-25 16:29:30.188 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 16:29:30.188 ***🔗
bob_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
</stream:stream>

*** User 2024-04-25 16:29:30.188 ***🔗
alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 out
</stream:stream>

*** User 2024-04-25 16:29:30.188 ***🔗
alice_add_and_remove_some_contacts_properly_2825@domain.example.com/res1 in
</stream:stream>
*** CT 2024-04-25 16:29:30.190 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2370.html



=== Ended at 2024-04-25 16:29:30
=== successfully completed test case
=== === Returned value: ok