=== Test case: rest_client_SUITE:add_and_remove/1 (click for source code)
=== Config value:
[{watchdog,<0.25291.2>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"pgsql_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@e19d78a4da91.2024-04-22_14.48.03/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.17.13/rest_client_suite.add_and_remove.130820.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@e19d78a4da91.2024-04-22_14.48.03/big_tests.tests.rest_client_SUITE.logs/run.2024-04-22_15.17.13/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 => #{iqdisc => no_queue},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
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@e19d78a4da91.2024-04-22_14.48.03"
=== Started at 2024-04-22 15:17:17
*** User 2024-04-22 15:17:18.071 ***🔗
alicE_add_and_remove_5489@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-04-22 15:17:18.086 ***🔗
alicE_add_and_remove_5489@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f325a6556fd28f40' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:17:18.086 ***🔗
alicE_add_and_remove_5489@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-04-22 15:17:18.087 ***🔗
alicE_add_and_remove_5489@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FkZF9hbmRfcmVtb3ZlXzU0ODkAbWF0eWdyeXNh</auth>
*** User 2024-04-22 15:17:18.097 ***🔗
alicE_add_and_remove_5489@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:17:18.098 ***🔗
alicE_add_and_remove_5489@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-04-22 15:17:18.106 ***🔗
alicE_add_and_remove_5489@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='588ef7ac3bdb859b' from='localhost' version='1.0' xml:lang='en' to='alice_add_and_remove_5489@localhost'>
*** User 2024-04-22 15:17:18.110 ***🔗
alicE_add_and_remove_5489@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-04-22 15:17:18.110 ***🔗
alicE_add_and_remove_5489@localhost/res1 out
<iq type='set' id='8435d8b563a7984eec2bf6a186f6eb8e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:17:18.111 ***🔗
alicE_add_and_remove_5489@localhost/res1 in
<iq id='8435d8b563a7984eec2bf6a186f6eb8e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_add_and_remove_5489@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:17:18.111 ***🔗
alice_add_and_remove_5489@localhost/res1 out
<iq type='set' id='239d89ab9eeaa959670ecbe591320b4f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:18.113 ***🔗
alice_add_and_remove_5489@localhost/res1 in
<iq from='localhost' to='alice_add_and_remove_5489@localhost/res1' id='239d89ab9eeaa959670ecbe591320b4f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:18.113 ***🔗
alice_add_and_remove_5489@localhost/res1 out
<presence/>
*** User 2024-04-22 15:17:18.129 ***🔗
alice_add_and_remove_5489@localhost/res1 in
<presence from='alice_add_and_remove_5489@localhost/res1' to='alice_add_and_remove_5489@localhost/res1'/>
*** User 2024-04-22 15:17:18.138 ***🔗
bOb_add_and_remove_5489@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-04-22 15:17:18.146 ***🔗
bOb_add_and_remove_5489@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e004d252a0765de1' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 15:17:18.154 ***🔗
bOb_add_and_remove_5489@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-04-22 15:17:18.154 ***🔗
bOb_add_and_remove_5489@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hZGRfYW5kX3JlbW92ZV81NDg5AG1ha3JvbGlrYQ==</auth>
*** User 2024-04-22 15:17:18.165 ***🔗
bOb_add_and_remove_5489@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 15:17:18.165 ***🔗
bOb_add_and_remove_5489@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-04-22 15:17:18.167 ***🔗
bOb_add_and_remove_5489@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d985dde8f1282d4a' from='localhost' version='1.0' xml:lang='en' to='bob_add_and_remove_5489@localhost'>
*** User 2024-04-22 15:17:18.167 ***🔗
bOb_add_and_remove_5489@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-04-22 15:17:18.167 ***🔗
bOb_add_and_remove_5489@localhost/res1 out
<iq type='set' id='ab571be390ed21fef92dda811c387b9b'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 15:17:18.167 ***🔗
bOb_add_and_remove_5489@localhost/res1 in
<iq id='ab571be390ed21fef92dda811c387b9b' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_add_and_remove_5489@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 15:17:18.167 ***🔗
bob_add_and_remove_5489@localhost/res1 out
<iq type='set' id='242afc5f052b9364c61a7d7b6b13d65f'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:18.168 ***🔗
bob_add_and_remove_5489@localhost/res1 in
<iq from='localhost' to='bob_add_and_remove_5489@localhost/res1' id='242afc5f052b9364c61a7d7b6b13d65f' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 15:17:18.168 ***🔗
bob_add_and_remove_5489@localhost/res1 out
<presence/>
*** User 2024-04-22 15:17:18.188 ***🔗
bob_add_and_remove_5489@localhost/res1 in
<presence from='bob_add_and_remove_5489@localhost/res1' to='bob_add_and_remove_5489@localhost/res1'/>
*** User 2024-04-22 15:17:18.242 ***🔗
REST request:
Code: 204
Req: {<0.25403.2>,<<"/api/contacts">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ba47bce7407ca911">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzU0ODlAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<"{\"jid\":\"alice_add_and_remove_5489@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:17:17 GMT">>}],
<<>>,80,9834}
Params: #{body => <<"{\"jid\":\"alice_add_and_remove_5489@localhost\"}">>,
creds => {<<"bob_add_and_remove_5489@localhost">>,<<"makrolika">>},
method => <<"POST">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:17:18.242 ***🔗
bob_add_and_remove_5489@localhost/res1 in
<iq from='bob_add_and_remove_5489@localhost' to='bob_add_and_remove_5489@localhost/res1' id='pushaa5835db6450d787' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_5489@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 15:17:18.294 ***🔗
REST request:
Code: 200
Req: {<0.25410.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8104d6760c634ae7">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzU0ODlAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:17:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"82">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_add_and_remove_5489@localhost\",\"ask\":\"none\"}]">>,
206,33656}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_5489@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:17:18.343 ***🔗
REST request:
Code: 204
Req: {<0.25470.2>,<<"/api/contacts/alice_add_and_remove_5489@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b2a28db47c79fc6d">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzU0ODlAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:17:17 GMT">>}],
<<>>,80,13450}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_5489@localhost">>,<<"makrolika">>},
method => <<"DELETE">>,
path => <<"/api/contacts/alice_add_and_remove_5489@localhost">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:17:18.412 ***🔗
REST request:
Code: 200
Req: {<0.25499.2>,<<"/api/contacts">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ca128be8337dbc7f">>},
{<<"authorization">>,
<<"Basic Ym9iX2FkZF9hbmRfcmVtb3ZlXzU0ODlAbG9jYWxob3N0Om1ha3JvbGlrYQ==">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 15:17:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,18113}
Params: #{body => <<>>,
creds => {<<"bob_add_and_remove_5489@localhost">>,<<"makrolika">>},
method => <<"GET">>,path => <<"/api/contacts">>,
return_headers => true,role => client,
server => #{node => mongooseim@localhost}}
*** User 2024-04-22 15:17:18.413 ***🔗
bob_add_and_remove_5489@localhost/res1 in
<iq from='bob_add_and_remove_5489@localhost' to='bob_add_and_remove_5489@localhost/res1' id='push15cd9762310e3862' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_add_and_remove_5489@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 15:17:18.413 ***🔗
bob_add_and_remove_5489@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:17:18.414 ***🔗
bob_add_and_remove_5489@localhost/res1 in
</stream:stream>
*** User 2024-04-22 15:17:18.414 ***🔗
alice_add_and_remove_5489@localhost/res1 out
</stream:stream>
*** User 2024-04-22 15:17:18.415 ***🔗
alice_add_and_remove_5489@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 15:17:18
=== successfully completed test case
=== === Returned value: ok