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

=== Config value:

    [{watchdog,<0.1986.2>},
     {muc_light_host,<<"muclight.domain.example.com">>},
     {mam_backend,rdbms},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.04.42/rest_client_suite.add_and_remove_some_contacts_properly.110083.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@df370d24fb6d.2022-05-11_08.56.40/big_tests.tests.rest_client_SUITE.logs/run.2022-05-11_09.04.42/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"test type">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_commands => #{},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_muc_commands => #{},mod_muc_light_commands => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@df370d24fb6d.2022-05-11_08.56.40"

=== Started at 2022-05-11 09:04:45


*** CT 2022-05-11 09:04:45.359 *** View log from node mongooseim@localhost when started mongooseim@localhost_2607.html
*** CT 2022-05-11 09:04:45.359 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_524.html

*** User 2022-05-11 09:04:45.373 ***
alicE_add_and_remove_some_contacts_properly_2030@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 2022-05-11 09:04:45.374 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9776762e63dc0cc2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:45.374 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-11 09:04:45.374 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMABtYXR5Z3J5c2E=</auth>



*** User 2022-05-11 09:04:45.374 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:04:45.375 ***
alicE_add_and_remove_some_contacts_properly_2030@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 2022-05-11 09:04:45.375 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='59dde763260172ec' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:45.375 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-11 09:04:45.375 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='04870c9442e1012e1c303b9b8a1d05c6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:04:45.375 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq id='04870c9442e1012e1c303b9b8a1d05c6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:04:45.375 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='368587b9d67e139053083db7f87e3cf7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:45.376 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq type='result' id='368587b9d67e139053083db7f87e3cf7'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:45.376 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<presence/>



*** User 2022-05-11 09:04:45.377 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:04:45.378 ***
bOb_add_and_remove_some_contacts_properly_2030@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 2022-05-11 09:04:45.378 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d501e7d599d46d18' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:45.378 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-11 09:04:45.378 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzIwMzAAbWFrcm9saWth</auth>



*** User 2022-05-11 09:04:45.379 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:04:45.379 ***
bOb_add_and_remove_some_contacts_properly_2030@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 2022-05-11 09:04:45.379 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a262fb980acf7a0a' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:45.379 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-11 09:04:45.380 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='45bcb437b2daa21a090e76c90cfa57da'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:04:45.380 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq id='45bcb437b2daa21a090e76c90cfa57da' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:04:45.380 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='39e3a532a9ffabd82e243d586c5da5b4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:45.380 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq type='result' id='39e3a532a9ffabd82e243d586c5da5b4'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:45.380 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<presence/>



*** User 2022-05-11 09:04:45.382 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:04:45.382 ***
kate_add_and_remove_some_contacts_properly_2030@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 2022-05-11 09:04:45.383 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3585df1e460401a2' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:45.383 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-11 09:04:45.383 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMDMwAG1ha3Jvd2U7cA==</auth>



*** User 2022-05-11 09:04:45.385 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:04:45.385 ***
kate_add_and_remove_some_contacts_properly_2030@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 2022-05-11 09:04:45.385 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2484f73c9c193eda' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:45.385 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-11 09:04:45.385 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='6b60c91cca83de055cc09b0e0c5310d6'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:04:45.386 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq id='6b60c91cca83de055cc09b0e0c5310d6' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:04:45.386 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='0027d161cf00a98807d5d312b91d1bdc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:45.386 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq type='result' id='0027d161cf00a98807d5d312b91d1bdc'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:45.386 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<presence/>



*** User 2022-05-11 09:04:45.387 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:04:45.388 ***
mike_add_and_remove_some_contacts_properly_2030@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 2022-05-11 09:04:45.389 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='04376b26e2bfec8f' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:45.389 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-11 09:04:45.389 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMDMwAG5pY25pZW1h</auth>



*** User 2022-05-11 09:04:45.389 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-11 09:04:45.390 ***
mike_add_and_remove_some_contacts_properly_2030@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 2022-05-11 09:04:45.390 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='aa36205f8b88a854' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-11 09:04:45.390 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-11 09:04:45.390 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='49057c4abdc3609fa852f763b3b9eaee'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-11 09:04:45.390 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq id='49057c4abdc3609fa852f763b3b9eaee' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-11 09:04:45.390 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='0147a42e3b1c1f12da8dd733438a50fb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:45.391 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq type='result' id='0147a42e3b1c1f12da8dd733438a50fb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-11 09:04:45.391 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<presence/>



*** User 2022-05-11 09:04:45.392 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-11 09:04:45.409 ***
REST request:
Code: 204
Req: {<0.2109.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"e2700a496eb46fde">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>}],
         <<>>,80,7946}
Params: #{body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:45.409 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2030@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' id='pusha6a986d20376f22f' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2030@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:45.426 ***
REST request:
Code: 204
Req: {<0.2134.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"aab20ec0c89c5730">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>}],
         <<>>,80,4003}
Params: #{body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:45.426 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2030@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' id='pusha9f15f7e0873ed13' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2030@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:45.478 ***
REST request:
Code: 204
Req: {<0.2166.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"7bbbeedaff1ff5a4">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>}],
         <<>>,80,45166}
Params: #{body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:45.479 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2030@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' id='push0f6975b3d47cd90d' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2030@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:45.490 ***
REST request:
Code: 200
Req: {<0.2198.2>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"dfb1aaae95b1c4df">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2030@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2030@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,3995}
Params: #{body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2030@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2030@domain.example.com\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
               <<"makrolika">>},
          method => <<"DELETE">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:45.499 ***
REST request:
Code: 200
Req: {<0.2218.2>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"4c5a30290a83f8ff">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 11 May 2022 09:04:45 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"113">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2030@domain.example.com\",\"ask\":\"none\"}]">>,
         238,1238}
Params: #{body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-11 09:04:45.499 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2030@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' id='push5d25ea468f30e326' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2030@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-11 09:04:45.499 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-11 09:04:45.500 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
</stream:stream>

*** User 2022-05-11 09:04:45.500 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-11 09:04:45.500 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
</stream:stream>

*** User 2022-05-11 09:04:45.501 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-11 09:04:45.501 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
</stream:stream>

*** User 2022-05-11 09:04:45.501 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-11 09:04:45.501 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
</stream:stream>
*** CT 2022-05-11 09:04:45.506 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_524.html
*** CT 2022-05-11 09:04:45.507 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2607.html



=== Ended at 2022-05-11 09:04:45
=== successfully completed test case
=== === Returned value: ok