=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.80295.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/rest_client_suite.add_and_remove_some_contacts_properly.105732.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/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_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,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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@76d8bb481028.2024-03-11_08.55.19"
=== Started at 2024-03-11 09:09:53
*** User 2024-03-11 09:09:53.618 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.618 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7fd79a22a323ae3b' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.622 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.622 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk3MQBtYXR5Z3J5c2E=</auth>
*** User 2024-03-11 09:09:53.623 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.623 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.623 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='578e7428d74aceeb' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2971@localhost'>
*** User 2024-03-11 09:09:53.624 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.624 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<iq type='set' id='66a3864956bc61dfa557586dd5544f06'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.624 ***🔗
alicE_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq id='66a3864956bc61dfa557586dd5544f06' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_2971@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.624 ***🔗
alice_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<iq type='set' id='57b3720c9cde597680ab1b8ad30aad85'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.625 ***🔗
alice_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_2971@localhost/res1' id='57b3720c9cde597680ab1b8ad30aad85' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.625 ***🔗
alice_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.626 ***🔗
alice_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2971@localhost/res1' to='alice_add_and_remove_some_contacts_properly_2971@localhost/res1'/>
*** User 2024-03-11 09:09:53.627 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.630 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0a6ff572081e9fa2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.630 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.630 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI5NzEAbWFrcm9saWth</auth>
*** User 2024-03-11 09:09:53.631 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.631 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.632 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bf312b44c81bee93' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2971@localhost'>
*** User 2024-03-11 09:09:53.632 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.632 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<iq type='set' id='994a214c97deaf37d6cf3db9a7ee5650'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.632 ***🔗
bOb_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq id='994a214c97deaf37d6cf3db9a7ee5650' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_2971@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.632 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<iq type='set' id='f1b481559140e3403a640a6927b34a36'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.633 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_2971@localhost/res1' id='f1b481559140e3403a640a6927b34a36' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.633 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.635 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2971@localhost/res1' to='bob_add_and_remove_some_contacts_properly_2971@localhost/res1'/>
*** User 2024-03-11 09:09:53.635 ***🔗
kate_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.636 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a20caeec079a9f05' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.636 ***🔗
kate_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.636 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTcxAG1ha3Jvd2U7cA==</auth>
*** User 2024-03-11 09:09:53.637 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.637 ***🔗
kate_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.637 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='08574c611249d3c5' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2971@localhost'>
*** User 2024-03-11 09:09:53.637 ***🔗
kate_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.638 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<iq type='set' id='91ea3f34298b9532c26e6be2c2f0d5de'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.638 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq id='91ea3f34298b9532c26e6be2c2f0d5de' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_2971@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.638 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<iq type='set' id='003b270265f5a7a499cdad19e0de3c5e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.639 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_2971@localhost/res1' id='003b270265f5a7a499cdad19e0de3c5e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.639 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.641 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2971@localhost/res1' to='kate_add_and_remove_some_contacts_properly_2971@localhost/res1'/>
*** User 2024-03-11 09:09:53.642 ***🔗
mike_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.642 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a901dc1b4e955b40' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.643 ***🔗
mike_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.643 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yOTcxAG5pY25pZW1h</auth>
*** User 2024-03-11 09:09:53.644 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.644 ***🔗
mike_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.644 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b5ed7d54bdfa491' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2971@localhost'>
*** User 2024-03-11 09:09:53.644 ***🔗
mike_add_and_remove_some_contacts_properly_2971@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-11 09:09:53.644 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<iq type='set' id='dbd0ed1fb1a020aa204bfbf8848db11d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.645 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq id='dbd0ed1fb1a020aa204bfbf8848db11d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_2971@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.645 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<iq type='set' id='a5b1368f0dbbc1eb5befe64a6b02c9a8'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.645 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_2971@localhost/res1' id='a5b1368f0dbbc1eb5befe64a6b02c9a8' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.646 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.648 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2971@localhost/res1' to='mike_add_and_remove_some_contacts_properly_2971@localhost/res1'/>
*** User 2024-03-11 09:09:53.690 ***🔗
REST request:
Code: 204
Req: {<0.80440.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"29c320fc0bbe24d5">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk3MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2971@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>}],
<<>>,80,4416}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2971@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2971@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.690 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2971@localhost' to='bob_add_and_remove_some_contacts_properly_2971@localhost/res1' id='push98cb2dce3d480688' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2971@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.700 ***🔗
REST request:
Code: 204
Req: {<0.80470.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3fd562fa904a369f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk3MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2971@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>}],
<<>>,80,3128}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2971@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2971@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.700 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2971@localhost' to='bob_add_and_remove_some_contacts_properly_2971@localhost/res1' id='pushe3f17aac34656b95' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2971@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.711 ***🔗
REST request:
Code: 204
Req: {<0.80503.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c2b33dc29dcee57d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk3MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2971@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>}],
<<>>,80,4095}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2971@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2971@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.712 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2971@localhost' to='bob_add_and_remove_some_contacts_properly_2971@localhost/res1' id='push42367c7b3689572c' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2971@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.722 ***🔗
REST request:
Code: 200
Req: {<0.80531.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f2efe07a758e0a53">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk3MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2971@localhost\",\"kate_add_and_remove_some_contacts_properly_2971@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,4458}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2971@localhost\",\"kate_add_and_remove_some_contacts_properly_2971@localhost\"]}">>,
method => <<"DELETE">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2971@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.730 ***🔗
REST request:
Code: 200
Req: {<0.80555.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d99a301678b9746f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjk3MUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2971@localhost\"}]">>,
229,2162}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2971@localhost">>,
<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.730 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2971@localhost' to='bob_add_and_remove_some_contacts_properly_2971@localhost/res1' id='push8eae5c509305c507' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2971@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.730 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.730 ***🔗
mike_add_and_remove_some_contacts_properly_2971@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:53.730 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.731 ***🔗
kate_add_and_remove_some_contacts_properly_2971@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:53.731 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.731 ***🔗
bob_add_and_remove_some_contacts_properly_2971@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:53.731 ***🔗
alice_add_and_remove_some_contacts_properly_2971@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.731 ***🔗
alice_add_and_remove_some_contacts_properly_2971@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 09:09:53
=== successfully completed test case
=== === Returned value: ok