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

=== Config value:

    [{watchdog,<0.72861.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_client_SUITE.logs/run.2023-12-07_07.57.59/rest_client_suite.add_and_remove_some_contacts_properly.185602.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@d3b7dd7159a8.2023-12-07_07.46.41/big_tests.tests.rest_client_SUITE.logs/run.2023-12-07_07.57.59/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_amp => #{},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_sic => #{iqdisc => one_queue},
        mod_disco =>
            #{iqdisc => one_queue,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_bosh =>
            #{backend => mnesia,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@d3b7dd7159a8.2023-12-07_07.46.41"

=== Started at 2023-12-07 07:58:00


*** CT 2023-12-07 07:58:00.879 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_2415.html

*** User 2023-12-07 07:58:00.896 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.896 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3df07fa9480d7d3a' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-12-07 07:58:00.896 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.896 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYxMABtYXR5Z3J5c2E=</auth>



*** User 2023-12-07 07:58:00.897 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-07 07:58:00.897 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.897 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='45df893a4d074175' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2610@domain.example.com'>

*** User 2023-12-07 07:58:00.898 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.898 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<iq type='set' id='f76e884fcc4c3bfe0a9f8e0e5610b517'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-07 07:58:00.898 ***🔗
alicE_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq id='f76e884fcc4c3bfe0a9f8e0e5610b517' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-12-07 07:58:00.898 ***🔗
alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<iq type='set' id='8c7ab6405de9af12d01dc72df7520a84'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:58:00.899 ***🔗
alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' id='8c7ab6405de9af12d01dc72df7520a84' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:58:00.899 ***🔗
alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<presence/>



*** User 2023-12-07 07:58:00.901 ***🔗
alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1'/>



*** User 2023-12-07 07:58:00.901 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.902 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c3d1879e2cffe443' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-12-07 07:58:00.902 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.902 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI2MTAAbWFrcm9saWth</auth>



*** User 2023-12-07 07:58:00.903 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-07 07:58:00.903 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.903 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f7cade1f063bd15b' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2610@domain.example.com'>

*** User 2023-12-07 07:58:00.903 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.903 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<iq type='set' id='593e32f15ce0fb7540172339e7f79c61'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-07 07:58:00.903 ***🔗
bOb_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq id='593e32f15ce0fb7540172339e7f79c61' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-12-07 07:58:00.903 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<iq type='set' id='24c75f2052bf520ce108c3fbbdde2dd4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:58:00.904 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' id='24c75f2052bf520ce108c3fbbdde2dd4' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:58:00.904 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<presence/>



*** User 2023-12-07 07:58:00.907 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1'/>



*** User 2023-12-07 07:58:00.907 ***🔗
kate_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.907 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='135dede76870d848' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-12-07 07:58:00.907 ***🔗
kate_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.908 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yNjEwAG1ha3Jvd2U7cA==</auth>



*** User 2023-12-07 07:58:00.908 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-07 07:58:00.908 ***🔗
kate_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.909 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='57286bc6d958d802' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2610@domain.example.com'>

*** User 2023-12-07 07:58:00.909 ***🔗
kate_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.909 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<iq type='set' id='5f65f7d6f44df1eb34f3386ae761a318'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-07 07:58:00.909 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq id='5f65f7d6f44df1eb34f3386ae761a318' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-12-07 07:58:00.909 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<iq type='set' id='39dddc654d5228fbf41de2dfdfe821b6'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:58:00.910 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' id='39dddc654d5228fbf41de2dfdfe821b6' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:58:00.910 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<presence/>



*** User 2023-12-07 07:58:00.913 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1'/>



*** User 2023-12-07 07:58:00.913 ***🔗
mike_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.914 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f35195a997c3e0ed' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2023-12-07 07:58:00.914 ***🔗
mike_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.914 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yNjEwAG5pY25pZW1h</auth>



*** User 2023-12-07 07:58:00.924 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2023-12-07 07:58:00.924 ***🔗
mike_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.925 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='401c6494826d2a1f' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2610@domain.example.com'>

*** User 2023-12-07 07:58:00.925 ***🔗
mike_add_and_remove_some_contacts_properly_2610@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 2023-12-07 07:58:00.925 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<iq type='set' id='af85d275bf8aabb194b5853462cb527f'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2023-12-07 07:58:00.925 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq id='af85d275bf8aabb194b5853462cb527f' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2023-12-07 07:58:00.925 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<iq type='set' id='4cae84b75195aff36bc9df7c80974592'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:58:00.926 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' id='4cae84b75195aff36bc9df7c80974592' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2023-12-07 07:58:00.926 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
<presence/>



*** User 2023-12-07 07:58:00.929 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1'/>



*** User 2023-12-07 07:58:00.942 ***🔗
REST request:
Code: 204
Req: {<0.73010.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e1b85c04dcf80f53">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYxMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2610@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>}],
         <<>>,80,5897}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2610@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2610@domain.example.com\"}">>,
          return_headers => true}


*** User 2023-12-07 07:58:00.942 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2610@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' id='push635aa1f945f7a05e' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2610@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:58:00.951 ***🔗
REST request:
Code: 204
Req: {<0.73046.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"515bbb782e85fa79">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYxMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2610@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>}],
         <<>>,80,4455}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2610@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2610@domain.example.com\"}">>,
          return_headers => true}


*** User 2023-12-07 07:58:00.951 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2610@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' id='push3cc67729f88c2bd9' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2610@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:58:00.960 ***🔗
REST request:
Code: 204
Req: {<0.73079.0>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"9280ae056fdf81af">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYxMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2610@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>}],
         <<>>,80,4043}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"POST">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2610@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2610@domain.example.com\"}">>,
          return_headers => true}


*** User 2023-12-07 07:58:00.960 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2610@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' id='push720ea3b56b924735' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2610@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:58:00.969 ***🔗
REST request:
Code: 200
Req: {<0.73103.0>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"1317dafb3c78820e">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYxMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2610@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2610@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,5238}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"DELETE">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2610@domain.example.com">>,
               <<"makrolika">>},
          body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2610@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2610@domain.example.com\"]}">>,
          return_headers => true}


*** User 2023-12-07 07:58:01.027 ***🔗
REST request:
Code: 200
Req: {<0.73126.0>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"3c50b0a26adea0ec">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjYxMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Thu, 07 Dec 2023 07:58:00 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"113">>}],
         <<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2610@domain.example.com\"}]">>,
         238,53567}
Params: #{path => <<"/api/contacts">>,
          server => #{node => mongooseim@localhost},
          role => client,method => <<"GET">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2610@domain.example.com">>,
               <<"makrolika">>},
          body => <<>>,return_headers => true}


*** User 2023-12-07 07:58:01.027 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2610@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1' id='pushd4271c77831b88eb' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2610@domain.example.com'/>
	</query>
</iq>



*** User 2023-12-07 07:58:01.027 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
</stream:stream>

*** User 2023-12-07 07:58:01.027 ***🔗
mike_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
</stream:stream>

*** User 2023-12-07 07:58:01.027 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
</stream:stream>

*** User 2023-12-07 07:58:01.028 ***🔗
kate_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
</stream:stream>

*** User 2023-12-07 07:58:01.028 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
</stream:stream>

*** User 2023-12-07 07:58:01.028 ***🔗
bob_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
</stream:stream>

*** User 2023-12-07 07:58:01.028 ***🔗
alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 out
</stream:stream>

*** User 2023-12-07 07:58:01.028 ***🔗
alice_add_and_remove_some_contacts_properly_2610@domain.example.com/res1 in
</stream:stream>
*** CT 2023-12-07 07:58:01.030 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_2415.html



=== Ended at 2023-12-07 07:58:01
=== successfully completed test case
=== === Returned value: ok