=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.31122.1>},
{muc_light_host,<<"muclight.domain.example.com">>},
{mam_backend,rdbms},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"pgsql_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.rest_client_SUITE.logs/run.2022-03-18_10.58.25/rest_client_suite.add_and_remove_some_contacts_properly.105603.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@a072b68d2bee.2022-03-18_10.50.04/big_tests.tests.rest_client_SUITE.logs/run.2022-03-18_10.58.25/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 => [],mod_commands => [],
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_muc_commands => [],mod_muc_light_commands => [],
mod_register =>
[{access,register},
{ip_access,[{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
{welcome_message,{[],[]}}],
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@a072b68d2bee.2022-03-18_10.50.04"
=== Started at 2022-03-18 10:58:28
*** User 2022-03-18 10:58:28.690 ***
alicE_add_and_remove_some_contacts_properly_2030@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 2022-03-18 10:58:28.690 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9b8d30b050f16324' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:28.691 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-18 10:58:28.691 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMABtYXR5Z3J5c2E=</auth>
*** User 2022-03-18 10:58:28.692 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:58:28.692 ***
alicE_add_and_remove_some_contacts_properly_2030@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 2022-03-18 10:58:28.692 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='55033ef231d8f679' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:28.692 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-18 10:58:28.693 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='33bb6cb8764a1fe6ba87a9e20c953b09'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:58:28.693 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq id='33bb6cb8764a1fe6ba87a9e20c953b09' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:58:28.693 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='8369f5471f047b737359a8e049c4d086'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:28.694 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq type='result' id='8369f5471f047b737359a8e049c4d086'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:28.694 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<presence/>
*** User 2022-03-18 10:58:28.697 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' to='alice_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-18 10:58:28.698 ***
bOb_add_and_remove_some_contacts_properly_2030@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 2022-03-18 10:58:28.699 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5125b81ca0d67b6a' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:28.699 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-18 10:58:28.699 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzIwMzAAbWFrcm9saWth</auth>
*** User 2022-03-18 10:58:28.700 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:58:28.700 ***
bOb_add_and_remove_some_contacts_properly_2030@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 2022-03-18 10:58:28.701 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0fb4b3684a39a9f5' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:28.701 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-18 10:58:28.701 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='5100acec1f0d78ce4105d96c3d58896f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:58:28.701 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq id='5100acec1f0d78ce4105d96c3d58896f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:58:28.702 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='a200a5b5982f19d6a16c6e6b354af642'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:28.702 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq type='result' id='a200a5b5982f19d6a16c6e6b354af642'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:28.702 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<presence/>
*** User 2022-03-18 10:58:28.704 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-18 10:58:28.705 ***
kate_add_and_remove_some_contacts_properly_2030@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 2022-03-18 10:58:28.707 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c4864a78acd0dfaa' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:28.707 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-18 10:58:28.707 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMDMwAG1ha3Jvd2U7cA==</auth>
*** User 2022-03-18 10:58:28.709 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:58:28.709 ***
kate_add_and_remove_some_contacts_properly_2030@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 2022-03-18 10:58:28.709 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8820c5b007dd8ce6' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:28.709 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-18 10:58:28.710 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='837753d1a8c77709bd0198ed81b2c8f8'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:58:28.710 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq id='837753d1a8c77709bd0198ed81b2c8f8' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:58:28.710 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='2321473aa83d96d6a57b403a5da42bba'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:28.710 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq type='result' id='2321473aa83d96d6a57b403a5da42bba'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:28.711 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<presence/>
*** User 2022-03-18 10:58:28.713 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' to='kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-18 10:58:28.713 ***
mike_add_and_remove_some_contacts_properly_2030@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 2022-03-18 10:58:28.714 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='743660edb03b8006' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:28.714 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-18 10:58:28.714 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8yMDMwAG5pY25pZW1h</auth>
*** User 2022-03-18 10:58:28.715 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-03-18 10:58:28.715 ***
mike_add_and_remove_some_contacts_properly_2030@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 2022-03-18 10:58:28.715 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a8d91a86ee2f9507' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2022-03-18 10:58:28.715 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<stream:features>
<compression xmlns='http://jabber.org/features/compress'>
<method>zlib</method>
</compression>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2022-03-18 10:58:28.716 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='52da8e01ef39eccab3b5c017a2bcd980'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-03-18 10:58:28.716 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq id='52da8e01ef39eccab3b5c017a2bcd980' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2022-03-18 10:58:28.716 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<iq type='set' id='6a679bbf97e9200463b7fec1070dfa00'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:28.716 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq type='result' id='6a679bbf97e9200463b7fec1070dfa00'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-03-18 10:58:28.716 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
<presence/>
*** User 2022-03-18 10:58:28.719 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' to='mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' xml:lang='en'/>
*** User 2022-03-18 10:58:28.763 ***
REST request:
Code: 204
Req: {<0.31241.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0b1fee1c1f379099">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:58:28 GMT">>}],
<<>>,80,5569}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:58:28.763 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2030@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' id='pushdc82ea2c2493c6c6' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_2030@domain.example.com'/>
</query>
</iq>
*** User 2022-03-18 10:58:28.782 ***
REST request:
Code: 204
Req: {<0.31268.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"51be69f59e1bae63">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:58:28 GMT">>}],
<<>>,80,5979}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:58:28.782 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2030@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' id='pushb4bc116b77ffee8a' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_2030@domain.example.com'/>
</query>
</iq>
*** User 2022-03-18 10:58:28.801 ***
REST request:
Code: 204
Req: {<0.31296.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"104ace44d9ddfc10">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:58:28 GMT">>}],
<<>>,80,5040}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_2030@domain.example.com\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:58:28.801 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2030@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' id='push294a007e0add07bb' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_2030@domain.example.com'/>
</query>
</iq>
*** User 2022-03-18 10:58:28.860 ***
REST request:
Code: 200
Req: {<0.31331.1>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"15d5b7c3bae0c174">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2030@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2030@domain.example.com\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:58:28 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,4399}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_2030@domain.example.com\",\"kate_add_and_remove_some_contacts_properly_2030@domain.example.com\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:58:28.872 ***
REST request:
Code: 200
Req: {<0.31349.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4a56df595931bac5">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMjAzMEBkb21haW4uZXhhbXBsZS5jb206bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 18 Mar 2022 10:58:28 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"113">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_2030@domain.example.com\",\"ask\":\"none\"}]">>,
238,2252}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_2030@domain.example.com">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-03-18 10:58:28.872 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_2030@domain.example.com' to='bob_add_and_remove_some_contacts_properly_2030@domain.example.com/res1' id='push1e20da3aa5bfe3a8' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_2030@domain.example.com'/>
</query>
</iq>
*** User 2022-03-18 10:58:28.872 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-18 10:58:28.872 ***
mike_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-18 10:58:28.872 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-18 10:58:28.873 ***
kate_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-18 10:58:28.873 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-18 10:58:28.874 ***
bOb_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
</stream:stream>
*** User 2022-03-18 10:58:28.874 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 out
</stream:stream>
*** User 2022-03-18 10:58:28.874 ***
alicE_add_and_remove_some_contacts_properly_2030@domain.example.com/res1 in
</stream:stream>
=== Ended at 2022-03-18 10:58:28
=== successfully completed test case
=== === Returned value: ok