=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.9767.2>},
{muc_light_host,<<"muclight.localhost">>},
{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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_client_SUITE.logs/run.2022-01-25_16.34.32/rest_client_suite.add_and_remove_some_contacts_properly.152450.html"},
{tc_group_properties,[{name,roster},{repeat_until_all_ok,3},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@ebe8a8f9fc53.2022-01-25_16.21.59/big_tests.tests.rest_client_SUITE.logs/run.2022-01-25_16.34.32/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => [],mod_amp => [],mod_bosh => [],
mod_cache_users => [{number_of_segments,5},{time_to_live,2}],
mod_carboncopy => [],mod_commands => [],
mod_disco => [{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"}]},
{welcome_message,{[],[]}}],
mod_roster => [{backend,rdbms}],
mod_sic => [],mod_stream_management => [],
mod_vcard => [{backend,rdbms},{host,{prefix,<<"vjud.">>}}]}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ebe8a8f9fc53.2022-01-25_16.21.59"
=== Started at 2022-01-25 16:34:35
*** User 2022-01-25 16:34:35.400 ***
alicE_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.400 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4d6ce2ba5ddc78fc' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:35.400 ***
alicE_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.400 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjI1NABtYXR5Z3J5c2E=</auth>
*** User 2022-01-25 16:34:35.402 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:35.402 ***
alicE_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.402 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4efc78fb1662b9bf' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:35.402 ***
alicE_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.402 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<iq type='set' id='8ac4cf9a4998aeb181bcb771ceff18e9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:35.403 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq id='8ac4cf9a4998aeb181bcb771ceff18e9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_some_contacts_properly_2254@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:35.403 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<iq type='set' id='f5f08479ead42e63c98480ac6a74bad3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:35.403 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq type='result' id='f5f08479ead42e63c98480ac6a74bad3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:35.403 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:35.405 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_2254@localhost/res1' to='alice_add_and_remove_some_contacts_properly_2254@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:35.406 ***
bOb_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.406 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='376c3d31577ada24' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:35.406 ***
bOb_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.406 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzIyNTQAbWFrcm9saWth</auth>
*** User 2022-01-25 16:34:35.407 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:35.407 ***
bOb_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.407 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dfc4fbfb6ce7f42b' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:35.407 ***
bOb_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.408 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<iq type='set' id='66e83ab5abe20bbc26f041964d7e20e9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:35.408 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq id='66e83ab5abe20bbc26f041964d7e20e9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_some_contacts_properly_2254@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:35.408 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<iq type='set' id='128c9c744bb91cb2134aea28dc4fbda7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:35.408 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq type='result' id='128c9c744bb91cb2134aea28dc4fbda7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:35.409 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:35.411 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_2254@localhost/res1' to='bob_add_and_remove_some_contacts_properly_2254@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:35.412 ***
kate_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.414 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f6d4fe0e76151121' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:35.414 ***
kate_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.414 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMjU0AG1ha3Jvd2U7cA==</auth>
*** User 2022-01-25 16:34:35.415 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:35.415 ***
kate_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.415 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ab68b953a3f38309' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:35.416 ***
kate_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.416 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<iq type='set' id='e4442845313227bb0c0940a556c2cb25'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:35.416 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq id='e4442845313227bb0c0940a556c2cb25' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_2254@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:35.416 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<iq type='set' id='381dbadbe235651f414d7b43e0775525'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:35.416 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq type='result' id='381dbadbe235651f414d7b43e0775525'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:35.416 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:35.419 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2254@localhost/res1' to='kate_add_and_remove_some_contacts_properly_2254@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:35.420 ***
mike_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.429 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0aa81a9b8c9d9234' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:35.429 ***
mike_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.429 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMjU0AG5pY25pZW1h</auth>
*** User 2022-01-25 16:34:35.431 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-01-25 16:34:35.431 ***
mike_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.432 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='36aeff030c3f20da' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-01-25 16:34:35.432 ***
mike_add_and_remove_some_contacts_properly_2254@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-01-25 16:34:35.432 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<iq type='set' id='5cbc737af22246d9a8eeaef7a9f73e25'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-01-25 16:34:35.433 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq id='5cbc737af22246d9a8eeaef7a9f73e25' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_2254@localhost/res1</jid>
</bind>
</iq>
*** User 2022-01-25 16:34:35.433 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<iq type='set' id='f77ab68ab683f5e9ec5c6cfc22382f53'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:35.433 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq type='result' id='f77ab68ab683f5e9ec5c6cfc22382f53'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-01-25 16:34:35.433 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 out
<presence/>
*** User 2022-01-25 16:34:35.436 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2254@localhost/res1' to='mike_add_and_remove_some_contacts_properly_2254@localhost/res1' xml:lang='en'/>
*** User 2022-01-25 16:34:35.450 ***
REST request:
Code: 204
Req: {<0.9889.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6c3fc984aaf9b756">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjI1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2254@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:35 GMT">>}],
<<>>,80,6615}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2254@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2254@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:35.450 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2254@localhost' to='bob_add_and_remove_some_contacts_properly_2254@localhost/res1' id='push17fd841cca43dc9e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2254@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:35.465 ***
REST request:
Code: 204
Req: {<0.9918.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"13a5d348bee24c7e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjI1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2254@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:35 GMT">>}],
<<>>,80,6517}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2254@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2254@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:35.466 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2254@localhost' to='bob_add_and_remove_some_contacts_properly_2254@localhost/res1' id='push440b25221f6eeb4e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2254@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:35.530 ***
REST request:
Code: 204
Req: {<0.9948.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2027c8648bda779e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjI1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2254@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:35 GMT">>}],
<<>>,80,55828}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2254@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2254@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:35.530 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2254@localhost' to='bob_add_and_remove_some_contacts_properly_2254@localhost/res1' id='pushb90054327fc1bd7f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2254@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:35.551 ***
REST request:
Code: 200
Req: {<0.9978.2>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"609dc65f8f51540c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjI1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2254@localhost\",\"kate_add_and_remove_some_contacts_properly_2254@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,10972}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2254@localhost\",\"kate_add_and_remove_some_contacts_properly_2254@localhost\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2254@localhost">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:35.563 ***
REST request:
Code: 200
Req: {<0.9995.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"941d55b1ee4f68cd">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjI1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 25 Jan 2022 16:34:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2254@localhost\",\"ask\":\"none\"}]">>,
229,2267}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2254@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-01-25 16:34:35.564 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2254@localhost' to='bob_add_and_remove_some_contacts_properly_2254@localhost/res1' id='pushfdd66cc63442b8d5' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2254@localhost'/>
</query>
</iq>
*** User 2022-01-25 16:34:35.564 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:35.565 ***
mike_add_and_remove_some_contacts_properly_2254@localhost/res1 in
</stream:stream>
*** User 2022-01-25 16:34:35.565 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:35.565 ***
kate_add_and_remove_some_contacts_properly_2254@localhost/res1 in
</stream:stream>
*** User 2022-01-25 16:34:35.565 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:35.566 ***
bOb_add_and_remove_some_contacts_properly_2254@localhost/res1 in
</stream:stream>
*** User 2022-01-25 16:34:35.566 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 out
</stream:stream>
*** User 2022-01-25 16:34:35.566 ***
alicE_add_and_remove_some_contacts_properly_2254@localhost/res1 in
</stream:stream>
=== Ended at 2022-01-25 16:34:35
=== successfully completed test case
=== === Returned value: ok