=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.82499.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_cets"},
{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@8ba0dd56aa70.2024-04-15_16.45.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-15_16.59.42/rest_client_suite.add_and_remove_some_contacts_properly.210178.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@8ba0dd56aa70.2024-04-15_16.45.39/big_tests.tests.rest_client_SUITE.logs/run.2024-04-15_16.59.42/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,backend => cets,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => cets,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@8ba0dd56aa70.2024-04-15_16.45.39"
=== Started at 2024-04-15 16:59:44
*** User 2024-04-15 16:59:44.519 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.520 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='38f3154e48506b23' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:44.520 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.520 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAwNwBtYXR5Z3J5c2E=</auth>
*** User 2024-04-15 16:59:44.521 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:44.521 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.522 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0fe1186626f94ac3' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3007@localhost'>
*** User 2024-04-15 16:59:44.522 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.522 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<iq type='set' id='41f01bb3dcbf04ee5c8ff8b0194c40e6'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:44.523 ***🔗
alicE_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq id='41f01bb3dcbf04ee5c8ff8b0194c40e6' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3007@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:44.523 ***🔗
alice_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<iq type='set' id='df6416dc17955659ab6f0a3227a6eea3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:44.524 ***🔗
alice_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3007@localhost/res1' id='df6416dc17955659ab6f0a3227a6eea3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:44.524 ***🔗
alice_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:44.535 ***🔗
alice_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3007@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3007@localhost/res1'/>
*** User 2024-04-15 16:59:44.535 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.536 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='13b401a6bea5650b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:44.536 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.536 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMwMDcAbWFrcm9saWth</auth>
*** User 2024-04-15 16:59:44.538 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:44.538 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.541 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e924766a1d4e6316' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3007@localhost'>
*** User 2024-04-15 16:59:44.541 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.541 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<iq type='set' id='67b3ff1886a523df9e953bcaeac5f1f7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:44.542 ***🔗
bOb_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq id='67b3ff1886a523df9e953bcaeac5f1f7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3007@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:44.542 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<iq type='set' id='f013d5095410d6ceb01e2213ceba8f87'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:44.544 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3007@localhost/res1' id='f013d5095410d6ceb01e2213ceba8f87' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:44.544 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:44.547 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3007@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3007@localhost/res1'/>
*** User 2024-04-15 16:59:44.547 ***🔗
kate_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.548 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d2a2b3ef5deba0ef' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:44.548 ***🔗
kate_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.548 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDA3AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-15 16:59:44.550 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:44.550 ***🔗
kate_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.551 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f406b83538f304c8' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3007@localhost'>
*** User 2024-04-15 16:59:44.551 ***🔗
kate_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.551 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<iq type='set' id='f77283e8479c4b8bd293c337169dcb92'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:44.551 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq id='f77283e8479c4b8bd293c337169dcb92' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3007@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:44.551 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<iq type='set' id='bef7497ee9a0f38a06e75f5cc4e0d1c7'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:44.552 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3007@localhost/res1' id='bef7497ee9a0f38a06e75f5cc4e0d1c7' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:44.553 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:44.555 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3007@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3007@localhost/res1'/>
*** User 2024-04-15 16:59:44.556 ***🔗
mike_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.557 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='184b3418f133f66d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-15 16:59:44.557 ***🔗
mike_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.557 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMDA3AG5pY25pZW1h</auth>
*** User 2024-04-15 16:59:44.560 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-15 16:59:44.560 ***🔗
mike_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.560 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b2e2060d03c10258' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3007@localhost'>
*** User 2024-04-15 16:59:44.560 ***🔗
mike_add_and_remove_some_contacts_properly_3007@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-04-15 16:59:44.560 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<iq type='set' id='00ea2790a209156c27834f9a2f7a6546'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-15 16:59:44.561 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq id='00ea2790a209156c27834f9a2f7a6546' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3007@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-15 16:59:44.561 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<iq type='set' id='a2f65fb8e66cff85e8e83455c25b884f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:44.562 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3007@localhost/res1' id='a2f65fb8e66cff85e8e83455c25b884f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-15 16:59:44.562 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 out
<presence/>
*** User 2024-04-15 16:59:44.564 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3007@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3007@localhost/res1'/>
*** User 2024-04-15 16:59:44.583 ***🔗
REST request:
Code: 204
Req: {<0.82642.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f0f920193e156a0">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAwN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3007@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:44 GMT">>}],
<<>>,80,12606}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3007@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3007@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-15 16:59:44.583 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3007@localhost' to='bob_add_and_remove_some_contacts_properly_3007@localhost/res1' id='push00377bfa4f64f031' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3007@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 16:59:44.639 ***🔗
REST request:
Code: 204
Req: {<0.82684.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"222a170b3be8ea61">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAwN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3007@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:44 GMT">>}],
<<>>,80,42509}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3007@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3007@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-15 16:59:44.639 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3007@localhost' to='bob_add_and_remove_some_contacts_properly_3007@localhost/res1' id='pushed33763dbb14694d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3007@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 16:59:44.655 ***🔗
REST request:
Code: 204
Req: {<0.82723.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"720104c141afc1dd">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAwN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3007@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:44 GMT">>}],
<<>>,80,7614}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3007@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3007@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-15 16:59:44.655 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3007@localhost' to='bob_add_and_remove_some_contacts_properly_3007@localhost/res1' id='push66d844ff408a8e30' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3007@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-15 16:59:44.667 ***🔗
REST request:
Code: 200
Req: {<0.82743.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"193f9bc1cfaf616d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAwN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3007@localhost\",\"kate_add_and_remove_some_contacts_properly_3007@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,5423}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3007@localhost">>,
<<"makrolika">>},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3007@localhost\",\"kate_add_and_remove_some_contacts_properly_3007@localhost\"]}">>,
role => client,return_headers => true}
*** User 2024-04-15 16:59:44.679 ***🔗
REST request:
Code: 200
Req: {<0.82765.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9a82ffb89c211ee8">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzAwN0Bsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 15 Apr 2024 16:59:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3007@localhost\"}]">>,
229,3198}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3007@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-04-15 16:59:44.679 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3007@localhost' to='bob_add_and_remove_some_contacts_properly_3007@localhost/res1' id='push9fea269d46451f7e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3007@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-15 16:59:44.680 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:44.680 ***🔗
mike_add_and_remove_some_contacts_properly_3007@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:59:44.680 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:44.681 ***🔗
kate_add_and_remove_some_contacts_properly_3007@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:59:44.681 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:44.681 ***🔗
bob_add_and_remove_some_contacts_properly_3007@localhost/res1 in
</stream:stream>
*** User 2024-04-15 16:59:44.681 ***🔗
alice_add_and_remove_some_contacts_properly_3007@localhost/res1 out
</stream:stream>
*** User 2024-04-15 16:59:44.681 ***🔗
alice_add_and_remove_some_contacts_properly_3007@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-15 16:59:44
=== successfully completed test case
=== === Returned value: ok