=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.24165.2>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_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@fb1eb1125d01.2024-03-22_15.50.03/big_tests.tests.rest_client_SUITE.logs/run.2024-03-22_16.06.07/rest_client_suite.add_and_remove_some_contacts_properly.245250.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@fb1eb1125d01.2024-03-22_15.50.03/big_tests.tests.rest_client_SUITE.logs/run.2024-03-22_16.06.07/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_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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 => 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@fb1eb1125d01.2024-03-22_15.50.03"
=== Started at 2024-03-22 16:06:09
*** User 2024-03-22 16:06:09.545 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.545 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='76c9e90275b38caa' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-22 16:06:09.546 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.546 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0MwBtYXR5Z3J5c2E=</auth>
*** User 2024-03-22 16:06:09.547 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-22 16:06:09.547 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.548 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4fb3364ae79e3ce6' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3343@localhost'>
*** User 2024-03-22 16:06:09.548 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.548 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<iq type='set' id='166576befaa8a804a7d755a2ab2dbac4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-22 16:06:09.548 ***🔗
alicE_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq id='166576befaa8a804a7d755a2ab2dbac4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3343@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-22 16:06:09.548 ***🔗
alice_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<iq type='set' id='d49dc3f00d6932791ac12a39f8b03687'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-22 16:06:09.549 ***🔗
alice_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3343@localhost/res1' id='d49dc3f00d6932791ac12a39f8b03687' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-22 16:06:09.549 ***🔗
alice_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<presence/>
*** User 2024-03-22 16:06:09.551 ***🔗
alice_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3343@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3343@localhost/res1'/>
*** User 2024-03-22 16:06:09.552 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.552 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='963c20887a150303' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-22 16:06:09.552 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.552 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMzNDMAbWFrcm9saWth</auth>
*** User 2024-03-22 16:06:09.553 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-22 16:06:09.554 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.554 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2903cbb58d76444e' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3343@localhost'>
*** User 2024-03-22 16:06:09.554 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.554 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<iq type='set' id='6f5dd5095d0ca9b66d1639bbbc37888c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-22 16:06:09.555 ***🔗
bOb_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq id='6f5dd5095d0ca9b66d1639bbbc37888c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3343@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-22 16:06:09.555 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<iq type='set' id='53d1700634414660a9dd722974aa979b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-22 16:06:09.555 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3343@localhost/res1' id='53d1700634414660a9dd722974aa979b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-22 16:06:09.556 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<presence/>
*** User 2024-03-22 16:06:09.558 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3343@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3343@localhost/res1'/>
*** User 2024-03-22 16:06:09.568 ***🔗
kate_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.569 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3fdbb886b175e8b8' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-22 16:06:09.569 ***🔗
kate_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.569 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzQzAG1ha3Jvd2U7cA==</auth>
*** User 2024-03-22 16:06:09.570 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-22 16:06:09.570 ***🔗
kate_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.571 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='877d8d25bb6a448f' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3343@localhost'>
*** User 2024-03-22 16:06:09.571 ***🔗
kate_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.571 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<iq type='set' id='a6640c53042a0c5c1b1c219a6cfb12c4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-22 16:06:09.571 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq id='a6640c53042a0c5c1b1c219a6cfb12c4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3343@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-22 16:06:09.571 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<iq type='set' id='fa8c83a5bc894191d8cea4f849f8f0d5'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-22 16:06:09.572 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3343@localhost/res1' id='fa8c83a5bc894191d8cea4f849f8f0d5' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-22 16:06:09.572 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<presence/>
*** User 2024-03-22 16:06:09.574 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3343@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3343@localhost/res1'/>
*** User 2024-03-22 16:06:09.575 ***🔗
mike_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.575 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='dd49adfa870d1176' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-22 16:06:09.576 ***🔗
mike_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.576 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzQzAG5pY25pZW1h</auth>
*** User 2024-03-22 16:06:09.577 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-22 16:06:09.577 ***🔗
mike_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.577 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9316d5ba53ae2952' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3343@localhost'>
*** User 2024-03-22 16:06:09.577 ***🔗
mike_add_and_remove_some_contacts_properly_3343@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-03-22 16:06:09.578 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<iq type='set' id='b3d7447923328b27880b89fd6c45fd72'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-22 16:06:09.578 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq id='b3d7447923328b27880b89fd6c45fd72' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3343@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-22 16:06:09.578 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<iq type='set' id='00f3c80f66aad14b31a5b7c25bcde643'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-22 16:06:09.579 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3343@localhost/res1' id='00f3c80f66aad14b31a5b7c25bcde643' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-22 16:06:09.579 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 out
<presence/>
*** User 2024-03-22 16:06:09.582 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3343@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3343@localhost/res1'/>
*** User 2024-03-22 16:06:09.597 ***🔗
REST request:
Code: 204
Req: {<0.24289.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9ef824b578e3a0e8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3343@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 22 Mar 2024 16:06:09 GMT">>}],
<<>>,80,7824}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3343@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3343@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-03-22 16:06:09.597 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3343@localhost' to='bob_add_and_remove_some_contacts_properly_3343@localhost/res1' id='push8653e2947d4d1562' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3343@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-22 16:06:09.624 ***🔗
REST request:
Code: 204
Req: {<0.24332.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"13d25e134095e8b9">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3343@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 22 Mar 2024 16:06:09 GMT">>}],
<<>>,80,19124}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3343@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3343@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-03-22 16:06:09.624 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3343@localhost' to='bob_add_and_remove_some_contacts_properly_3343@localhost/res1' id='pusha576d2a716741ae6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3343@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-22 16:06:09.674 ***🔗
REST request:
Code: 204
Req: {<0.24370.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d23fb399051a5259">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3343@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 22 Mar 2024 16:06:09 GMT">>}],
<<>>,80,39926}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3343@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3343@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-03-22 16:06:09.674 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3343@localhost' to='bob_add_and_remove_some_contacts_properly_3343@localhost/res1' id='push861b6934f926372f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3343@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-22 16:06:09.687 ***🔗
REST request:
Code: 200
Req: {<0.24403.2>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fd659b529058a2f4">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3343@localhost\",\"kate_add_and_remove_some_contacts_properly_3343@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 22 Mar 2024 16:06:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,8289}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3343@localhost\",\"kate_add_and_remove_some_contacts_properly_3343@localhost\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3343@localhost">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-03-22 16:06:09.696 ***🔗
REST request:
Code: 200
Req: {<0.24422.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"68c203ef7e6cfb4f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0M0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 22 Mar 2024 16:06:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3343@localhost\",\"ask\":\"none\"}]">>,
229,2682}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3343@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-03-22 16:06:09.697 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3343@localhost' to='bob_add_and_remove_some_contacts_properly_3343@localhost/res1' id='pusheef279d3e5a952f9' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3343@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-03-22 16:06:09.697 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 out
</stream:stream>
*** User 2024-03-22 16:06:09.697 ***🔗
mike_add_and_remove_some_contacts_properly_3343@localhost/res1 in
</stream:stream>
*** User 2024-03-22 16:06:09.697 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 out
</stream:stream>
*** User 2024-03-22 16:06:09.697 ***🔗
kate_add_and_remove_some_contacts_properly_3343@localhost/res1 in
</stream:stream>
*** User 2024-03-22 16:06:09.698 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 out
</stream:stream>
*** User 2024-03-22 16:06:09.698 ***🔗
bob_add_and_remove_some_contacts_properly_3343@localhost/res1 in
</stream:stream>
*** User 2024-03-22 16:06:09.698 ***🔗
alice_add_and_remove_some_contacts_properly_3343@localhost/res1 out
</stream:stream>
*** User 2024-03-22 16:06:09.698 ***🔗
alice_add_and_remove_some_contacts_properly_3343@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-22 16:06:09
=== successfully completed test case
=== === Returned value: ok