=== Test case: rest_client_SUITE:add_and_remove/1 (click for source code)
=== Config value:
[{watchdog,<0.85199.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/rest_client_suite.add_and_remove.222850.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@1c2ae12cdb1a.2023-11-17_15.10.15/big_tests.tests.rest_client_SUITE.logs/run.2023-11-17_15.24.28/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_amp => #{},
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_sic => #{iqdisc => one_queue},
mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
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@1c2ae12cdb1a.2023-11-17_15.10.15"
=== Started at 2023-11-17 15:24:30
*** User 2023-11-17 15:24:30.254 ***🔗
alicE_add_and_remove_2974@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:30.254 ***🔗
alicE_add_and_remove_2974@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8ab6459e21dfceea' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:30.254 ***🔗
alicE_add_and_remove_2974@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 2023-11-17 15:24:30.254 ***🔗
alicE_add_and_remove_2974@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzI5NzQAbWF0eWdyeXNh</auth>
*** User 2023-11-17 15:24:30.255 ***🔗
alicE_add_and_remove_2974@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:30.255 ***🔗
alicE_add_and_remove_2974@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:30.255 ***🔗
alicE_add_and_remove_2974@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b7ce3dc3f6ef0d68' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_2974@localhost'>
*** User 2023-11-17 15:24:30.256 ***🔗
alicE_add_and_remove_2974@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 2023-11-17 15:24:30.256 ***🔗
alicE_add_and_remove_2974@localhost/res1 out
<iq type='set' id='1c9d21a6b334c0e51e81bce4d8a2233f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:30.256 ***🔗
alicE_add_and_remove_2974@localhost/res1 in
<iq id='1c9d21a6b334c0e51e81bce4d8a2233f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_2974@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:30.256 ***🔗
alice_add_and_remove_2974@localhost/res1 out
<iq type='set' id='fc729c7abdc3cfac0a4481ed2bdf0939'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:30.257 ***🔗
alice_add_and_remove_2974@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_2974@localhost/res1' id='fc729c7abdc3cfac0a4481ed2bdf0939' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:30.257 ***🔗
alice_add_and_remove_2974@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:30.258 ***🔗
alice_add_and_remove_2974@localhost/res1 in
<presence from='alice_add_and_remove_2974@localhost/res1' to='alice_add_and_remove_2974@localhost/res1'/>
*** User 2023-11-17 15:24:30.259 ***🔗
bOb_add_and_remove_2974@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:30.259 ***🔗
bOb_add_and_remove_2974@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c549e15e9434d807' from='localhost' version='1.0' xml:lang='en'>
*** User 2023-11-17 15:24:30.259 ***🔗
bOb_add_and_remove_2974@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 2023-11-17 15:24:30.259 ***🔗
bOb_add_and_remove_2974@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV8yOTc0AG1ha3JvbGlrYQ==</auth>
*** User 2023-11-17 15:24:30.260 ***🔗
bOb_add_and_remove_2974@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-17 15:24:30.260 ***🔗
bOb_add_and_remove_2974@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2023-11-17 15:24:30.260 ***🔗
bOb_add_and_remove_2974@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a09e95a2558b587b' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_2974@localhost'>
*** User 2023-11-17 15:24:30.260 ***🔗
bOb_add_and_remove_2974@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 2023-11-17 15:24:30.260 ***🔗
bOb_add_and_remove_2974@localhost/res1 out
<iq type='set' id='892fba382419a54ad77efb8f93cfcfa7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-17 15:24:30.261 ***🔗
bOb_add_and_remove_2974@localhost/res1 in
<iq id='892fba382419a54ad77efb8f93cfcfa7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_2974@localhost/res1</jid>
</bind>
</iq>
*** User 2023-11-17 15:24:30.261 ***🔗
bob_add_and_remove_2974@localhost/res1 out
<iq type='set' id='bd7da186a23a500d29d8dfd177ae5ab1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:30.261 ***🔗
bob_add_and_remove_2974@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_2974@localhost/res1' id='bd7da186a23a500d29d8dfd177ae5ab1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-17 15:24:30.262 ***🔗
bob_add_and_remove_2974@localhost/res1 out
<presence/>
*** User 2023-11-17 15:24:30.263 ***🔗
bob_add_and_remove_2974@localhost/res1 in
<presence from='bob_add_and_remove_2974@localhost/res1' to='bob_add_and_remove_2974@localhost/res1'/>
*** User 2023-11-17 15:24:30.271 ***🔗
REST request:
Code: 204
Req: {<0.85280.0>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0aa9afaa03496e84">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzI5NzRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_and_remove_2974@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:30 GMT">>}],
<<>>,80,2336}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_add_and_remove_2974@localhost">>,<<"makrolika">>},
method => <<"POST">>,
body => <<"{\"jid\":\"alice_add_and_remove_2974@localhost\"}">>,
role => client,return_headers => true}
*** User 2023-11-17 15:24:30.271 ***🔗
bob_add_and_remove_2974@localhost/res1 in
<iq from='bob_add_and_remove_2974@localhost' to='bob_add_and_remove_2974@localhost/res1' id='push6c4fa2a34e596670' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_add_and_remove_2974@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:30.278 ***🔗
REST request:
Code: 200
Req: {<0.85310.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5d028bf179ce73da">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzI5NzRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"82">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_2974@localhost\"}]">>,
206,2134}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_add_and_remove_2974@localhost">>,<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2023-11-17 15:24:30.297 ***🔗
REST request:
Code: 204
Req: {<0.85336.0>,<<"/api/contacts/alice_add_and_remove_2974@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"28e26ce9d78fb7a3">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzI5NzRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:30 GMT">>}],
<<>>,80,14290}
Params: #{path => <<"/api/contacts/alice_add_and_remove_2974@localhost">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_add_and_remove_2974@localhost">>,<<"makrolika">>},
method => <<"DELETE">>,body => <<>>,role => client,
return_headers => true}
*** User 2023-11-17 15:24:30.305 ***🔗
REST request:
Code: 200
Req: {<0.85360.0>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"82d34f278c74b7df">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzI5NzRAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 17 Nov 2023 15:24:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2584}
Params: #{path => <<"/api/contacts">>,
server => #{node => mongooseim@localhost},
creds => {<<"bob_add_and_remove_2974@localhost">>,<<"makrolika">>},
method => <<"GET">>,body => <<>>,role => client,
return_headers => true}
*** User 2023-11-17 15:24:30.305 ***🔗
bob_add_and_remove_2974@localhost/res1 in
<iq from='bob_add_and_remove_2974@localhost' to='bob_add_and_remove_2974@localhost/res1' id='pushe9989dcb11145c60' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_add_and_remove_2974@localhost'/>
</query>
</iq>
*** User 2023-11-17 15:24:30.305 ***🔗
bob_add_and_remove_2974@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:30.306 ***🔗
bob_add_and_remove_2974@localhost/res1 in
</stream:stream>
*** User 2023-11-17 15:24:30.306 ***🔗
alice_add_and_remove_2974@localhost/res1 out
</stream:stream>
*** User 2023-11-17 15:24:30.306 ***🔗
alice_add_and_remove_2974@localhost/res1 in
</stream:stream>
=== Ended at 2023-11-17 15:24:30
=== successfully completed test case
=== === Returned value: ok