=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.88454.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"pgsql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@3137d4b2a3a4.2024-04-22_17.28.36/big_tests.tests.rest_SUITE.logs/run.2024-04-22_17.45.43/rest_suite.befriend_and_alienate.123780.html"},
{tc_group_properties,[{name,roster},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@3137d4b2a3a4.2024-04-22_17.28.36/big_tests.tests.rest_SUITE.logs/run.2024-04-22_17.45.43/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_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_amp => #{},mod_presence => #{},
mod_disco =>
#{server_info => [],iqdisc => one_queue,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}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@3137d4b2a3a4.2024-04-22_17.28.36"
=== Started at 2024-04-22 17:45:44
*** User 2024-04-22 17:45:44.900 ***🔗
alicE_befriend_and_alienate_3388@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 17:45:44.900 ***🔗
alicE_befriend_and_alienate_3388@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a6fd348f97fec99e' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:45:44.900 ***🔗
alicE_befriend_and_alienate_3388@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 17:45:44.901 ***🔗
alicE_befriend_and_alienate_3388@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMzg4AG1hdHlncnlzYQ==</auth>
*** User 2024-04-22 17:45:44.902 ***🔗
alicE_befriend_and_alienate_3388@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:45:44.902 ***🔗
alicE_befriend_and_alienate_3388@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 17:45:44.902 ***🔗
alicE_befriend_and_alienate_3388@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b1309811dde7b826' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3388@localhost'>
*** User 2024-04-22 17:45:44.902 ***🔗
alicE_befriend_and_alienate_3388@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 17:45:44.902 ***🔗
alicE_befriend_and_alienate_3388@localhost/res1 out
<iq type='set' id='b371586361be69fde065173e28c8d6e9'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:45:44.903 ***🔗
alicE_befriend_and_alienate_3388@localhost/res1 in
<iq id='b371586361be69fde065173e28c8d6e9' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_3388@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:45:44.903 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 out
<iq type='set' id='0a09ff11e9bd1a40daf5e0aee88903e4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.903 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3388@localhost/res1' id='0a09ff11e9bd1a40daf5e0aee88903e4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.904 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 out
<presence/>
*** User 2024-04-22 17:45:44.905 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<presence from='alice_befriend_and_alienate_3388@localhost/res1' to='alice_befriend_and_alienate_3388@localhost/res1'/>
*** User 2024-04-22 17:45:44.906 ***🔗
bOb_befriend_and_alienate_3388@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 17:45:44.906 ***🔗
bOb_befriend_and_alienate_3388@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d6a53b04517d8116' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-22 17:45:44.906 ***🔗
bOb_befriend_and_alienate_3388@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 17:45:44.906 ***🔗
bOb_befriend_and_alienate_3388@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzM4OABtYWtyb2xpa2E=</auth>
*** User 2024-04-22 17:45:44.907 ***🔗
bOb_befriend_and_alienate_3388@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-22 17:45:44.907 ***🔗
bOb_befriend_and_alienate_3388@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 17:45:44.908 ***🔗
bOb_befriend_and_alienate_3388@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='432b66c63bb4f7c7' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3388@localhost'>
*** User 2024-04-22 17:45:44.908 ***🔗
bOb_befriend_and_alienate_3388@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 17:45:44.908 ***🔗
bOb_befriend_and_alienate_3388@localhost/res1 out
<iq type='set' id='0eafad9c90e5f8c33224b8d10e17885e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-22 17:45:44.908 ***🔗
bOb_befriend_and_alienate_3388@localhost/res1 in
<iq id='0eafad9c90e5f8c33224b8d10e17885e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_3388@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-22 17:45:44.908 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 out
<iq type='set' id='86e397c5a50f942485c93bdd1c7232e3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.909 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3388@localhost/res1' id='86e397c5a50f942485c93bdd1c7232e3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-22 17:45:44.909 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 out
<presence/>
*** User 2024-04-22 17:45:44.911 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<presence from='bob_befriend_and_alienate_3388@localhost/res1' to='bob_befriend_and_alienate_3388@localhost/res1'/>
*** User 2024-04-22 17:45:44.914 ***🔗
REST request:
Code: 200
Req: {<0.88556.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"474b5a0b8dbe489d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2505}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.917 ***🔗
REST request:
Code: 200
Req: {<0.88565.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5b8847cb1e0bd9d8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1285}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.921 ***🔗
REST request:
Code: 204
Req: {<0.88573.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dcbdbda31847fd26">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3388@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>}],
<<>>,80,3137}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"jid\":\"bob_befriend_and_alienate_3388@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 17:45:44.926 ***🔗
REST request:
Code: 204
Req: {<0.88581.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"39da9523efa6e824">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3388@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>}],
<<>>,80,4294}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body => <<"{\"jid\":\"bob_befriend_and_alienate_3388@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 17:45:44.941 ***🔗
REST request:
Code: 204
Req: {<0.88590.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d0f5dbb5d2138ab0">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_3388@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>}],
<<>>,80,13527}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_3388@localhost\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 17:45:44.944 ***🔗
REST request:
Code: 200
Req: {<0.88595.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ca91dd1676c36d02">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3388@localhost\"}]">>,
213,1608}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.946 ***🔗
REST request:
Code: 200
Req: {<0.88597.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1984e07a0e275739">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3388@localhost\"}]">>,
211,1330}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.952 ***🔗
REST request:
Code: 204
Req: {<0.88599.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost/bob_befriend_and_alienate_3388@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b38e3b69d031b678">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>}],
<<>>,80,3991}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 17:45:44.955 ***🔗
REST request:
Code: 200
Req: {<0.88601.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c2c2ccdb6412de7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3388@localhost\"}]">>,
210,1995}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.960 ***🔗
REST request:
Code: 204
Req: {<0.88603.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost/alice_befriend_and_alienate_3388@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b7a7766270401140">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>}],
<<>>,80,3913}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 17:45:44.963 ***🔗
REST request:
Code: 200
Req: {<0.88609.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3e42927d2ca4c5c5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3388@localhost\"}]">>,
209,1667}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.965 ***🔗
REST request:
Code: 200
Req: {<0.88613.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8be0b1fd9a1bdde9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3388@localhost\"}]">>,
213,1363}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.970 ***🔗
REST request:
Code: 204
Req: {<0.88615.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost/alice_befriend_and_alienate_3388@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"055a2906f569d25e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>}],
<<>>,80,4076}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribe\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 17:45:44.973 ***🔗
REST request:
Code: 200
Req: {<0.88617.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c6718f9753809de5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3388@localhost\"}]">>,
212,1116}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.978 ***🔗
REST request:
Code: 204
Req: {<0.88619.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost/bob_befriend_and_alienate_3388@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5993545cca58e5b6">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>}],
<<>>,80,3516}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,body => <<"{\"action\":\"subscribed\"}">>,
role => admin,return_headers => true}
*** User 2024-04-22 17:45:44.981 ***🔗
REST request:
Code: 200
Req: {<0.88625.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"957e2e3c3a478909">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3388@localhost\"}]">>,
211,1309}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.983 ***🔗
REST request:
Code: 200
Req: {<0.88627.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86e284f4b67345d4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3388@localhost\"}]">>,
213,1284}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.990 ***🔗
REST request:
Code: 204
Req: {<0.88629.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost/bob_befriend_and_alienate_3388@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"647384733d25cd47">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>}],
<<>>,80,6346}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.993 ***🔗
REST request:
Code: 200
Req: {<0.88631.0>,
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5bc91bfe89e91ece">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1349}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.995 ***🔗
REST request:
Code: 200
Req: {<0.88633.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0b83d14d1b4e1bbe">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3388@localhost\"}]">>,
213,1217}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:44.998 ***🔗
REST request:
Code: 204
Req: {<0.88635.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost/alice_befriend_and_alienate_3388@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e4a4f99e6f5cb175">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>}],
<<>>,80,2151}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost/alice_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:45.001 ***🔗
REST request:
Code: 200
Req: {<0.88637.0>,
<<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a2d2ee5e002fa7b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 22 Apr 2024 17:45:44 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1162}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_3388@localhost">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,body => <<>>,role => admin,
return_headers => true}
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<iq from='alice_befriend_and_alienate_3388@localhost' to='alice_befriend_and_alienate_3388@localhost/res1' id='push009fc78ba932dfb6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3388@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<iq from='alice_befriend_and_alienate_3388@localhost' to='alice_befriend_and_alienate_3388@localhost/res1' id='pushcd7464696a0cfb06' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3388@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<iq from='alice_befriend_and_alienate_3388@localhost' to='alice_befriend_and_alienate_3388@localhost/res1' id='push36335be4b0288293' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_3388@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<presence from='bob_befriend_and_alienate_3388@localhost/res1' to='alice_befriend_and_alienate_3388@localhost/res1'/>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<iq from='alice_befriend_and_alienate_3388@localhost' to='alice_befriend_and_alienate_3388@localhost/res1' id='pusha4ad4c5c4276fa4b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3388@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<presence from='bob_befriend_and_alienate_3388@localhost' to='alice_befriend_and_alienate_3388@localhost/res1' type='subscribed'/>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<iq from='alice_befriend_and_alienate_3388@localhost' to='alice_befriend_and_alienate_3388@localhost/res1' id='push8acf0b9cdf2eeadd' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3388@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<presence from='bob_befriend_and_alienate_3388@localhost' to='alice_befriend_and_alienate_3388@localhost/res1' type='subscribe'/>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<iq from='alice_befriend_and_alienate_3388@localhost' to='alice_befriend_and_alienate_3388@localhost/res1' id='push7339b8b30875869b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3388@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<iq from='alice_befriend_and_alienate_3388@localhost' to='alice_befriend_and_alienate_3388@localhost/res1' id='push0bd0d1540f6eb696' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3388@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 17:45:45.001 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
<presence from='bob_befriend_and_alienate_3388@localhost/res1' to='alice_befriend_and_alienate_3388@localhost/res1' type='unavailable'/>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<iq from='bob_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' id='pushb8245371227741b8' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3388@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<presence from='alice_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' type='subscribe'/>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<iq from='bob_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' id='push8ee64ef7c772ca0e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3388@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<iq from='bob_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' id='push6e2718d506b68e82' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_3388@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<presence from='alice_befriend_and_alienate_3388@localhost/res1' to='bob_befriend_and_alienate_3388@localhost/res1'/>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<iq from='bob_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' id='push9103acc7c6922d31' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3388@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<presence from='alice_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' type='subscribed'/>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<presence from='alice_befriend_and_alienate_3388@localhost/res1' to='bob_befriend_and_alienate_3388@localhost/res1' type='unavailable'/>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<iq from='bob_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' id='pushd347db313c2b90e8' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3388@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<presence from='alice_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' type='unsubscribe'/>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<iq from='bob_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' id='push1f3fa3f0b268260d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3388@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<presence from='alice_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' type='unsubscribed'/>
*** User 2024-04-22 17:45:50.003 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
<iq from='bob_befriend_and_alienate_3388@localhost' to='bob_befriend_and_alienate_3388@localhost/res1' id='pushcc2f506f54035cf7' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3388@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-22 17:45:55.004 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:45:55.004 ***🔗
bob_befriend_and_alienate_3388@localhost/res1 in
</stream:stream>
*** User 2024-04-22 17:45:55.004 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 out
</stream:stream>
*** User 2024-04-22 17:45:55.005 ***🔗
alice_befriend_and_alienate_3388@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-22 17:45:55
=== successfully completed test case
=== === Returned value: ok