=== Test case: rest_client_SUITE:add_and_remove_some_contacts_properly/1 (click for source code)
=== Config value:
[{watchdog,<0.21454.1>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,riak},
{archive_wait,2500},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{preset,"riak_mnesia"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_client_SUITE.logs/run.2022-04-05_07.57.09/rest_client_suite.add_and_remove_some_contacts_properly.57603.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@22b4515d438b.2022-04-05_07.43.19/big_tests.tests.rest_client_SUITE.logs/run.2022-04-05_07.57.09/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 => [],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 => riak,iqdisc => one_queue,
riak =>
#{bucket_type => <<"rosters">>,
version_bucket_type => <<"roster_versions">>},
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 => riak,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,
riak =>
#{bucket_type => <<"vcard">>,search_index => <<"vcard">>},
search => true}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@22b4515d438b.2022-04-05_07.43.19"
=== Started at 2022-04-05 07:57:31
*** User 2022-04-05 07:57:31.982 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:31.983 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1a65caa64ccd70f8' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:31.983 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/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-04-05 07:57:31.983 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0OABtYXR5Z3J5c2E=</auth>
*** User 2022-04-05 07:57:31.986 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:57:31.986 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:31.987 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1f364bbae6984d10' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:31.987 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/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-04-05 07:57:31.987 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<iq type='set' id='b80d46392dcc68b5c1b8e81c1da6f916'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:57:31.987 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq id='b80d46392dcc68b5c1b8e81c1da6f916' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alicE_add_and_remove_some_contacts_properly_1648@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:57:31.988 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<iq type='set' id='504985737e6702b2ccab2fe4c6f7bc16'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:31.988 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq type='result' id='504985737e6702b2ccab2fe4c6f7bc16'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:31.988 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<presence/>
*** User 2022-04-05 07:57:31.998 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<presence from='alicE_add_and_remove_some_contacts_properly_1648@localhost/res1' to='alice_add_and_remove_some_contacts_properly_1648@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:57:31.999 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:32.004 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4c21a240fdbd86fe' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:32.004 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/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-04-05 07:57:32.004 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV9zb21lX2NvbnRhY3RzX3Byb3Blcmx5XzE2NDgAbWFrcm9saWth</auth>
*** User 2022-04-05 07:57:32.007 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:57:32.008 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:32.008 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='68d42c315e5debd3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:32.008 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/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-04-05 07:57:32.008 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<iq type='set' id='1c316a11ab532c72eb1730aa6d78af0e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:57:32.009 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq id='1c316a11ab532c72eb1730aa6d78af0e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bOb_add_and_remove_some_contacts_properly_1648@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:57:32.009 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<iq type='set' id='84adca104660be999cc4fab5c0da575b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:32.009 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq type='result' id='84adca104660be999cc4fab5c0da575b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:32.010 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<presence/>
*** User 2022-04-05 07:57:32.070 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<presence from='bOb_add_and_remove_some_contacts_properly_1648@localhost/res1' to='bob_add_and_remove_some_contacts_properly_1648@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:57:32.074 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:32.079 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='66c8b99fa7b65468' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:32.079 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/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-04-05 07:57:32.079 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNjQ4AG1ha3Jvd2U7cA==</auth>
*** User 2022-04-05 07:57:32.093 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:57:32.093 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:32.094 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fbb08afefeffbea3' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:32.094 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/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-04-05 07:57:32.094 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<iq type='set' id='b6d13b1c616489179f917f329f983868'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:57:32.095 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq id='b6d13b1c616489179f917f329f983868' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>kate_add_and_remove_some_contacts_properly_1648@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:57:32.095 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<iq type='set' id='a7bacfd7b8f1f68c20f80c66b70e3c32'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:32.096 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq type='result' id='a7bacfd7b8f1f68c20f80c66b70e3c32'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:32.096 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<presence/>
*** User 2022-04-05 07:57:32.118 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<presence from='kate_add_and_remove_some_contacts_properly_1648@localhost/res1' to='kate_add_and_remove_some_contacts_properly_1648@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:57:32.119 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:32.124 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6389b780965775db' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:32.124 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/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-04-05 07:57:32.124 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AG1pa2VfYWRkX2FuZF9yZW1vdmVfc29tZV9jb250YWN0c19wcm9wZXJseV8xNjQ4AG5pY25pZW1h</auth>
*** User 2022-04-05 07:57:32.129 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2022-04-05 07:57:32.129 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2022-04-05 07:57:32.131 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='624507fa009cd8b6' from='localhost' version='1.0' xml:lang='en'>
*** User 2022-04-05 07:57:32.131 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/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-04-05 07:57:32.132 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<iq type='set' id='d81e202ba174765ee847f9df310176fc'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2022-04-05 07:57:32.132 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq id='d81e202ba174765ee847f9df310176fc' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>mike_add_and_remove_some_contacts_properly_1648@localhost/res1</jid>
</bind>
</iq>
*** User 2022-04-05 07:57:32.132 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<iq type='set' id='efe16e20381eca17bea7afddae0a9a76'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:32.133 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq type='result' id='efe16e20381eca17bea7afddae0a9a76'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2022-04-05 07:57:32.133 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 out
<presence/>
*** User 2022-04-05 07:57:32.169 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<presence from='mike_add_and_remove_some_contacts_properly_1648@localhost/res1' to='mike_add_and_remove_some_contacts_properly_1648@localhost/res1' xml:lang='en'/>
*** User 2022-04-05 07:57:32.202 ***
REST request:
Code: 204
Req: {<0.21593.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e03c167053a07bcd">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1648@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:31 GMT">>}],
<<>>,80,13863}
Params: #{body =>
<<"{\"jid\":\"alice_add_and_remove_some_contacts_properly_1648@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1648@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.205 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1648@localhost' to='bob_add_and_remove_some_contacts_properly_1648@localhost/res1' id='pushe9bca2d75fd2de2e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_some_contacts_properly_1648@localhost'/>
</query>
</iq>
*** User 2022-04-05 07:57:32.289 ***
REST request:
Code: 204
Req: {<0.21621.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"91db281b32ffd43c">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1648@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:32 GMT">>}],
<<>>,80,15718}
Params: #{body =>
<<"{\"jid\":\"kate_add_and_remove_some_contacts_properly_1648@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1648@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.290 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1648@localhost' to='bob_add_and_remove_some_contacts_properly_1648@localhost/res1' id='push265e36032e8bf70f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='kate_add_and_remove_some_contacts_properly_1648@localhost'/>
</query>
</iq>
*** User 2022-04-05 07:57:32.393 ***
REST request:
Code: 204
Req: {<0.21652.1>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"714e0f01abe3174e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1648@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:32 GMT">>}],
<<>>,80,31282}
Params: #{body =>
<<"{\"jid\":\"mike_add_and_remove_some_contacts_properly_1648@localhost\"}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1648@localhost">>,
<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.394 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1648@localhost' to='bob_add_and_remove_some_contacts_properly_1648@localhost/res1' id='push7ed795d74d6e1bfb' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='mike_add_and_remove_some_contacts_properly_1648@localhost'/>
</query>
</iq>
*** User 2022-04-05 07:57:32.482 ***
REST request:
Code: 200
Req: {<0.21667.1>,<<"/api/contacts">>,<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a7e11caa3a617724">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1648@localhost\",\"kate_add_and_remove_some_contacts_properly_1648@localhost\"]}">>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"18">>}],
<<"{\"not_deleted\":[]}">>,142,65335}
Params: #{body =>
<<"{\"to_delete\":[\"alice_add_and_remove_some_contacts_properly_1648@localhost\",\"kate_add_and_remove_some_contacts_properly_1648@localhost\"]}">>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1648@localhost">>,
<<"makrolika">>},
method => <<"DELETE">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.506 ***
REST request:
Code: 200
Req: {<0.21693.1>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f551f275b068b4c4">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlX3NvbWVfY29udGFjdHNfcHJvcGVybHlfMTY0OEBsb2NhbGhvc3Q6bWFrcm9saWth">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 05 Apr 2022 07:57:32 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"104">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"mike_add_and_remove_some_contacts_properly_1648@localhost\",\"ask\":\"none\"}]">>,
229,5999}
Params: #{body => <<>>,
creds =>
{<<"bob_add_and_remove_some_contacts_properly_1648@localhost">>,
<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2022-04-05 07:57:32.506 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
<iq from='bob_add_and_remove_some_contacts_properly_1648@localhost' to='bob_add_and_remove_some_contacts_properly_1648@localhost/res1' id='push33abf4959792d869' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_some_contacts_properly_1648@localhost'/>
</query>
</iq>
*** User 2022-04-05 07:57:32.507 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:57:32.507 ***
mike_add_and_remove_some_contacts_properly_1648@localhost/res1 in
</stream:stream>
*** User 2022-04-05 07:57:32.507 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:57:32.509 ***
kate_add_and_remove_some_contacts_properly_1648@localhost/res1 in
</stream:stream>
*** User 2022-04-05 07:57:32.509 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:57:32.511 ***
bOb_add_and_remove_some_contacts_properly_1648@localhost/res1 in
</stream:stream>
*** User 2022-04-05 07:57:32.511 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 out
</stream:stream>
*** User 2022-04-05 07:57:32.511 ***
alicE_add_and_remove_some_contacts_properly_1648@localhost/res1 in
</stream:stream>
=== Ended at 2022-04-05 07:57:32
=== successfully completed test case
=== === Returned value: ok