=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.23949.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,riak},
{archive_wait,2500},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.rest_client_SUITE.logs/run.2022-05-25_10.51.25/rest_client_suite.add_and_remove_some_contacts_properly.67331.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@901bd2a377ee.2022-05-25_10.38.09/big_tests.tests.rest_client_SUITE.logs/run.2022-05-25_10.51.25/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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 => riak,iqdisc => one_queue,
riak =>
#{bucket_type => <<"rosters">>,
version_bucket_type => <<"roster_versions">>},
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 => riak,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,
riak =>
#{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@901bd2a377ee.2022-05-25_10.38.09"
=== Started at 2022-05-25 10:51:45
*** User 2022-05-25 10:51:45.479 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:45.479 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b06682ad7e76a3d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:45.479 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/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 10:51:45.479 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTU5NQBtYXR5Z3J5c2E=</auth>
*** User 2022-05-25 10:51:45.481 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:45.481 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:45.482 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='42ac3ff6db235c6c' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:45.482 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/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 10:51:45.482 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<iq type='set' id='0aefa818922cc027b71dff01225ddb30'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:45.482 ***
alicE_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq id='0aefa818922cc027b71dff01225ddb30' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_1595@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:45.482 ***
alice_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<iq type='set' id='fb7d7ed873d2c4433fe2ef1d8a10ad8a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:45.483 ***
alice_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq type='result' id='fb7d7ed873d2c4433fe2ef1d8a10ad8a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:45.483 ***
alice_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:45.486 ***
alice_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_1595@localhost/res1' to='alice_add_and_remove_some_contacts_properly_1595@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:45.486 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:45.487 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='51e44707e86bb25b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:45.487 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/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 10:51:45.487 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE1OTUAbWFrcm9saWth</auth>
*** User 2022-05-25 10:51:45.495 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:45.495 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:45.575 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0dac3218c77889d6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:45.575 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/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 10:51:45.575 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<iq type='set' id='8d629dee8165d346cb802c7ec077c9cf'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:45.576 ***
bOb_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq id='8d629dee8165d346cb802c7ec077c9cf' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_1595@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:45.576 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<iq type='set' id='2a568a0bfd39656d415009a7c6d83ea8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:45.577 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq type='result' id='2a568a0bfd39656d415009a7c6d83ea8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:45.577 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:45.582 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_1595@localhost/res1' to='bob_add_and_remove_some_contacts_properly_1595@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:45.582 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:45.583 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dc9309d394b137b7' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:45.583 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/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 10:51:45.583 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNTk1AG1ha3Jvd2U7cA==</auth>
*** User 2022-05-25 10:51:45.585 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:45.585 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:45.585 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5919e8cfda0cb09d' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:45.585 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/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 10:51:45.585 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<iq type='set' id='d22694ade7b6965ec0ec8b30c080ad3f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:45.585 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq id='d22694ade7b6965ec0ec8b30c080ad3f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_1595@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:45.585 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<iq type='set' id='005604dcfe08109c7ee72ff26d8786b1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:45.586 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq type='result' id='005604dcfe08109c7ee72ff26d8786b1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:45.586 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:45.589 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1595@localhost/res1' to='kate_add_and_remove_some_contacts_properly_1595@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:45.589 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:45.590 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='607e515220b9a219' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:45.590 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/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 10:51:45.590 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNTk1AG5pY25pZW1h</auth>
*** User 2022-05-25 10:51:45.592 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-05-25 10:51:45.592 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-05-25 10:51:45.593 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4f2194ebef485d30' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-05-25 10:51:45.593 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/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 10:51:45.593 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<iq type='set' id='a8b65d05d76e9f0b08cb41714553a954'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-05-25 10:51:45.594 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq id='a8b65d05d76e9f0b08cb41714553a954' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_1595@localhost/res1</jid>
</bind>
</iq>
*** User 2022-05-25 10:51:45.594 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<iq type='set' id='0065c757c785cf00d93b761f4fd7277c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:45.594 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq type='result' id='0065c757c785cf00d93b761f4fd7277c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-05-25 10:51:45.594 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 out
<presence/>
*** User 2022-05-25 10:51:45.677 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1595@localhost/res1' to='mike_add_and_remove_some_contacts_properly_1595@localhost/res1' xml:lang='en'/>
*** User 2022-05-25 10:51:45.694 ***
REST request:
Code: 204
Req: {<0.24081.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"44944e54a31a83b2">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTU5NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1595@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:45 GMT">>}],
<<>>,80,5504}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1595@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1595@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:45.694 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1595@localhost' to='bob_add_and_remove_some_contacts_properly_1595@localhost/res1' id='push4f528c0586937997' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_1595@localhost'/>
</query>
</iq>
*** User 2022-05-25 10:51:45.783 ***
REST request:
Code: 204
Req: {<0.24113.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ab07674659e8ad78">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTU5NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1595@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:45 GMT">>}],
<<>>,80,7409}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1595@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1595@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:45.784 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1595@localhost' to='bob_add_and_remove_some_contacts_properly_1595@localhost/res1' id='pushea95b9b151b96a20' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_1595@localhost'/>
</query>
</iq>
*** User 2022-05-25 10:51:45.876 ***
REST request:
Code: 204
Req: {<0.24135.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2d7df7b75dcb68bd">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTU5NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1595@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:45 GMT">>}],
<<>>,80,80571}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1595@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1595@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:45.877 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1595@localhost' to='bob_add_and_remove_some_contacts_properly_1595@localhost/res1' id='push733f7fc0d68ce4f6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_1595@localhost'/>
</query>
</iq>
*** User 2022-05-25 10:51:45.898 ***
REST request:
Code: 200
Req: {<0.24161.1>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6696b7332227a8b0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTU5NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1595@localhost\",\"kate_add_and_remove_some_contacts_properly_1595@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,11875}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1595@localhost\",\"kate_add_and_remove_some_contacts_properly_1595@localhost\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1595@localhost">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:45.980 ***
REST request:
Code: 200
Req: {<0.24190.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1247284e5cb0873c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTU5NUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 25 May 2022 10:51:45 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1595@localhost\",\"ask\":\"none\"}]">>,
229,3508}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1595@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-05-25 10:51:45.980 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1595@localhost' to='bob_add_and_remove_some_contacts_properly_1595@localhost/res1' id='pushb22cced9a71d1e8a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_1595@localhost'/>
</query>
</iq>
*** User 2022-05-25 10:51:45.980 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:45.981 ***
mike_add_and_remove_some_contacts_properly_1595@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:51:45.981 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:45.982 ***
kate_add_and_remove_some_contacts_properly_1595@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:51:45.982 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:45.982 ***
bob_add_and_remove_some_contacts_properly_1595@localhost/res1 in
</stream:stream>
*** User 2022-05-25 10:51:45.982 ***
alice_add_and_remove_some_contacts_properly_1595@localhost/res1 out
</stream:stream>
*** User 2022-05-25 10:51:45.983 ***
alice_add_and_remove_some_contacts_properly_1595@localhost/res1 in
</stream:stream>
=== Ended at 2022-05-25 10:51:46
=== successfully completed test case
=== === Returned value: ok