=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.9352.2>},
{{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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.rest_SUITE.logs/run.2024-03-07_11.13.13/rest_suite.befriend_and_alienate.149507.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@a458c4eb991a.2024-03-07_11.00.02/big_tests.tests.rest_SUITE.logs/run.2024-03-07_11.13.13/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@a458c4eb991a.2024-03-07_11.00.02"
=== Started at 2024-03-07 11:13:13
*** User 2024-03-07 11:13:14.003 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-07 11:13:14.003 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3920bc55f187ae89' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-07 11:13:14.003 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/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-07 11:13:14.003 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yODk5AG1hdHlncnlzYQ==</auth>
*** User 2024-03-07 11:13:14.004 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-07 11:13:14.004 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-07 11:13:14.005 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='da80a4a04bab07a8' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2899@domain.example.com'>
*** User 2024-03-07 11:13:14.005 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/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-07 11:13:14.006 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/res1 out
<iq type='set' id='85f685eef9f4fe42b36f8dc47e91307f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-07 11:13:14.006 ***🔗
alicE_befriend_and_alienate_2899@domain.example.com/res1 in
<iq id='85f685eef9f4fe42b36f8dc47e91307f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2899@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-07 11:13:14.007 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 out
<iq type='set' id='168b09d23fe53a0e5c1892c3c7b8ecbf'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-07 11:13:14.007 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' id='168b09d23fe53a0e5c1892c3c7b8ecbf' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-07 11:13:14.008 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 out
<presence/>
*** User 2024-03-07 11:13:14.009 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2899@domain.example.com/res1' to='alice_befriend_and_alienate_2899@domain.example.com/res1'/>
*** User 2024-03-07 11:13:14.010 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-07 11:13:14.011 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='334e8b243156b2ca' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-07 11:13:14.011 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/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-07 11:13:14.011 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjg5OQBtYWtyb2xpa2E=</auth>
*** User 2024-03-07 11:13:14.012 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-07 11:13:14.013 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-07 11:13:14.013 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2963bded19b224cf' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2899@domain.example.com'>
*** User 2024-03-07 11:13:14.013 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/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-07 11:13:14.013 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/res1 out
<iq type='set' id='147ac403ffb2a9f770e2190e3c90a23c'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-07 11:13:14.013 ***🔗
bOb_befriend_and_alienate_2899@domain.example.com/res1 in
<iq id='147ac403ffb2a9f770e2190e3c90a23c' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2899@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-07 11:13:14.014 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 out
<iq type='set' id='7a15e236044e0fc6f360c3066dab5b8d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-07 11:13:14.014 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' id='7a15e236044e0fc6f360c3066dab5b8d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-07 11:13:14.014 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 out
<presence/>
*** User 2024-03-07 11:13:14.016 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2899@domain.example.com/res1' to='bob_befriend_and_alienate_2899@domain.example.com/res1'/>
*** User 2024-03-07 11:13:14.019 ***🔗
REST request:
Code: 200
Req: {<0.9456.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4cccd473938380ad">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1592}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.021 ***🔗
REST request:
Code: 200
Req: {<0.9463.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8ae12efeb344e31b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1249}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.025 ***🔗
REST request:
Code: 204
Req: {<0.9473.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"be742ba2c3bacc82">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2899@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>}],
<<>>,80,3324}
Params: #{body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2899@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.029 ***🔗
REST request:
Code: 204
Req: {<0.9482.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c134b9972b74dd96">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2899@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>}],
<<>>,80,2463}
Params: #{body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2899@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.033 ***🔗
REST request:
Code: 204
Req: {<0.9488.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d18c1b4b5d808b98">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2899@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>}],
<<>>,80,3062}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2899@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.035 ***🔗
REST request:
Code: 200
Req: {<0.9493.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8feff61570333e89">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2899@domain.example.com\",\"ask\":\"none\"}]">>,
222,1227}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.037 ***🔗
REST request:
Code: 200
Req: {<0.9495.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3f819782c7e96c55">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2899@domain.example.com\",\"ask\":\"none\"}]">>,
220,1252}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.068 ***🔗
REST request:
Code: 204
Req: {<0.9497.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"51d3982b3d631cad">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>}],
<<>>,80,3817}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.071 ***🔗
REST request:
Code: 200
Req: {<0.9499.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a216cd535743db36">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2899@domain.example.com\",\"ask\":\"out\"}]">>,
219,2198}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.076 ***🔗
REST request:
Code: 204
Req: {<0.9503.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7e71b650226d6017">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>}],
<<>>,80,3916}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.079 ***🔗
REST request:
Code: 200
Req: {<0.9509.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"39e78a950c560ffc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2899@domain.example.com\",\"ask\":\"none\"}]">>,
218,1942}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.082 ***🔗
REST request:
Code: 200
Req: {<0.9511.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6b32685787e6c375">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2899@domain.example.com\",\"ask\":\"none\"}]">>,
222,1940}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.087 ***🔗
REST request:
Code: 204
Req: {<0.9513.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"19ed7006b42aeec7">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>}],
<<>>,80,3665}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.089 ***🔗
REST request:
Code: 200
Req: {<0.9517.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7efded8944ad3e44">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2899@domain.example.com\",\"ask\":\"out\"}]">>,
221,1227}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.094 ***🔗
REST request:
Code: 204
Req: {<0.9521.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"af1d447f8f080303">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>}],
<<>>,80,3481}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.096 ***🔗
REST request:
Code: 200
Req: {<0.9523.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"87ed5d6364bc4603">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2899@domain.example.com\",\"ask\":\"none\"}]">>,
220,1452}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.099 ***🔗
REST request:
Code: 200
Req: {<0.9525.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3933212c05cd4624">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2899@domain.example.com\",\"ask\":\"none\"}]">>,
222,1497}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.107 ***🔗
REST request:
Code: 204
Req: {<0.9527.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b543d6068e27122c">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>}],
<<>>,80,6926}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.110 ***🔗
REST request:
Code: 200
Req: {<0.9529.2>,
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b2b30e1947f5af62">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1371}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.112 ***🔗
REST request:
Code: 200
Req: {<0.9531.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"559a7e9c524bdb8f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2899@domain.example.com\",\"ask\":\"none\"}]">>,
222,1217}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.115 ***🔗
REST request:
Code: 204
Req: {<0.9533.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com/alice_befriend_and_alienate_2899@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8d6bba9973ccef87">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>}],
<<>>,80,2332}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com/alice_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.118 ***🔗
REST request:
Code: 200
Req: {<0.9535.2>,
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ff36e66e9de4deff">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 07 Mar 2024 11:13:13 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1160}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2899@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2899@domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' id='pushced0d0a1237813af' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2899@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2899@domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' id='push26584240472c5212' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2899@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2899@domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' id='pushbea5fc7f00eed9a3' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2899@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2899@domain.example.com/res1' to='alice_befriend_and_alienate_2899@domain.example.com/res1'/>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2899@domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' id='push09ad24542e43e761' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2899@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2899@domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2899@domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' id='pushbc66ab415038f7e6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2899@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2899@domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2899@domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' id='push29b848a903284e55' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2899@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2899@domain.example.com' to='alice_befriend_and_alienate_2899@domain.example.com/res1' id='push4ce919ff970f38b3' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2899@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-07 11:13:14.118 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2899@domain.example.com/res1' to='alice_befriend_and_alienate_2899@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' id='pushabac04131f5f44cb' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2899@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' id='pushbcdd306ec0323c0b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2899@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' id='pushe8342037bf49c75c' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2899@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2899@domain.example.com/res1' to='bob_befriend_and_alienate_2899@domain.example.com/res1'/>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' id='pushed29e141538354d4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2899@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2899@domain.example.com/res1' to='bob_befriend_and_alienate_2899@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' id='push68360f7190e459d1' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2899@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-03-07 11:13:19.119 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' id='pushe5998a56494e1814' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2899@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-07 11:13:19.120 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-03-07 11:13:19.120 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2899@domain.example.com' to='bob_befriend_and_alienate_2899@domain.example.com/res1' id='push45c87a45e4c4a931' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2899@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-07 11:13:24.120 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-07 11:13:24.120 ***🔗
bob_befriend_and_alienate_2899@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-07 11:13:24.121 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-07 11:13:24.121 ***🔗
alice_befriend_and_alienate_2899@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-07 11:13:24
=== successfully completed test case
=== === Returned value: ok