=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.88641.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@f9de24452ab3.2024-04-10_11.46.55/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.02.28/rest_client_suite.add_and_remove_some_contacts_properly.170115.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@f9de24452ab3.2024-04-10_11.46.55/big_tests.tests.rest_client_SUITE.logs/run.2024-04-10_12.02.28/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_amp => #{},
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_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@f9de24452ab3.2024-04-10_11.46.55"
=== Started at 2024-04-10 12:02:29
*** User 2024-04-10 12:02:30.012 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.012 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='84d5d5fe2f5436b9' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:02:30.012 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.012 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2OQBtYXR5Z3J5c2E=</auth>
*** User 2024-04-10 12:02:30.014 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:02:30.014 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.014 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c894d30e3d24eca6' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3369@localhost'>
*** User 2024-04-10 12:02:30.014 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.014 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<iq type='set' id='1107fc35dd5708f30c93cf8d6d5f41df'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:02:30.014 ***🔗
alicE_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq id='1107fc35dd5708f30c93cf8d6d5f41df' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3369@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:02:30.015 ***🔗
alice_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<iq type='set' id='ee26024767ee52f7432ca1f799fd61b4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:02:30.015 ***🔗
alice_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3369@localhost/res1' id='ee26024767ee52f7432ca1f799fd61b4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:02:30.015 ***🔗
alice_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<presence/>
*** User 2024-04-10 12:02:30.016 ***🔗
alice_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3369@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3369@localhost/res1'/>
*** User 2024-04-10 12:02:30.017 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.017 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f11d8e49f3c50683' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:02:30.017 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.017 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMzNjkAbWFrcm9saWth</auth>
*** User 2024-04-10 12:02:30.018 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:02:30.018 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.019 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7b30b41ca63ac07d' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3369@localhost'>
*** User 2024-04-10 12:02:30.019 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.019 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<iq type='set' id='47079ae544740c66da76a41c950c9a7d'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:02:30.019 ***🔗
bOb_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq id='47079ae544740c66da76a41c950c9a7d' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3369@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:02:30.019 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<iq type='set' id='6a105e92dcd722489d5ed9c94f8e39e9'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:02:30.020 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3369@localhost/res1' id='6a105e92dcd722489d5ed9c94f8e39e9' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:02:30.020 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<presence/>
*** User 2024-04-10 12:02:30.022 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3369@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3369@localhost/res1'/>
*** User 2024-04-10 12:02:30.022 ***🔗
kate_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.022 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0d52f114a5d10a82' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:02:30.022 ***🔗
kate_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.022 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzY5AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-10 12:02:30.023 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:02:30.023 ***🔗
kate_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.023 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='897cf25bc1aaefeb' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3369@localhost'>
*** User 2024-04-10 12:02:30.023 ***🔗
kate_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.024 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<iq type='set' id='7b2d257fc6f47ac861231d1ae8e9a561'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:02:30.024 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq id='7b2d257fc6f47ac861231d1ae8e9a561' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3369@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:02:30.024 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<iq type='set' id='d8a288fb982c6048f5aea5a48449d639'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:02:30.024 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3369@localhost/res1' id='d8a288fb982c6048f5aea5a48449d639' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:02:30.024 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<presence/>
*** User 2024-04-10 12:02:30.026 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3369@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3369@localhost/res1'/>
*** User 2024-04-10 12:02:30.026 ***🔗
mike_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.026 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fe677aabad87df3a' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-10 12:02:30.027 ***🔗
mike_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.027 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzY5AG5pY25pZW1h</auth>
*** User 2024-04-10 12:02:30.028 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 12:02:30.028 ***🔗
mike_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.028 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f41edc0b82d4ae7' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3369@localhost'>
*** User 2024-04-10 12:02:30.028 ***🔗
mike_add_and_remove_some_contacts_properly_3369@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-10 12:02:30.028 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<iq type='set' id='06e46ecf838bcaf83d59c04d28629894'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 12:02:30.028 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq id='06e46ecf838bcaf83d59c04d28629894' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3369@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-10 12:02:30.028 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<iq type='set' id='70f014b0f407e84e495a65cbf17c7664'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:02:30.029 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3369@localhost/res1' id='70f014b0f407e84e495a65cbf17c7664' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 12:02:30.029 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 out
<presence/>
*** User 2024-04-10 12:02:30.030 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3369@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3369@localhost/res1'/>
*** User 2024-04-10 12:02:30.058 ***🔗
REST request:
Code: 204
Req: {<0.88766.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f92ca9108dccfd5e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3369@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:02:29 GMT">>}],
<<>>,80,23616}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3369@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 12:02:30.058 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3369@localhost' to='bob_add_and_remove_some_contacts_properly_3369@localhost/res1' id='push3f600717e8f66a09' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3369@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:02:30.066 ***🔗
REST request:
Code: 204
Req: {<0.88808.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6a36ad7c3d45d527">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3369@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:02:29 GMT">>}],
<<>>,80,3530}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3369@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 12:02:30.066 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3369@localhost' to='bob_add_and_remove_some_contacts_properly_3369@localhost/res1' id='push55f8ca9ac20c94c5' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3369@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:02:30.074 ***🔗
REST request:
Code: 204
Req: {<0.88832.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a72b6b81df42c092">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3369@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:02:29 GMT">>}],
<<>>,80,4167}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3369@localhost\"}">>,
method => <<"POST">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 12:02:30.074 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3369@localhost' to='bob_add_and_remove_some_contacts_properly_3369@localhost/res1' id='pushbefa1970ae365922' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3369@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 12:02:30.084 ***🔗
REST request:
Code: 200
Req: {<0.88871.0>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"30976447a4e8bd67">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3369@localhost\",\"kate_add_and_remove_some_contacts_properly_3369@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:02:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,5915}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3369@localhost\",\"kate_add_and_remove_some_contacts_properly_3369@localhost\"]}">>,
method => <<"DELETE">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 12:02:30.091 ***🔗
REST request:
Code: 200
Req: {<0.88904.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5e2bfb00021c5b75">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM2OUBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 12:02:29 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3369@localhost\"}]">>,
229,2323}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => client,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3369@localhost">>,
<<"makrolika">>},
return_headers => true}
*** User 2024-04-10 12:02:30.091 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3369@localhost' to='bob_add_and_remove_some_contacts_properly_3369@localhost/res1' id='push4a0081232c82ccda' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3369@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-10 12:02:30.091 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:02:30.091 ***🔗
mike_add_and_remove_some_contacts_properly_3369@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:02:30.092 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:02:30.092 ***🔗
kate_add_and_remove_some_contacts_properly_3369@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:02:30.092 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:02:30.092 ***🔗
bob_add_and_remove_some_contacts_properly_3369@localhost/res1 in
</stream:stream>
*** User 2024-04-10 12:02:30.092 ***🔗
alice_add_and_remove_some_contacts_properly_3369@localhost/res1 out
</stream:stream>
*** User 2024-04-10 12:02:30.093 ***🔗
alice_add_and_remove_some_contacts_properly_3369@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-10 12:02:30
=== successfully completed test case
=== === Returned value: ok