=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.23781.2>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_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@ce8571dc8546.2024-04-26_13.09.10/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_13.24.58/rest_client_suite.add_and_remove_some_contacts_properly.177795.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@ce8571dc8546.2024-04-26_13.09.10/big_tests.tests.rest_client_SUITE.logs/run.2024-04-26_13.24.58/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@ce8571dc8546.2024-04-26_13.09.10"
=== Started at 2024-04-26 13:25:00
*** User 2024-04-26 13:25:00.713 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.714 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d272fc8fa2ae1b08' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:25:00.714 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.714 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0NABtYXR5Z3J5c2E=</auth>
*** User 2024-04-26 13:25:00.714 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:25:00.715 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.715 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='523f961585c41021' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3344@localhost'>
*** User 2024-04-26 13:25:00.715 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.715 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<iq type='set' id='35b7c13d6da6f63a8552473e699c8690'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:25:00.715 ***🔗
alicE_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq id='35b7c13d6da6f63a8552473e699c8690' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3344@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:25:00.715 ***🔗
alice_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<iq type='set' id='8e8338d640f394f1a8c84114ddd24394'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:25:00.716 ***🔗
alice_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_some_contacts_properly_3344@localhost/res1' id='8e8338d640f394f1a8c84114ddd24394' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:25:00.716 ***🔗
alice_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<presence/>
*** User 2024-04-26 13:25:00.718 ***🔗
alice_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3344@localhost/res1' to='alice_add_and_remove_some_contacts_properly_3344@localhost/res1'/>
*** User 2024-04-26 13:25:00.719 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.719 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21cf0ad61a67eff5' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:25:00.719 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.719 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMzNDQAbWFrcm9saWth</auth>
*** User 2024-04-26 13:25:00.720 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:25:00.720 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.720 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1c74c443cfe461cf' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3344@localhost'>
*** User 2024-04-26 13:25:00.720 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.720 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<iq type='set' id='27acad7c4982088195e1a53517d7d706'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:25:00.721 ***🔗
bOb_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq id='27acad7c4982088195e1a53517d7d706' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3344@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:25:00.721 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<iq type='set' id='99d497cace4c02519a31c1d7126ceaad'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:25:00.721 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_some_contacts_properly_3344@localhost/res1' id='99d497cace4c02519a31c1d7126ceaad' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:25:00.721 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<presence/>
*** User 2024-04-26 13:25:00.722 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3344@localhost/res1' to='bob_add_and_remove_some_contacts_properly_3344@localhost/res1'/>
*** User 2024-04-26 13:25:00.723 ***🔗
kate_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.723 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9dfce060d60a8d5e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:25:00.723 ***🔗
kate_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.723 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzQ0AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-26 13:25:00.724 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:25:00.724 ***🔗
kate_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.724 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c2ae7ce5f76ee706' from='localhost' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3344@localhost'>
*** User 2024-04-26 13:25:00.724 ***🔗
kate_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.724 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<iq type='set' id='31708b77dc5a7ee6f0a834f170c59a42'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:25:00.724 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq id='31708b77dc5a7ee6f0a834f170c59a42' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3344@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:25:00.725 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<iq type='set' id='657b20a8783abd3894cf1b5c81ea2cdc'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:25:00.725 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq from='localhost' to='kate_add_and_remove_some_contacts_properly_3344@localhost/res1' id='657b20a8783abd3894cf1b5c81ea2cdc' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:25:00.725 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<presence/>
*** User 2024-04-26 13:25:00.727 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3344@localhost/res1' to='kate_add_and_remove_some_contacts_properly_3344@localhost/res1'/>
*** User 2024-04-26 13:25:00.727 ***🔗
mike_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.728 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3f4367c1081c9b48' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:25:00.728 ***🔗
mike_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.728 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMzQ0AG5pY25pZW1h</auth>
*** User 2024-04-26 13:25:00.729 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:25:00.729 ***🔗
mike_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.729 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='779edfddfc51bd2e' from='localhost' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3344@localhost'>
*** User 2024-04-26 13:25:00.729 ***🔗
mike_add_and_remove_some_contacts_properly_3344@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-26 13:25:00.729 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<iq type='set' id='d0600133512884e6583e633a97c4b52e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:25:00.729 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq id='d0600133512884e6583e633a97c4b52e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3344@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:25:00.730 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<iq type='set' id='f21c6def037791dce7157e06c84ba121'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:25:00.730 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq from='localhost' to='mike_add_and_remove_some_contacts_properly_3344@localhost/res1' id='f21c6def037791dce7157e06c84ba121' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:25:00.730 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 out
<presence/>
*** User 2024-04-26 13:25:00.732 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3344@localhost/res1' to='mike_add_and_remove_some_contacts_properly_3344@localhost/res1'/>
*** User 2024-04-26 13:25:00.741 ***🔗
REST request:
Code: 204
Req: {<0.23918.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eae486f935d4f28a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3344@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:00 GMT">>}],
<<>>,80,4390}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3344@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3344@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:25:00.741 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3344@localhost' to='bob_add_and_remove_some_contacts_properly_3344@localhost/res1' id='push48cf3b5f9c512dbd' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3344@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:25:00.751 ***🔗
REST request:
Code: 204
Req: {<0.23948.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4098f99de4fcc5ed">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3344@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:00 GMT">>}],
<<>>,80,4099}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3344@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3344@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:25:00.752 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3344@localhost' to='bob_add_and_remove_some_contacts_properly_3344@localhost/res1' id='push0865a364f386b833' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3344@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:25:00.797 ***🔗
REST request:
Code: 204
Req: {<0.23982.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"518c2168f0b28a3b">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3344@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:00 GMT">>}],
<<>>,80,5243}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3344@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3344@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:25:00.797 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3344@localhost' to='bob_add_and_remove_some_contacts_properly_3344@localhost/res1' id='pusha092fe44bd353144' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3344@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:25:00.809 ***🔗
REST request:
Code: 200
Req: {<0.24017.2>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a3f6192ddc1784d1">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3344@localhost\",\"kate_add_and_remove_some_contacts_properly_3344@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,4945}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3344@localhost\",\"kate_add_and_remove_some_contacts_properly_3344@localhost\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3344@localhost">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:25:00.817 ***🔗
REST request:
Code: 200
Req: {<0.24040.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a21d4f60ed657a89">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzM0NEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:25:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3344@localhost\",\"ask\":\"none\"}]">>,
229,2676}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3344@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 13:25:00.817 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3344@localhost' to='bob_add_and_remove_some_contacts_properly_3344@localhost/res1' id='push3569775dca712efc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3344@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-26 13:25:00.817 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 out
</stream:stream>
*** User 2024-04-26 13:25:00.817 ***🔗
mike_add_and_remove_some_contacts_properly_3344@localhost/res1 in
</stream:stream>
*** User 2024-04-26 13:25:00.818 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 out
</stream:stream>
*** User 2024-04-26 13:25:00.818 ***🔗
kate_add_and_remove_some_contacts_properly_3344@localhost/res1 in
</stream:stream>
*** User 2024-04-26 13:25:00.818 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 out
</stream:stream>
*** User 2024-04-26 13:25:00.819 ***🔗
bob_add_and_remove_some_contacts_properly_3344@localhost/res1 in
</stream:stream>
*** User 2024-04-26 13:25:00.819 ***🔗
alice_add_and_remove_some_contacts_properly_3344@localhost/res1 out
</stream:stream>
*** User 2024-04-26 13:25:00.819 ***🔗
alice_add_and_remove_some_contacts_properly_3344@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-26 13:25:00
=== successfully completed test case
=== === Returned value: ok