=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.88213.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@d2b9c060e4a6.2024-03-12_11.08.00/big_tests.tests.rest_client_SUITE.logs/run.2024-03-12_11.25.55/rest_client_suite.add_and_remove_some_contacts_properly.110340.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@d2b9c060e4a6.2024-03-12_11.08.00/big_tests.tests.rest_client_SUITE.logs/run.2024-03-12_11.25.55/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,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d2b9c060e4a6.2024-03-12_11.08.00"
=== Started at 2024-03-12 11:25:56
*** User 2024-03-12 11:25:56.862 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.863 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c56caee9b9a37229' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-12 11:25:56.863 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.863 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI4OABtYXR5Z3J5c2E=</auth>
*** User 2024-03-12 11:25:56.864 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-12 11:25:56.864 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.864 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4b87fc514151e1c5' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3288@localhost'>
*** User 2024-03-12 11:25:56.864 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.864 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<iq type='set' id='1ab89cf0117ada1f4c65ddd42cb128ea'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-12 11:25:56.864 ***🔗
alicE_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq id='1ab89cf0117ada1f4c65ddd42cb128ea' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3288@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-12 11:25:56.864 ***🔗
alice_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<iq type='set' id='5b1295e5ee025361de6b6514003708f8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:56.865 ***🔗
alice_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3288@localhost/res1' id='5b1295e5ee025361de6b6514003708f8' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:56.865 ***🔗
alice_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<presence/>
*** User 2024-03-12 11:25:56.866 ***🔗
alice_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3288@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3288@localhost/res1'/>
*** User 2024-03-12 11:25:56.867 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.867 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b06df388709063fc' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-12 11:25:56.867 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.867 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMyODgAbWFrcm9saWth</auth>
*** User 2024-03-12 11:25:56.869 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-12 11:25:56.869 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.869 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='77fab849a3db3ec3' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3288@localhost'>
*** User 2024-03-12 11:25:56.869 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.869 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<iq type='set' id='3ae8425d92854f63b26b7a78b80af7ba'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-12 11:25:56.869 ***🔗
bOb_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq id='3ae8425d92854f63b26b7a78b80af7ba' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3288@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-12 11:25:56.869 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<iq type='set' id='014a187cafc443233923d8b96c0dc2a8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:56.870 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3288@localhost/res1' id='014a187cafc443233923d8b96c0dc2a8' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:56.870 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<presence/>
*** User 2024-03-12 11:25:56.871 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3288@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3288@localhost/res1'/>
*** User 2024-03-12 11:25:56.872 ***🔗
kate_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.872 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='24414c384d883d8c' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-12 11:25:56.872 ***🔗
kate_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.872 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjg4AG1ha3Jvd2U7cA==</auth>
*** User 2024-03-12 11:25:56.873 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-12 11:25:56.873 ***🔗
kate_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.873 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b6a0853a5204f08d' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3288@localhost'>
*** User 2024-03-12 11:25:56.873 ***🔗
kate_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.873 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<iq type='set' id='8b6f99a1b2f2f3745ad793837de4354a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-12 11:25:56.873 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq id='8b6f99a1b2f2f3745ad793837de4354a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3288@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-12 11:25:56.874 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<iq type='set' id='3f7be9aba4a4363bba7d909f4e69abe3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:56.874 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3288@localhost/res1' id='3f7be9aba4a4363bba7d909f4e69abe3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:56.874 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<presence/>
*** User 2024-03-12 11:25:56.876 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3288@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3288@localhost/res1'/>
*** User 2024-03-12 11:25:56.876 ***🔗
mike_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.876 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ec8a6856ac669dc1' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-12 11:25:56.876 ***🔗
mike_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.877 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMjg4AG5pY25pZW1h</auth>
*** User 2024-03-12 11:25:56.877 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-12 11:25:56.877 ***🔗
mike_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.878 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='919e3f0ca20eee84' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3288@localhost'>
*** User 2024-03-12 11:25:56.878 ***🔗
mike_add_and_remove_some_contacts_properly_3288@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-12 11:25:56.878 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<iq type='set' id='3a7c62915bfb106468a937bea0fa97ef'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-12 11:25:56.878 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq id='3a7c62915bfb106468a937bea0fa97ef' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3288@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-12 11:25:56.878 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<iq type='set' id='02c9383e61ddd50f14c3c39f18c83412'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:56.878 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3288@localhost/res1' id='02c9383e61ddd50f14c3c39f18c83412' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-12 11:25:56.878 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 out
<presence/>
*** User 2024-03-12 11:25:56.880 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3288@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3288@localhost/res1'/>
*** User 2024-03-12 11:25:56.903 ***🔗
REST request:
Code: 204
Req: {<0.88338.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"efead827fac93d58">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI4OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3288@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 11:25:55 GMT">>}],
<<>>,80,18544}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3288@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3288@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-03-12 11:25:56.903 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3288@localhost' to='bob_add_and_remove_some_contacts_properly_3288@localhost/res1' id='pushf2d48bb7b7f8eeb8' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3288@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-12 11:25:56.914 ***🔗
REST request:
Code: 204
Req: {<0.88374.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ce91bc202da17223">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI4OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3288@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 11:25:55 GMT">>}],
<<>>,80,4616}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3288@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3288@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-03-12 11:25:56.914 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3288@localhost' to='bob_add_and_remove_some_contacts_properly_3288@localhost/res1' id='push343f5a18a1bf271b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3288@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-12 11:25:56.922 ***🔗
REST request:
Code: 204
Req: {<0.88410.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8943616d0f411180">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI4OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3288@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 11:25:56 GMT">>}],
<<>>,80,3460}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3288@localhost">>,
<<"makrolika">>},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3288@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-03-12 11:25:56.922 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3288@localhost' to='bob_add_and_remove_some_contacts_properly_3288@localhost/res1' id='push7a2ad1371a120ced' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3288@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-12 11:25:56.932 ***🔗
REST request:
Code: 200
Req: {<0.88443.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e2ea1e8a01a27fe4">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI4OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3288@localhost\",\"kate_add_and_remove_some_contacts_properly_3288@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 11:25:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,6311}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3288@localhost">>,
<<"makrolika">>},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3288@localhost\",\"kate_add_and_remove_some_contacts_properly_3288@localhost\"]}">>,
role => client,return_headers => true}
*** User 2024-03-12 11:25:56.939 ***🔗
REST request:
Code: 200
Req: {<0.88470.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c0cc4693346a6128">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzI4OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 12 Mar 2024 11:25:56 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3288@localhost\"}]">>,
229,2510}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3288@localhost">>,
<<"makrolika">>},
body => <<>>,role => client,return_headers => true}
*** User 2024-03-12 11:25:56.939 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3288@localhost' to='bob_add_and_remove_some_contacts_properly_3288@localhost/res1' id='push9618b853f357ca44' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3288@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-03-12 11:25:56.939 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 out
</stream:stream>
*** User 2024-03-12 11:25:56.939 ***🔗
mike_add_and_remove_some_contacts_properly_3288@localhost/res1 in
</stream:stream>
*** User 2024-03-12 11:25:56.939 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 out
</stream:stream>
*** User 2024-03-12 11:25:56.939 ***🔗
kate_add_and_remove_some_contacts_properly_3288@localhost/res1 in
</stream:stream>
*** User 2024-03-12 11:25:56.940 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 out
</stream:stream>
*** User 2024-03-12 11:25:56.940 ***🔗
bob_add_and_remove_some_contacts_properly_3288@localhost/res1 in
</stream:stream>
*** User 2024-03-12 11:25:56.940 ***🔗
alice_add_and_remove_some_contacts_properly_3288@localhost/res1 out
</stream:stream>
*** User 2024-03-12 11:25:56.940 ***🔗
alice_add_and_remove_some_contacts_properly_3288@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-12 11:25:56
=== successfully completed test case
=== === Returned value: ok