=== Test case: rest_client_SUITE:add_and_remove/1 (click for source code)
=== Config value:
[{watchdog,<0.85663.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"odbc_mssql_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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.rest_client_SUITE.logs/run.2024-03-08_09.17.58/rest_client_suite.add_and_remove.221442.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@d091d39a81d0.2024-03-08_08.59.35/big_tests.tests.rest_client_SUITE.logs/run.2024-03-08_09.17.58/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => rdbms,iqdisc => parallel},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@d091d39a81d0.2024-03-08_08.59.35"
=== Started at 2024-03-08 09:18:05
*** User 2024-03-08 09:18:05.613 ***🔗
alicE_add_and_remove_3202@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:18:05.614 ***🔗
alicE_add_and_remove_3202@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='babcb2da5ab6f053' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:18:05.614 ***🔗
alicE_add_and_remove_3202@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-08 09:18:05.614 ***🔗
alicE_add_and_remove_3202@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzMyMDIAbWF0eWdyeXNh</auth>
*** User 2024-03-08 09:18:05.618 ***🔗
alicE_add_and_remove_3202@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:18:05.618 ***🔗
alicE_add_and_remove_3202@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:18:05.618 ***🔗
alicE_add_and_remove_3202@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f32f39a1e4feb307' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_3202@localhost'>
*** User 2024-03-08 09:18:05.618 ***🔗
alicE_add_and_remove_3202@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-08 09:18:05.618 ***🔗
alicE_add_and_remove_3202@localhost/res1 out
<iq type='set' id='448b531c2f80ab785dceb946713e472e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:18:05.619 ***🔗
alicE_add_and_remove_3202@localhost/res1 in
<iq id='448b531c2f80ab785dceb946713e472e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_3202@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:18:05.619 ***🔗
alice_add_and_remove_3202@localhost/res1 out
<iq type='set' id='55f63d08ab86a4e6e4c0a17feaaa7a90'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:05.619 ***🔗
alice_add_and_remove_3202@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_3202@localhost/res1' id='55f63d08ab86a4e6e4c0a17feaaa7a90' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:05.619 ***🔗
alice_add_and_remove_3202@localhost/res1 out
<presence/>
*** User 2024-03-08 09:18:05.623 ***🔗
alice_add_and_remove_3202@localhost/res1 in
<presence from='alice_add_and_remove_3202@localhost/res1' to='alice_add_and_remove_3202@localhost/res1'/>
*** User 2024-03-08 09:18:05.623 ***🔗
bOb_add_and_remove_3202@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:18:05.623 ***🔗
bOb_add_and_remove_3202@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='cc61513605b843b2' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 09:18:05.624 ***🔗
bOb_add_and_remove_3202@localhost/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-08 09:18:05.624 ***🔗
bOb_add_and_remove_3202@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV8zMjAyAG1ha3JvbGlrYQ==</auth>
*** User 2024-03-08 09:18:05.625 ***🔗
bOb_add_and_remove_3202@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 09:18:05.625 ***🔗
bOb_add_and_remove_3202@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-08 09:18:05.626 ***🔗
bOb_add_and_remove_3202@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='fe1af9fef94345bd' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_3202@localhost'>
*** User 2024-03-08 09:18:05.626 ***🔗
bOb_add_and_remove_3202@localhost/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-08 09:18:05.626 ***🔗
bOb_add_and_remove_3202@localhost/res1 out
<iq type='set' id='022385057d539a1385b774c546183450'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 09:18:05.626 ***🔗
bOb_add_and_remove_3202@localhost/res1 in
<iq id='022385057d539a1385b774c546183450' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_3202@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 09:18:05.626 ***🔗
bob_add_and_remove_3202@localhost/res1 out
<iq type='set' id='88505523ab8e1380d8028e32b8312537'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:05.627 ***🔗
bob_add_and_remove_3202@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_3202@localhost/res1' id='88505523ab8e1380d8028e32b8312537' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 09:18:05.627 ***🔗
bob_add_and_remove_3202@localhost/res1 out
<presence/>
*** User 2024-03-08 09:18:05.629 ***🔗
bob_add_and_remove_3202@localhost/res1 in
<presence from='bob_add_and_remove_3202@localhost/res1' to='bob_add_and_remove_3202@localhost/res1'/>
*** User 2024-03-08 09:18:05.685 ***🔗
REST request:
Code: 204
Req: {<0.85740.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"884d668747951e9e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzMyMDJAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_and_remove_3202@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>}],
<<>>,80,48056}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_add_and_remove_3202@localhost">>,<<"makrolika">>},
method => <<"POST">>,
body => <<"{\"jid\":\"alice_add_and_remove_3202@localhost\"}">>,
role => client,return_headers => true}
*** User 2024-03-08 09:18:05.685 ***🔗
bob_add_and_remove_3202@localhost/res1 in
<iq from='bob_add_and_remove_3202@localhost' to='bob_add_and_remove_3202@localhost/res1' id='push9fcd9eec7c43a5aa' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_3202@localhost'/>
</query>
</iq>
*** User 2024-03-08 09:18:05.711 ***🔗
REST request:
Code: 200
Req: {<0.85787.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fa8969177da1450e">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzMyMDJAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"82">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_3202@localhost\"}]">>,
206,4715}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_add_and_remove_3202@localhost">>,<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-03-08 09:18:05.723 ***🔗
REST request:
Code: 204
Req: {<0.85826.0>,<<"/api/contacts/alice_add_and_remove_3202@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b18131ffc8d5fe03">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzMyMDJAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>}],
<<>>,80,6504}
Params: #{path => <<"/api/contacts/alice_add_and_remove_3202@localhost">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_add_and_remove_3202@localhost">>,<<"makrolika">>},
method => <<"DELETE">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-03-08 09:18:05.739 ***🔗
REST request:
Code: 200
Req: {<0.85844.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a7983b69f47f55e7">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzMyMDJAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 09:18:05 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,7262}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_add_and_remove_3202@localhost">>,<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2024-03-08 09:18:05.739 ***🔗
bob_add_and_remove_3202@localhost/res1 in
<iq from='bob_add_and_remove_3202@localhost' to='bob_add_and_remove_3202@localhost/res1' id='pushc6df8983334aed96' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_3202@localhost'/>
</query>
</iq>
*** User 2024-03-08 09:18:05.739 ***🔗
bob_add_and_remove_3202@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:18:05.740 ***🔗
bob_add_and_remove_3202@localhost/res1 in
</stream:stream>
*** User 2024-03-08 09:18:05.740 ***🔗
alice_add_and_remove_3202@localhost/res1 out
</stream:stream>
*** User 2024-03-08 09:18:05.740 ***🔗
alice_add_and_remove_3202@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-08 09:18:05
=== successfully completed test case
=== === Returned value: ok