=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.26469.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"elasticsearch_and_cassandra_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@47358c7e636c.2022-06-22_09.17.07/big_tests.tests.rest_client_SUITE.logs/run.2022-06-22_09.29.09/rest_client_suite.add_and_remove_some_contacts_properly.43396.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@47358c7e636c.2022-06-22_09.17.07/big_tests.tests.rest_client_SUITE.logs/run.2022-06-22_09.29.09/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 => mnesia,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 => mnesia,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@47358c7e636c.2022-06-22_09.17.07"
=== Started at 2022-06-22 09:29:11
*** User 2022-06-22 09:29:11.030 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.031 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1e091d8263abb52e' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:29:11.031 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.031 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY5OABtYXR5Z3J5c2E=</auth>
*** User 2022-06-22 09:29:11.032 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:29:11.032 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.032 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5cbe4c32d4887dd' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:29:11.032 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.032 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<iq type='set' id='50a2e83027a74a2bd0d0fb621039872c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:29:11.033 ***🔗
alicE_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq id='50a2e83027a74a2bd0d0fb621039872c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_1698@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:29:11.033 ***🔗
alice_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<iq type='set' id='7c431c7114fe92e974a21046f67b5921'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:29:11.033 ***🔗
alice_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq type='result' id='7c431c7114fe92e974a21046f67b5921'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:29:11.033 ***🔗
alice_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<presence/>
*** User 2022-06-22 09:29:11.034 ***🔗
alice_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_1698@localhost/res1' to='alice_add_and_remove_some_contacts_properly_1698@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:29:11.034 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.035 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='020c28db1333ffaa' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:29:11.035 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.035 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE2OTgAbWFrcm9saWth</auth>
*** User 2022-06-22 09:29:11.036 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:29:11.036 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.036 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='33e9afbef0fb8355' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:29:11.036 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.036 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<iq type='set' id='2b5c6e0a1566ce24c211d5b7f3531435'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:29:11.037 ***🔗
bOb_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq id='2b5c6e0a1566ce24c211d5b7f3531435' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_1698@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:29:11.037 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<iq type='set' id='ba21a60e2f248d26354b2a0eb6098124'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:29:11.037 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq type='result' id='ba21a60e2f248d26354b2a0eb6098124'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:29:11.037 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<presence/>
*** User 2022-06-22 09:29:11.038 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_1698@localhost/res1' to='bob_add_and_remove_some_contacts_properly_1698@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:29:11.038 ***🔗
kate_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.043 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='870ad965f2ef6c34' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:29:11.043 ***🔗
kate_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.043 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNjk4AG1ha3Jvd2U7cA==</auth>
*** User 2022-06-22 09:29:11.044 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:29:11.044 ***🔗
kate_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.044 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='97be79ce40113603' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:29:11.044 ***🔗
kate_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.045 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<iq type='set' id='ea53d3c1512ae01e995096598bee0a41'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:29:11.045 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq id='ea53d3c1512ae01e995096598bee0a41' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_1698@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:29:11.045 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<iq type='set' id='4a0675ae8644fe58244d3ac2f1130ad9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:29:11.045 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq type='result' id='4a0675ae8644fe58244d3ac2f1130ad9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:29:11.045 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<presence/>
*** User 2022-06-22 09:29:11.046 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1698@localhost/res1' to='kate_add_and_remove_some_contacts_properly_1698@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:29:11.046 ***🔗
mike_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.047 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b785941d60e24cf1' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:29:11.047 ***🔗
mike_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.047 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNjk4AG5pY25pZW1h</auth>
*** User 2022-06-22 09:29:11.048 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-06-22 09:29:11.048 ***🔗
mike_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.048 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='943857c7e3462ab8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-06-22 09:29:11.048 ***🔗
mike_add_and_remove_some_contacts_properly_1698@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-06-22 09:29:11.048 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<iq type='set' id='3966f041df6da39e3692f1e553c27c16'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-06-22 09:29:11.049 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq id='3966f041df6da39e3692f1e553c27c16' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_1698@localhost/res1</jid>
</bind>
</iq>
*** User 2022-06-22 09:29:11.049 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<iq type='set' id='25c4a912d06df06aa93b31b0ea9f4b31'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:29:11.049 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq type='result' id='25c4a912d06df06aa93b31b0ea9f4b31'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-06-22 09:29:11.049 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 out
<presence/>
*** User 2022-06-22 09:29:11.051 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1698@localhost/res1' to='mike_add_and_remove_some_contacts_properly_1698@localhost/res1' xml:lang='en'/>
*** User 2022-06-22 09:29:11.062 ***🔗
REST request:
Code: 204
Req: {<0.26593.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"88696f6c471583ea">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY5OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1698@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 09:29:10 GMT">>}],
<<>>,80,1089}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1698@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1698@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 09:29:11.062 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1698@localhost' to='bob_add_and_remove_some_contacts_properly_1698@localhost/res1' id='pushfdca5c4a705d2fdf' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_1698@localhost'/>
</query>
</iq>
*** User 2022-06-22 09:29:11.074 ***🔗
REST request:
Code: 204
Req: {<0.26625.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"11cfbb324205cc1c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY5OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1698@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 09:29:10 GMT">>}],
<<>>,80,2567}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1698@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1698@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 09:29:11.074 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1698@localhost' to='bob_add_and_remove_some_contacts_properly_1698@localhost/res1' id='push60d4b737f6157826' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_1698@localhost'/>
</query>
</iq>
*** User 2022-06-22 09:29:11.089 ***🔗
REST request:
Code: 204
Req: {<0.26658.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5c158277a876bcd9">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY5OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1698@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 09:29:11 GMT">>}],
<<>>,80,2835}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1698@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1698@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 09:29:11.089 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1698@localhost' to='bob_add_and_remove_some_contacts_properly_1698@localhost/res1' id='push276acf2b31082f33' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_1698@localhost'/>
</query>
</iq>
*** User 2022-06-22 09:29:11.097 ***🔗
REST request:
Code: 200
Req: {<0.26688.1>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a23ecc976d7b090e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY5OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1698@localhost\",\"kate_add_and_remove_some_contacts_properly_1698@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 09:29:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,1058}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1698@localhost\",\"kate_add_and_remove_some_contacts_properly_1698@localhost\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1698@localhost">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 09:29:11.107 ***🔗
REST request:
Code: 200
Req: {<0.26708.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6e3a18b363fdfb14">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY5OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 22 Jun 2022 09:29:11 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1698@localhost\",\"ask\":\"none\"}]">>,
229,602}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1698@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-06-22 09:29:11.107 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1698@localhost' to='bob_add_and_remove_some_contacts_properly_1698@localhost/res1' id='push223d4413ccf047b9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_1698@localhost'/>
</query>
</iq>
*** User 2022-06-22 09:29:11.107 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:29:11.107 ***🔗
mike_add_and_remove_some_contacts_properly_1698@localhost/res1 in
</stream:stream>
*** User 2022-06-22 09:29:11.108 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:29:11.108 ***🔗
kate_add_and_remove_some_contacts_properly_1698@localhost/res1 in
</stream:stream>
*** User 2022-06-22 09:29:11.108 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:29:11.108 ***🔗
bob_add_and_remove_some_contacts_properly_1698@localhost/res1 in
</stream:stream>
*** User 2022-06-22 09:29:11.108 ***🔗
alice_add_and_remove_some_contacts_properly_1698@localhost/res1 out
</stream:stream>
*** User 2022-06-22 09:29:11.109 ***🔗
alice_add_and_remove_some_contacts_properly_1698@localhost/res1 in
</stream:stream>
=== Ended at 2022-06-22 09:29:11
=== successfully completed test case
=== === Returned value: ok