=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.87770.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@93471e0a4621.2024-02-20_09.44.14/big_tests.tests.rest_client_SUITE.logs/run.2024-02-20_10.00.59/rest_client_suite.add_and_remove_some_contacts_properly.104196.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@93471e0a4621.2024-02-20_09.44.14/big_tests.tests.rest_client_SUITE.logs/run.2024-02-20_10.00.59/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_sic => #{iqdisc => one_queue},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,buffer_max => 100,
ack_freq => 1,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{inactivity => 30,max_pause => 120,max_wait => infinity,
server_acks => false,backend => mnesia},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@93471e0a4621.2024-02-20_09.44.14"
=== Started at 2024-02-20 10:01:01
*** User 2024-02-20 10:01:01.365 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-20 10:01:01.365 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='81c1072ee8fb8c40' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-20 10:01:01.365 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-20 10:01:01.365 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NABtYXR5Z3J5c2E=</auth>
*** User 2024-02-20 10:01:01.367 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-20 10:01:01.367 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-20 10:01:01.367 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d1118a92c1ff7d95' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3354@localhost'>
*** User 2024-02-20 10:01:01.367 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-20 10:01:01.367 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='8d8e5ba8a5cd766ee15a41a9935e5638'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-20 10:01:01.367 ***🔗
alicE_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq id='8d8e5ba8a5cd766ee15a41a9935e5638' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3354@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-20 10:01:01.368 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='8b9630c8bbe6dae55ba035bfe98dd9d2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 10:01:01.368 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3354@localhost/res1' id='8b9630c8bbe6dae55ba035bfe98dd9d2' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 10:01:01.368 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<presence/>
*** User 2024-02-20 10:01:01.370 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3354@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3354@localhost/res1'/>
*** User 2024-02-20 10:01:01.370 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-20 10:01:01.371 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e37c3e3a629cce77' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-20 10:01:01.371 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-20 10:01:01.371 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMzNTQAbWFrcm9saWth</auth>
*** User 2024-02-20 10:01:01.372 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-20 10:01:01.372 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-20 10:01:01.372 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a3b46031838b673f' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3354@localhost'>
*** User 2024-02-20 10:01:01.372 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-20 10:01:01.372 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='d7556af2937258a6a69e08c088c608b7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-20 10:01:01.373 ***🔗
bOb_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq id='d7556af2937258a6a69e08c088c608b7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3354@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-20 10:01:01.373 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='4e52de6dbc695e71d6d7410c0ca338ce'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 10:01:01.374 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='4e52de6dbc695e71d6d7410c0ca338ce' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 10:01:01.374 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<presence/>
*** User 2024-02-20 10:01:01.376 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1'/>
*** User 2024-02-20 10:01:01.376 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-20 10:01:01.377 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='66ea5a635c9e812a' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-20 10:01:01.377 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-20 10:01:01.377 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzU0AG1ha3Jvd2U7cA==</auth>
*** User 2024-02-20 10:01:01.378 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-20 10:01:01.378 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-20 10:01:01.378 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4949fb0f21c5bdcb' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3354@localhost'>
*** User 2024-02-20 10:01:01.379 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-20 10:01:01.379 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='09886455b5a5882fbf4ffa38626ddb1b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-20 10:01:01.379 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq id='09886455b5a5882fbf4ffa38626ddb1b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3354@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-20 10:01:01.379 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='321de85b76578082f0cd04d0f5ca75f6'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 10:01:01.380 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3354@localhost/res1' id='321de85b76578082f0cd04d0f5ca75f6' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 10:01:01.380 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<presence/>
*** User 2024-02-20 10:01:01.382 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3354@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3354@localhost/res1'/>
*** User 2024-02-20 10:01:01.382 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-20 10:01:01.383 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7ae8ebcbb11c26ef' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-02-20 10:01:01.383 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-20 10:01:01.383 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzU0AG5pY25pZW1h</auth>
*** User 2024-02-20 10:01:01.384 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-02-20 10:01:01.385 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-02-20 10:01:01.385 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='baca279db668dc7a' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3354@localhost'>
*** User 2024-02-20 10:01:01.385 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-02-20 10:01:01.385 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='08cccee93f482230e2db38719cbdbb72'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-02-20 10:01:01.385 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq id='08cccee93f482230e2db38719cbdbb72' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3354@localhost/res1</jid>
</bind>
</iq>
*** User 2024-02-20 10:01:01.385 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<iq type='set' id='4d9a9c757b9384bd37f58c3fbf2080cf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 10:01:01.386 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3354@localhost/res1' id='4d9a9c757b9384bd37f58c3fbf2080cf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-02-20 10:01:01.386 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
<presence/>
*** User 2024-02-20 10:01:01.390 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3354@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3354@localhost/res1'/>
*** User 2024-02-20 10:01:01.401 ***🔗
REST request:
Code: 204
Req: {<0.87896.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1f54a3f95a8a26e6">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3354@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 10:01:00 GMT">>}],
<<>>,80,5625}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3354@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
<<"makrolika">>},
method => <<"POST">>,return_headers => true}
*** User 2024-02-20 10:01:01.401 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3354@localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='pushdb6b11bf3c9cc2af' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_3354@localhost'/>
</query>
</iq>
*** User 2024-02-20 10:01:01.463 ***🔗
REST request:
Code: 204
Req: {<0.87921.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7c6a1b20d43629d2">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3354@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 10:01:00 GMT">>}],
<<>>,80,55308}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3354@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
<<"makrolika">>},
method => <<"POST">>,return_headers => true}
*** User 2024-02-20 10:01:01.463 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3354@localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='pushf910aefabe97347d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_3354@localhost'/>
</query>
</iq>
*** User 2024-02-20 10:01:01.474 ***🔗
REST request:
Code: 204
Req: {<0.87958.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6ac75f5895505a57">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3354@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 10:01:00 GMT">>}],
<<>>,80,5401}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3354@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
<<"makrolika">>},
method => <<"POST">>,return_headers => true}
*** User 2024-02-20 10:01:01.475 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3354@localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='push52145ee817123d5d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_3354@localhost'/>
</query>
</iq>
*** User 2024-02-20 10:01:01.488 ***🔗
REST request:
Code: 200
Req: {<0.87993.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c49f6e1496541241">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3354@localhost\",\"kate_add_and_remove_some_contacts_properly_3354@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 10:01:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,7634}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3354@localhost\",\"kate_add_and_remove_some_contacts_properly_3354@localhost\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
<<"makrolika">>},
method => <<"DELETE">>,return_headers => true}
*** User 2024-02-20 10:01:01.496 ***🔗
REST request:
Code: 200
Req: {<0.88021.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"781603b7199cb50e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM1NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 20 Feb 2024 10:01:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3354@localhost\"}]">>,
229,3179}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
role => client,body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3354@localhost">>,
<<"makrolika">>},
method => <<"GET">>,return_headers => true}
*** User 2024-02-20 10:01:01.496 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3354@localhost' to='bob_add_and_remove_some_contacts_properly_3354@localhost/res1' id='pushd976e09771ca2100' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_3354@localhost'/>
</query>
</iq>
*** User 2024-02-20 10:01:01.496 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 out
</stream:stream>
*** User 2024-02-20 10:01:01.497 ***🔗
mike_add_and_remove_some_contacts_properly_3354@localhost/res1 in
</stream:stream>
*** User 2024-02-20 10:01:01.497 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 out
</stream:stream>
*** User 2024-02-20 10:01:01.497 ***🔗
kate_add_and_remove_some_contacts_properly_3354@localhost/res1 in
</stream:stream>
*** User 2024-02-20 10:01:01.498 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 out
</stream:stream>
*** User 2024-02-20 10:01:01.498 ***🔗
bob_add_and_remove_some_contacts_properly_3354@localhost/res1 in
</stream:stream>
*** User 2024-02-20 10:01:01.498 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 out
</stream:stream>
*** User 2024-02-20 10:01:01.498 ***🔗
alice_add_and_remove_some_contacts_properly_3354@localhost/res1 in
</stream:stream>
=== Ended at 2024-02-20 10:01:01
=== successfully completed test case
=== === Returned value: ok