=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.14396.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@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_client_SUITE.logs/run.2022-04-04_15.15.12/rest_client_suite.add_and_remove_some_contacts_properly.179842.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@cb94372a8ea7.2022-04-04_15.02.36/big_tests.tests.rest_client_SUITE.logs/run.2022-04-04_15.15.12/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 => [],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"}]},
{welcome_message,{[],[]}}],
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@cb94372a8ea7.2022-04-04_15.02.36"
=== Started at 2022-04-04 15:15:16
*** User 2022-04-04 15:15:16.145 ***
alicE_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.145 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fa62b7f15ad6b7ad' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.145 ***
alicE_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.145 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjM3MwBtYXR5Z3J5c2E=</auth>
*** User 2022-04-04 15:15:16.147 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:16.147 ***
alicE_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.147 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cb0d8e3d8d2ca2fa' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.147 ***
alicE_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.147 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<iq type='set' id='d464b5c5ebbb2cd538466e59f0a6415c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:16.148 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq id='d464b5c5ebbb2cd538466e59f0a6415c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_some_contacts_properly_2373@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:16.148 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<iq type='set' id='edf27d7c92be98e50d08f54b29e03826'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.148 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq type='result' id='edf27d7c92be98e50d08f54b29e03826'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.148 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:16.150 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_2373@localhost/res1' to='alice_add_and_remove_some_contacts_properly_2373@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:16.151 ***
bOb_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.152 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6a1e1afc9c59f5d2' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.152 ***
bOb_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.152 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzIzNzMAbWFrcm9saWth</auth>
*** User 2022-04-04 15:15:16.153 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:16.153 ***
bOb_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.154 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce74c66e6b96d8c3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.154 ***
bOb_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.154 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<iq type='set' id='9e307b4e1114eef48ce3a2b6557c35a9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:16.154 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq id='9e307b4e1114eef48ce3a2b6557c35a9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_some_contacts_properly_2373@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:16.154 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<iq type='set' id='f61ca2d7ff7bcee182802fe4653b3473'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.155 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq type='result' id='f61ca2d7ff7bcee182802fe4653b3473'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.155 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:16.157 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_2373@localhost/res1' to='bob_add_and_remove_some_contacts_properly_2373@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:16.158 ***
kate_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.158 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f738ec0be52c51db' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.158 ***
kate_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.158 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMzczAG1ha3Jvd2U7cA==</auth>
*** User 2022-04-04 15:15:16.159 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:16.159 ***
kate_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.160 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d245774709a4301' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.160 ***
kate_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.160 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<iq type='set' id='eb88bbddee79c7a472b3a77a472828fa'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:16.160 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq id='eb88bbddee79c7a472b3a77a472828fa' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_2373@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:16.160 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<iq type='set' id='82e64ddef15f1f6a1db6d345285c94fc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.160 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq type='result' id='82e64ddef15f1f6a1db6d345285c94fc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.161 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:16.163 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2373@localhost/res1' to='kate_add_and_remove_some_contacts_properly_2373@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:16.164 ***
mike_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.164 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3420ccb70544db99' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.164 ***
mike_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.164 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMzczAG5pY25pZW1h</auth>
*** User 2022-04-04 15:15:16.165 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-04 15:15:16.165 ***
mike_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.168 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6b59887002a51bfa' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-04 15:15:16.168 ***
mike_add_and_remove_some_contacts_properly_2373@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-04-04 15:15:16.168 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<iq type='set' id='e5d667f257d7a075c77155ae1bb81252'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-04 15:15:16.169 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq id='e5d667f257d7a075c77155ae1bb81252' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_2373@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-04 15:15:16.169 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<iq type='set' id='ad42dca6e50ec107664251fe806e1b15'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.170 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq type='result' id='ad42dca6e50ec107664251fe806e1b15'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-04 15:15:16.170 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 out
<presence/>
*** User 2022-04-04 15:15:16.174 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2373@localhost/res1' to='mike_add_and_remove_some_contacts_properly_2373@localhost/res1' xml:lang='en'/>
*** User 2022-04-04 15:15:16.243 ***
REST request:
Code: 204
Req: {<0.14534.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"03fe05a27500f5b0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjM3M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2373@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:15 GMT">>}],
<<>>,80,59941}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2373@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2373@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:16.244 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2373@localhost' to='bob_add_and_remove_some_contacts_properly_2373@localhost/res1' id='pushf0ab2ea00065e393' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2373@localhost'/>
</query>
</iq>
*** User 2022-04-04 15:15:16.259 ***
REST request:
Code: 204
Req: {<0.14567.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dee1c554cc3b6a1c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjM3M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2373@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:15 GMT">>}],
<<>>,80,6644}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2373@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2373@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:16.259 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2373@localhost' to='bob_add_and_remove_some_contacts_properly_2373@localhost/res1' id='pushcc8fb5a18d6ffc98' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2373@localhost'/>
</query>
</iq>
*** User 2022-04-04 15:15:16.275 ***
REST request:
Code: 204
Req: {<0.14604.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"37732638bc8690d9">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjM3M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2373@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:15 GMT">>}],
<<>>,80,7616}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2373@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2373@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:16.276 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2373@localhost' to='bob_add_and_remove_some_contacts_properly_2373@localhost/res1' id='pushc675c29bcb530b0d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2373@localhost'/>
</query>
</iq>
*** User 2022-04-04 15:15:16.340 ***
REST request:
Code: 200
Req: {<0.14614.2>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f7eb59d6979d2b32">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjM3M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2373@localhost\",\"kate_add_and_remove_some_contacts_properly_2373@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:16 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,52333}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2373@localhost\",\"kate_add_and_remove_some_contacts_properly_2373@localhost\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2373@localhost">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:16.354 ***
REST request:
Code: 200
Req: {<0.14639.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d14a12d07cc68122">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjM3M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 04 Apr 2022 15:15:16 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2373@localhost\",\"ask\":\"none\"}]">>,
229,2457}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2373@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-04 15:15:16.354 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2373@localhost' to='bob_add_and_remove_some_contacts_properly_2373@localhost/res1' id='push1c649027e4868105' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2373@localhost'/>
</query>
</iq>
*** User 2022-04-04 15:15:16.354 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:16.355 ***
mike_add_and_remove_some_contacts_properly_2373@localhost/res1 in
</stream:stream>
*** User 2022-04-04 15:15:16.355 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:16.355 ***
kate_add_and_remove_some_contacts_properly_2373@localhost/res1 in
</stream:stream>
*** User 2022-04-04 15:15:16.355 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:16.355 ***
bOb_add_and_remove_some_contacts_properly_2373@localhost/res1 in
</stream:stream>
*** User 2022-04-04 15:15:16.355 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 out
</stream:stream>
*** User 2022-04-04 15:15:16.355 ***
alicE_add_and_remove_some_contacts_properly_2373@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-04 15:15:16
=== successfully completed test case
=== === Returned value: ok