=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.7936.2>},
{muc_light_host,<<"muclight.domain.example.com">>},
{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@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.22.02/rest_client_suite.add_and_remove_some_contacts_properly.137987.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@a557e8d70b1c.2023-11-17_15.09.37/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.22.02/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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@a557e8d70b1c.2023-11-17_15.09.37"
=== Started at 2023-11-17 15:22:03
*** User 2023-11-17 15:22:03.976 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.976 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f9c30971d3875a48' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:03.977 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/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 2023-11-17 15:22:03.977 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjc1OQBtYXR5Z3J5c2E=</auth>
*** User 2023-11-17 15:22:03.977 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:03.977 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.978 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='405c47a58c13c16e' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_2759@domain.example.com'>
*** User 2023-11-17 15:22:03.978 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/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 2023-11-17 15:22:03.978 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<iq type='set' id='bd4468d76c8017ae538d36af7fe09712'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:03.978 ***🔗
alicE_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq id='bd4468d76c8017ae538d36af7fe09712' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:03.978 ***🔗
alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<iq type='set' id='0c0774520e148b870389d3064ce3966c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.979 ***🔗
alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' id='0c0774520e148b870389d3064ce3966c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.979 ***🔗
alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:22:03.980 ***🔗
alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1'/>
*** User 2023-11-17 15:22:03.980 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.981 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='88327b8fa078e3b5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:03.981 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/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 2023-11-17 15:22:03.981 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzI3NTkAbWFrcm9saWth</auth>
*** User 2023-11-17 15:22:03.982 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:03.982 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.982 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='02bf1911c6618de9' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_2759@domain.example.com'>
*** User 2023-11-17 15:22:03.982 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/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 2023-11-17 15:22:03.982 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<iq type='set' id='f941759cf29991115d014ba89c5f0695'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:03.982 ***🔗
bOb_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq id='f941759cf29991115d014ba89c5f0695' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:03.983 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<iq type='set' id='10dbf7cd393cadf5929ae29db926f600'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.983 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' id='10dbf7cd393cadf5929ae29db926f600' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.983 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:22:03.985 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1'/>
*** User 2023-11-17 15:22:03.986 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.986 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4e8989eb2282060b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:03.986 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/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 2023-11-17 15:22:03.986 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yNzU5AG1ha3Jvd2U7cA==</auth>
*** User 2023-11-17 15:22:03.987 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:03.987 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.987 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8b2a91ad32297c47' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_2759@domain.example.com'>
*** User 2023-11-17 15:22:03.987 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/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 2023-11-17 15:22:03.987 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<iq type='set' id='476058fec17c144d8593b15ed60cb92f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:03.987 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq id='476058fec17c144d8593b15ed60cb92f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:03.987 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<iq type='set' id='652b66b72e477b4d3c2df5bbc8b3e3ae'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.988 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' id='652b66b72e477b4d3c2df5bbc8b3e3ae' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.988 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:22:03.989 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1'/>
*** User 2023-11-17 15:22:03.990 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.990 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c7aab6a2788c70ad' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:22:03.990 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/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 2023-11-17 15:22:03.990 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yNzU5AG5pY25pZW1h</auth>
*** User 2023-11-17 15:22:03.991 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:22:03.991 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:22:03.991 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1edc92e7291a8843' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_2759@domain.example.com'>
*** User 2023-11-17 15:22:03.992 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/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 2023-11-17 15:22:03.992 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<iq type='set' id='e670d4872267da37dcdedaec5c1c3042'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:22:03.992 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq id='e670d4872267da37dcdedaec5c1c3042' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:22:03.992 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<iq type='set' id='9a576a99482ec8e09572be8aa190bf21'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.993 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' id='9a576a99482ec8e09572be8aa190bf21' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:22:03.993 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
<presence/>
*** User 2023-11-17 15:22:03.995 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1'/>
*** User 2023-11-17 15:22:04.006 ***🔗
REST request:
Code: 204
Req: {<0.8057.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b4b945694d3907a6">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjc1OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2759@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:22:03 GMT">>}],
<<>>,80,4898}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2759@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2759@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2023-11-17 15:22:04.006 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2759@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' id='push956c86035f86d5ca' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2759@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:22:04.025 ***🔗
REST request:
Code: 204
Req: {<0.8093.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"66bbcc9b64b64700">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjc1OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2759@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:22:03 GMT">>}],
<<>>,80,7685}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2759@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2759@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2023-11-17 15:22:04.026 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2759@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' id='pushddd318a23c5a224b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2759@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:22:04.074 ***🔗
REST request:
Code: 204
Req: {<0.8127.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a667195e771c0d0a">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjc1OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2759@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:22:03 GMT">>}],
<<>>,80,2824}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2759@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2759@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2023-11-17 15:22:04.074 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2759@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' id='push06987ae94170382d' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2759@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:22:04.083 ***🔗
REST request:
Code: 200
Req: {<0.8166.2>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"61b2b11eff9ab8be">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjc1OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2759@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2759@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:22:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,3512}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2759@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2759@domain.example.com\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2759@domain.example.com">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2023-11-17 15:22:04.090 ***🔗
REST request:
Code: 200
Req: {<0.8190.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b1873aaf8bfb7b47">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjc1OUBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:22:03 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2759@domain.example.com\",\"ask\":\"none\"}]">>,
238,2024}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2759@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2023-11-17 15:22:04.090 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2759@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1' id='push73f4e4c840f574da' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2759@domain.example.com'/>
</query>
</iq>
*** User 2023-11-17 15:22:04.090 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:22:04.091 ***🔗
mike_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-17 15:22:04.091 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:22:04.091 ***🔗
kate_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-17 15:22:04.092 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:22:04.092 ***🔗
bob_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-17 15:22:04.092 ***🔗
alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-17 15:22:04.093 ***🔗
alice_add_and_remove_some_contacts_properly_2759@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:22:04
=== successfully completed test case
=== === Returned value: ok