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

=== Config value:

    [{watchdog,<0.2322.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,"odbc_mssql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.rest_client_SUITE.logs/run.2022-05-25_09.13.27/rest_client_suite.add_and_remove_some_contacts_properly.115331.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@f0b09cc3aef4.2022-05-25_09.03.38/big_tests.tests.rest_client_SUITE.logs/run.2022-05-25_09.13.27/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@f0b09cc3aef4.2022-05-25_09.03.38"

=== Started at 2022-05-25 09:13:30


*** CT 2022-05-25 09:13:30.655 *** View log from node mongooseim@localhost when started mongooseim@localhost_2525.html
*** CT 2022-05-25 09:13:30.656 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_520.html

*** User 2022-05-25 09:13:30.673 ***
alicE_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.673 ***
alicE_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='566112b29483707f' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:30.673 ***
alicE_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.673 ***
alicE_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjA2OQBtYXR5Z3J5c2E=</auth>



*** User 2022-05-25 09:13:30.674 ***
alicE_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:13:30.674 ***
alicE_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.675 ***
alicE_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cad0e694e0af11ef' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:30.675 ***
alicE_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.675 ***
alicE_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<iq type='set' id='a754b8cf5c7b1acad2cc6edc9951ee86'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:13:30.675 ***
alicE_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq id='a754b8cf5c7b1acad2cc6edc9951ee86' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_add_and_remove_some_contacts_properly_2069@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:13:30.675 ***
alice_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<iq type='set' id='742542612496755d0b3705f291365b0d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:30.676 ***
alice_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq type='result' id='742542612496755d0b3705f291365b0d'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:30.676 ***
alice_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<presence/>



*** User 2022-05-25 09:13:30.678 ***
alice_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:30.679 ***
bOb_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.679 ***
bOb_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8a88f65cf935628b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:30.679 ***
bOb_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.679 ***
bOb_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzIwNjkAbWFrcm9saWth</auth>



*** User 2022-05-25 09:13:30.680 ***
bOb_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:13:30.680 ***
bOb_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.680 ***
bOb_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eff0746bbde0ac07' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:30.681 ***
bOb_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.681 ***
bOb_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<iq type='set' id='7d760876d193effe0779d7628980dd94'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:13:30.681 ***
bOb_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq id='7d760876d193effe0779d7628980dd94' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:13:30.681 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<iq type='set' id='2048cb508483b22f9aef84d820f9fdfb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:30.682 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq type='result' id='2048cb508483b22f9aef84d820f9fdfb'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:30.682 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<presence/>



*** User 2022-05-25 09:13:30.684 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:30.684 ***
kate_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.685 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e10606ed6f8ad7b' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:30.685 ***
kate_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.685 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMDY5AG1ha3Jvd2U7cA==</auth>



*** User 2022-05-25 09:13:30.686 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:13:30.687 ***
kate_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.687 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f9f50d951ee9ff17' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:30.687 ***
kate_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.687 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<iq type='set' id='0fbb2811e981068ca1b1fd6e259e0602'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:13:30.687 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq id='0fbb2811e981068ca1b1fd6e259e0602' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:13:30.687 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<iq type='set' id='edf19c9628ca98fe7b52b2ded4e1d447'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:30.688 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq type='result' id='edf19c9628ca98fe7b52b2ded4e1d447'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:30.688 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<presence/>



*** User 2022-05-25 09:13:30.690 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:30.691 ***
mike_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.691 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e806afe784c77306' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:30.691 ***
mike_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.691 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMDY5AG5pY25pZW1h</auth>



*** User 2022-05-25 09:13:30.693 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-25 09:13:30.693 ***
mike_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.694 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5654d7505c9a314e' from='domain.example.com' version='1.0' xml:lang='en'>

*** User 2022-05-25 09:13:30.694 ***
mike_add_and_remove_some_contacts_properly_2069@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-25 09:13:30.694 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<iq type='set' id='74038f4bb86145245d14e15c81a0244d'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-25 09:13:30.694 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq id='74038f4bb86145245d14e15c81a0244d' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1</jid>
	</bind>
</iq>



*** User 2022-05-25 09:13:30.694 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<iq type='set' id='f47d050f4f569bf89213289c45d3aad3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:30.695 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq type='result' id='f47d050f4f569bf89213289c45d3aad3'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-25 09:13:30.695 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
<presence/>



*** User 2022-05-25 09:13:30.697 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' xml:lang='en'/>



*** User 2022-05-25 09:13:30.764 ***
REST request:
Code: 204
Req: {<0.2445.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"0df379d482d1e852">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjA2OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2069@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>}],
         <<>>,80,58996}
Params: #{body =>
              <<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2069@domain.example.com\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2069@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:30.764 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2069@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' id='push575572ec780d5005' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2069@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:30.779 ***
REST request:
Code: 204
Req: {<0.2475.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"647b9ee4b454b285">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjA2OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2069@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>}],
         <<>>,80,4349}
Params: #{body =>
              <<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2069@domain.example.com\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2069@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:30.779 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2069@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' id='push64eb0c4b782f63af' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2069@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:30.794 ***
REST request:
Code: 204
Req: {<0.2498.2>,<<"/api/contacts">>,<<"POST">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"585cfc499b1d9f4a">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjA2OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2069@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>}],
         <<>>,80,4861}
Params: #{body =>
              <<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2069@domain.example.com\"}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2069@domain.example.com">>,
               <<"makrolika">>},
          method => <<"POST">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:30.794 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2069@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' id='push8e2b9891fe4cbff6' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2069@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:30.810 ***
REST request:
Code: 200
Req: {<0.2529.2>,<<"/api/contacts">>,<<"DELETE">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"75f0294f292e0211">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjA2OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2069@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2069@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"18">>}],
         <<"{\"not_deleted\":[]}">>,142,6442}
Params: #{body =>
              <<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2069@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2069@domain.example.com\"]}">>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2069@domain.example.com">>,
               <<"makrolika">>},
          method => <<"DELETE">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:30.866 ***
REST request:
Code: 200
Req: {<0.2549.2>,<<"/api/contacts">>,<<"GET">>,
      [{<<"Content-Type">>,<<"application/json">>},
       {<<"Request-Id">>,<<"00034d132d4d0b14">>},
       {<<"authorization">>,
        <<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjA2OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
      <<>>}
Result: {{<<"200">>,<<"OK">>},
         [{<<"server">>,<<"Cowboy">>},
          {<<"date">>,<<"Wed, 25 May 2022 09:13:30 GMT">>},
          {<<"content-type">>,<<"application/json">>},
          {<<"content-length">>,<<"113">>}],
         <<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2069@domain.example.com\",\"ask\":\"none\"}]">>,
         238,2676}
Params: #{body => <<>>,
          creds =>
              {<<"bob_add_and_remove_some_contacts_properly_2069@domain.example.com">>,
               <<"makrolika">>},
          method => <<"GET">>,path => <<"/api/contacts">>,
          return_headers => true,role => client,
          server => #{node => mongooseim@localhost}}


*** User 2022-05-25 09:13:30.866 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2069@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1' id='pushf1f172d7b8834976' type='set'>
	<query xmlns='jabber:iq:roster'>
		<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2069@domain.example.com'/>
	</query>
</iq>



*** User 2022-05-25 09:13:30.866 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-25 09:13:30.867 ***
mike_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
</stream:stream>

*** User 2022-05-25 09:13:30.867 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-25 09:13:30.867 ***
kate_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
</stream:stream>

*** User 2022-05-25 09:13:30.868 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-25 09:13:30.868 ***
bob_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
</stream:stream>

*** User 2022-05-25 09:13:30.868 ***
alice_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 out
</stream:stream>

*** User 2022-05-25 09:13:30.868 ***
alice_add_and_remove_some_contacts_properly_2069@domain.example.com/res1 in
</stream:stream>
*** CT 2022-05-25 09:13:30.875 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_520.html
*** CT 2022-05-25 09:13:30.876 *** View log from node mongooseim@localhost when finished mongooseim@localhost_2525.html



=== Ended at 2022-05-25 09:13:30
=== successfully completed test case
=== === Returned value: ok