=== Test case: rest_client_SUITE:add_and_remove/1 (click for source code)
=== Config value:
[{watchdog,<0.80295.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_cets"},
{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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/rest_client_suite.add_and_remove.151811.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@76d8bb481028.2024-03-11_08.55.19/big_tests.tests.rest_client_SUITE.logs/run.2024-03-11_09.09.51/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 => cets,
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 => cets,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@76d8bb481028.2024-03-11_08.55.19"
=== Started at 2024-03-11 09:09:53
*** User 2024-03-11 09:09:53.611 ***🔗
alicE_add_and_remove_2967@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-11 09:09:53.611 ***🔗
alicE_add_and_remove_2967@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a2d07b35d0b53a79' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.611 ***🔗
alicE_add_and_remove_2967@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-11 09:09:53.611 ***🔗
alicE_add_and_remove_2967@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzI5NjcAbWF0eWdyeXNh</auth>
*** User 2024-03-11 09:09:53.612 ***🔗
alicE_add_and_remove_2967@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.612 ***🔗
alicE_add_and_remove_2967@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-11 09:09:53.612 ***🔗
alicE_add_and_remove_2967@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9a018f05117d8401' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_2967@localhost'>
*** User 2024-03-11 09:09:53.612 ***🔗
alicE_add_and_remove_2967@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-11 09:09:53.613 ***🔗
alicE_add_and_remove_2967@localhost/res1 out
<iq type='set' id='ba6fe477148c42872e898927c632606f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.613 ***🔗
alicE_add_and_remove_2967@localhost/res1 in
<iq id='ba6fe477148c42872e898927c632606f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_2967@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.613 ***🔗
alice_add_and_remove_2967@localhost/res1 out
<iq type='set' id='438b66769fd42574b428a927f8b9ca97'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.614 ***🔗
alice_add_and_remove_2967@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_2967@localhost/res1' id='438b66769fd42574b428a927f8b9ca97' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.614 ***🔗
alice_add_and_remove_2967@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.616 ***🔗
alice_add_and_remove_2967@localhost/res1 in
<presence from='alice_add_and_remove_2967@localhost/res1' to='alice_add_and_remove_2967@localhost/res1'/>
*** User 2024-03-11 09:09:53.616 ***🔗
bOb_add_and_remove_2967@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-11 09:09:53.617 ***🔗
bOb_add_and_remove_2967@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='333071cddc74b9eb' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-11 09:09:53.617 ***🔗
bOb_add_and_remove_2967@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-11 09:09:53.617 ***🔗
bOb_add_and_remove_2967@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV8yOTY3AG1ha3JvbGlrYQ==</auth>
*** User 2024-03-11 09:09:53.618 ***🔗
bOb_add_and_remove_2967@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-11 09:09:53.618 ***🔗
bOb_add_and_remove_2967@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-11 09:09:53.618 ***🔗
bOb_add_and_remove_2967@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2496a8f9dd3af3af' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_2967@localhost'>
*** User 2024-03-11 09:09:53.618 ***🔗
bOb_add_and_remove_2967@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-11 09:09:53.618 ***🔗
bOb_add_and_remove_2967@localhost/res1 out
<iq type='set' id='260c589a26d30ce9531b6b620eafc1ab'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-11 09:09:53.622 ***🔗
bOb_add_and_remove_2967@localhost/res1 in
<iq id='260c589a26d30ce9531b6b620eafc1ab' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_2967@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-11 09:09:53.622 ***🔗
bob_add_and_remove_2967@localhost/res1 out
<iq type='set' id='27fc9929074828c3f7c4f96ddd670b75'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.623 ***🔗
bob_add_and_remove_2967@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_2967@localhost/res1' id='27fc9929074828c3f7c4f96ddd670b75' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-11 09:09:53.623 ***🔗
bob_add_and_remove_2967@localhost/res1 out
<presence/>
*** User 2024-03-11 09:09:53.625 ***🔗
bob_add_and_remove_2967@localhost/res1 in
<presence from='bob_add_and_remove_2967@localhost/res1' to='bob_add_and_remove_2967@localhost/res1'/>
*** User 2024-03-11 09:09:53.635 ***🔗
REST request:
Code: 204
Req: {<0.80360.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2ffd7ba704e9eae6">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzI5NjdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_and_remove_2967@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>}],
<<>>,80,3595}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<"{\"jid\":\"alice_add_and_remove_2967@localhost\"}">>,
method => <<"POST">>,
creds => {<<"bob_add_and_remove_2967@localhost">>,<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.635 ***🔗
bob_add_and_remove_2967@localhost/res1 in
<iq from='bob_add_and_remove_2967@localhost' to='bob_add_and_remove_2967@localhost/res1' id='push75e7280916460b03' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_2967@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.643 ***🔗
REST request:
Code: 200
Req: {<0.80394.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9eaabb0efe788805">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzI5NjdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"82">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_2967@localhost\"}]">>,
206,2804}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds => {<<"bob_add_and_remove_2967@localhost">>,<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.685 ***🔗
REST request:
Code: 204
Req: {<0.80416.0>,<<"/api/contacts/alice_add_and_remove_2967@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"def686c5e4d652be">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzI5NjdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>}],
<<>>,80,3151}
Params: #{path => <<"/api/contacts/alice_add_and_remove_2967@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,
creds => {<<"bob_add_and_remove_2967@localhost">>,<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.696 ***🔗
REST request:
Code: 200
Req: {<0.80458.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"58b5e5aacc458b86">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzI5NjdAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 11 Mar 2024 09:09:53 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,3611}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,
creds => {<<"bob_add_and_remove_2967@localhost">>,<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-11 09:09:53.696 ***🔗
bob_add_and_remove_2967@localhost/res1 in
<iq from='bob_add_and_remove_2967@localhost' to='bob_add_and_remove_2967@localhost/res1' id='push2e5fb0fe7e0b889f' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_2967@localhost'/>
</query>
</iq>
*** User 2024-03-11 09:09:53.696 ***🔗
bob_add_and_remove_2967@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.696 ***🔗
bob_add_and_remove_2967@localhost/res1 in
</stream:stream>
*** User 2024-03-11 09:09:53.696 ***🔗
alice_add_and_remove_2967@localhost/res1 out
</stream:stream>
*** User 2024-03-11 09:09:53.697 ***🔗
alice_add_and_remove_2967@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-11 09:09:53
=== successfully completed test case
=== === Returned value: ok