=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.13372.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@c3695dab14af.2024-04-22_14.48.10/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.02.19/rest_client_suite.add_and_remove_some_contacts_properly.227330.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@c3695dab14af.2024-04-22_14.48.10/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.02.19/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@c3695dab14af.2024-04-22_14.48.10"
=== Started at 2024-04-22 15:02:21
*** User 2024-04-22 15:02:21.955 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.957 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7da016a0c59f28c4' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:02:21.957 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.957 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3OABtYXR5Z3J5c2E=</auth>
*** User 2024-04-22 15:02:21.958 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:02:21.959 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.959 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e4ecdea4657a7dfe' from='domain.example.com' version='1.0' xml:lang='en' to='alice_add_and_remove_some_contacts_properly_3178@domain.example.com'>
*** User 2024-04-22 15:02:21.959 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.959 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<iq type='set' id='0fa3bd33889e58e3c2696b2ab9959df9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:02:21.959 ***🔗
alicE_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq id='0fa3bd33889e58e3c2696b2ab9959df9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:02:21.960 ***🔗
alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<iq type='set' id='fb599051397bb028e34ac5b5ffe2d368'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:02:21.960 ***🔗
alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' id='fb599051397bb028e34ac5b5ffe2d368' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:02:21.960 ***🔗
alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 15:02:21.963 ***🔗
alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<presence from='alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1'/>
*** User 2024-04-22 15:02:21.964 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.965 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e1b1aac524a87212' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:02:21.966 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.966 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzMxNzgAbWFrcm9saWth</auth>
*** User 2024-04-22 15:02:21.969 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:02:21.969 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.970 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='45ebfb8e3e1f5c9a' from='domain.example.com' version='1.0' xml:lang='en' to='bob_add_and_remove_some_contacts_properly_3178@domain.example.com'>
*** User 2024-04-22 15:02:21.970 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.970 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<iq type='set' id='5ddbc1101e9cc7333c2da51ead083c5a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:02:21.971 ***🔗
bOb_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq id='5ddbc1101e9cc7333c2da51ead083c5a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:02:21.971 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<iq type='set' id='0d00d5e0769f0fca4a15386169f5473d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:02:21.972 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' id='0d00d5e0769f0fca4a15386169f5473d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:02:21.972 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 15:02:21.974 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<presence from='bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1'/>
*** User 2024-04-22 15:02:21.975 ***🔗
kate_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.976 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b0d8fd463eca1150' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:02:21.976 ***🔗
kate_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.976 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMTc4AG1ha3Jvd2U7cA==</auth>
*** User 2024-04-22 15:02:21.977 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:02:21.978 ***🔗
kate_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.978 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='ce116603cfd655c2' from='domain.example.com' version='1.0' xml:lang='en' to='kate_add_and_remove_some_contacts_properly_3178@domain.example.com'>
*** User 2024-04-22 15:02:21.978 ***🔗
kate_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.978 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<iq type='set' id='d6260af4e2c430f3202005f3dcd4b410'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:02:21.979 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq id='d6260af4e2c430f3202005f3dcd4b410' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:02:21.979 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<iq type='set' id='d569c12f89df4bf90b0bd2da90850021'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:02:21.981 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq from='domain.example.com' to='kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' id='d569c12f89df4bf90b0bd2da90850021' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:02:21.981 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 15:02:21.984 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1'/>
*** User 2024-04-22 15:02:21.984 ***🔗
mike_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.985 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9be952d97701e9ee' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:02:21.985 ***🔗
mike_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.985 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8zMTc4AG5pY25pZW1h</auth>
*** User 2024-04-22 15:02:21.987 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:02:21.987 ***🔗
mike_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.987 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21914f7546288164' from='domain.example.com' version='1.0' xml:lang='en' to='mike_add_and_remove_some_contacts_properly_3178@domain.example.com'>
*** User 2024-04-22 15:02:21.987 ***🔗
mike_add_and_remove_some_contacts_properly_3178@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 2024-04-22 15:02:21.988 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<iq type='set' id='781842f37221ae89146afdf89747d9b1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:02:21.988 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq id='781842f37221ae89146afdf89747d9b1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:02:21.988 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<iq type='set' id='7d39548e4a74d5b86d3e9c1b14ea009e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:02:21.989 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq from='domain.example.com' to='mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' id='7d39548e4a74d5b86d3e9c1b14ea009e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:02:21.990 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
<presence/>
*** User 2024-04-22 15:02:21.993 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1'/>
*** User 2024-04-22 15:02:22.010 ***🔗
REST request:
Code: 204
Req: {<0.13511.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2f7a4a7491f6112c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3178@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:02:21 GMT">>}],
<<>>,80,7122}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_3178@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3178@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:02:22.042 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3178@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' id='push0fd18508a91635d6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3178@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 15:02:22.055 ***🔗
REST request:
Code: 204
Req: {<0.13537.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a60639908356e636">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3178@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:02:21 GMT">>}],
<<>>,80,4061}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_3178@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3178@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:02:22.055 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3178@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' id='push3cd4495b72f1c7d4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='kate_add_and_remove_some_contacts_properly_3178@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 15:02:22.071 ***🔗
REST request:
Code: 204
Req: {<0.13565.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d0c1c97591717518">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3178@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:02:21 GMT">>}],
<<>>,80,7951}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_3178@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3178@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:02:22.071 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3178@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' id='push8ea8b4e2111ace12' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='mike_add_and_remove_some_contacts_properly_3178@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 15:02:22.086 ***🔗
REST request:
Code: 200
Req: {<0.13600.2>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b4205bf87fded664">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3178@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3178@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:02:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,7975}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_3178@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_3178@domain.example.com\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3178@domain.example.com">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:02:22.097 ***🔗
REST request:
Code: 200
Req: {<0.13629.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e2d770580d6541c4">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMzE3OEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:02:21 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_3178@domain.example.com\",\"ask\":\"none\"}]">>,
238,3653}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_3178@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:02:22.098 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_3178@domain.example.com' to='bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1' id='pusha17c884d7258eb3b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_some_contacts_properly_3178@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 15:02:22.098 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 15:02:22.098 ***🔗
mike_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-22 15:02:22.098 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 15:02:22.099 ***🔗
kate_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-22 15:02:22.099 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 15:02:22.099 ***🔗
bob_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-22 15:02:22.099 ***🔗
alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-22 15:02:22.100 ***🔗
alice_add_and_remove_some_contacts_properly_3178@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-22 15:02:22
=== successfully completed test case
=== === Returned value: ok