=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.82618.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@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.07.36/rest_client_suite.add_and_remove_some_contacts_properly.214146.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@df27fc96a068.2024-04-23_10.53.32/big_tests.tests.rest_client_SUITE.logs/run.2024-04-23_11.07.36/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_sic => #{iqdisc => one_queue},
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_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@df27fc96a068.2024-04-23_10.53.32"
=== Started at 2024-04-23 11:07:38
*** User 2024-04-23 11:07:38.834 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.834 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf27fb468f25976d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:07:38.834 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.834 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4NABtYXR5Z3J5c2E=</auth>
*** User 2024-04-23 11:07:38.835 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:07:38.835 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.835 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='afa9806a06246ae5' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2984@localhost'>
*** User 2024-04-23 11:07:38.835 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.836 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<iq type='set' id='d44e4846fa49f5697945b32855794b56'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:07:38.836 ***🔗
alicE_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq id='d44e4846fa49f5697945b32855794b56' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_2984@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:07:38.836 ***🔗
alice_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<iq type='set' id='b7ed6ce74ce9f18b41f6a751a409fee2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.836 ***🔗
alice_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_2984@localhost/res1' id='b7ed6ce74ce9f18b41f6a751a409fee2' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.836 ***🔗
alice_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<presence/>
*** User 2024-04-23 11:07:38.838 ***🔗
alice_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2984@localhost/res1' to='alice_add_and_remove_some_contacts_properly_2984@localhost/res1'/>
*** User 2024-04-23 11:07:38.838 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.839 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='40ddda526fdc2890' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:07:38.839 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.839 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI5ODQAbWFrcm9saWth</auth>
*** User 2024-04-23 11:07:38.839 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:07:38.840 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.840 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ae905cd50cb511e7' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2984@localhost'>
*** User 2024-04-23 11:07:38.840 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.840 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<iq type='set' id='ecf070234b8f7ecfb915864a6b04aeae'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:07:38.840 ***🔗
bOb_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq id='ecf070234b8f7ecfb915864a6b04aeae' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_2984@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:07:38.840 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<iq type='set' id='b8118153b7b7c9b5f7c85ad0b1c632e2'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.841 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_2984@localhost/res1' id='b8118153b7b7c9b5f7c85ad0b1c632e2' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.841 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<presence/>
*** User 2024-04-23 11:07:38.843 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2984@localhost/res1' to='bob_add_and_remove_some_contacts_properly_2984@localhost/res1'/>
*** User 2024-04-23 11:07:38.843 ***🔗
kate_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.843 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1abac9290ea65d8a' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:07:38.844 ***🔗
kate_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.844 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTg0AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-23 11:07:38.844 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:07:38.844 ***🔗
kate_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.845 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3a2c1765db273497' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2984@localhost'>
*** User 2024-04-23 11:07:38.845 ***🔗
kate_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.845 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<iq type='set' id='54d9fd07f277c7d5b583a4de59aa7328'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:07:38.845 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq id='54d9fd07f277c7d5b583a4de59aa7328' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_2984@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:07:38.845 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<iq type='set' id='5b1b7fe4515e9afe165f9d5367a7cc3d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.846 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_2984@localhost/res1' id='5b1b7fe4515e9afe165f9d5367a7cc3d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.846 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<presence/>
*** User 2024-04-23 11:07:38.847 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2984@localhost/res1' to='kate_add_and_remove_some_contacts_properly_2984@localhost/res1'/>
*** User 2024-04-23 11:07:38.848 ***🔗
mike_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.848 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0623c7d32c235346' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-23 11:07:38.849 ***🔗
mike_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.849 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTg0AG5pY25pZW1h</auth>
*** User 2024-04-23 11:07:38.850 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-23 11:07:38.850 ***🔗
mike_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.851 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8ce17e5a51e0547e' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2984@localhost'>
*** User 2024-04-23 11:07:38.851 ***🔗
mike_add_and_remove_some_contacts_properly_2984@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-23 11:07:38.851 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<iq type='set' id='bb149b35721898b2bc8cb2c3c4e0b130'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-23 11:07:38.851 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq id='bb149b35721898b2bc8cb2c3c4e0b130' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_2984@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-23 11:07:38.851 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<iq type='set' id='bd3a2276304bc21cb189cc14203001ee'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.852 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_2984@localhost/res1' id='bd3a2276304bc21cb189cc14203001ee' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-23 11:07:38.852 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 out
<presence/>
*** User 2024-04-23 11:07:38.874 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2984@localhost/res1' to='mike_add_and_remove_some_contacts_properly_2984@localhost/res1'/>
*** User 2024-04-23 11:07:38.891 ***🔗
REST request:
Code: 204
Req: {<0.82743.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f841a472a057db9f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2984@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>}],
<<>>,80,8626}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2984@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2984@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-23 11:07:38.891 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2984@localhost' to='bob_add_and_remove_some_contacts_properly_2984@localhost/res1' id='push0486d7b68243f8e2' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_2984@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 11:07:38.903 ***🔗
REST request:
Code: 204
Req: {<0.82803.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"822ceda54d4fad2b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2984@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>}],
<<>>,80,4454}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2984@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2984@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-23 11:07:38.903 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2984@localhost' to='bob_add_and_remove_some_contacts_properly_2984@localhost/res1' id='pushe1d074611e7fae58' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_2984@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 11:07:38.915 ***🔗
REST request:
Code: 204
Req: {<0.82824.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5499d4783f6eb54b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2984@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>}],
<<>>,80,4640}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2984@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2984@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-04-23 11:07:38.915 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2984@localhost' to='bob_add_and_remove_some_contacts_properly_2984@localhost/res1' id='pushb465803ea3808e72' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_2984@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-23 11:07:38.974 ***🔗
REST request:
Code: 200
Req: {<0.82856.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a72296abb44e4e84">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2984@localhost\",\"kate_add_and_remove_some_contacts_properly_2984@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,51995}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2984@localhost">>,
<<"makrolika">>},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2984@localhost\",\"kate_add_and_remove_some_contacts_properly_2984@localhost\"]}">>,
role => client,return_headers => true}
*** User 2024-04-23 11:07:38.984 ***🔗
REST request:
Code: 200
Req: {<0.82884.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"01f598e0db778ccf">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk4NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 23 Apr 2024 11:07:38 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2984@localhost\"}]">>,
229,2564}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2984@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-04-23 11:07:38.985 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2984@localhost' to='bob_add_and_remove_some_contacts_properly_2984@localhost/res1' id='push0f0e4ea834cd033b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_2984@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-23 11:07:38.985 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:07:38.985 ***🔗
mike_add_and_remove_some_contacts_properly_2984@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:07:38.985 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:07:38.985 ***🔗
kate_add_and_remove_some_contacts_properly_2984@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:07:38.986 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:07:38.986 ***🔗
bob_add_and_remove_some_contacts_properly_2984@localhost/res1 in
</stream:stream>
*** User 2024-04-23 11:07:38.986 ***🔗
alice_add_and_remove_some_contacts_properly_2984@localhost/res1 out
</stream:stream>
*** User 2024-04-23 11:07:38.986 ***🔗
alice_add_and_remove_some_contacts_properly_2984@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-23 11:07:39
=== successfully completed test case
=== === Returned value: ok