=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.75478.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@983bb6b138f0.2024-04-26_13.09.46/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.22.30/rest_suite.befriend_and_alienate.222594.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@983bb6b138f0.2024-04-26_13.09.46/big_tests.tests.rest_SUITE.logs/run.2024-04-26_13.22.30/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_amp => #{},mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_stream_management =>
#{buffer => true,ack => true,backend => 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,<<"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@983bb6b138f0.2024-04-26_13.09.46"
=== Started at 2024-04-26 13:22:31
*** User 2024-04-26 13:22:31.148 ***🔗
alicE_befriend_and_alienate_2913@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-04-26 13:22:31.149 ***🔗
alicE_befriend_and_alienate_2913@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c55a564f3690f422' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:22:31.149 ***🔗
alicE_befriend_and_alienate_2913@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-04-26 13:22:31.150 ***🔗
alicE_befriend_and_alienate_2913@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTEzAG1hdHlncnlzYQ==</auth>
*** User 2024-04-26 13:22:31.151 ***🔗
alicE_befriend_and_alienate_2913@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:22:31.151 ***🔗
alicE_befriend_and_alienate_2913@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-04-26 13:22:31.151 ***🔗
alicE_befriend_and_alienate_2913@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='10af7fc78e018a6d' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2913@domain.example.com'>
*** User 2024-04-26 13:22:31.151 ***🔗
alicE_befriend_and_alienate_2913@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-04-26 13:22:31.151 ***🔗
alicE_befriend_and_alienate_2913@domain.example.com/res1 out
<iq type='set' id='724f5a70b0a9426742e4242b736592fe'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:22:31.152 ***🔗
alicE_befriend_and_alienate_2913@domain.example.com/res1 in
<iq id='724f5a70b0a9426742e4242b736592fe' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2913@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:22:31.152 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 out
<iq type='set' id='f38eea7edbe6d8621794729323fe7058'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:31.153 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' id='f38eea7edbe6d8621794729323fe7058' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:31.153 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 out
<presence/>
*** User 2024-04-26 13:22:31.154 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2913@domain.example.com/res1' to='alice_befriend_and_alienate_2913@domain.example.com/res1'/>
*** User 2024-04-26 13:22:31.155 ***🔗
bOb_befriend_and_alienate_2913@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-04-26 13:22:31.155 ***🔗
bOb_befriend_and_alienate_2913@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7c56b73e23d9fa4d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-26 13:22:31.156 ***🔗
bOb_befriend_and_alienate_2913@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-04-26 13:22:31.156 ***🔗
bOb_befriend_and_alienate_2913@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkxMwBtYWtyb2xpa2E=</auth>
*** User 2024-04-26 13:22:31.157 ***🔗
bOb_befriend_and_alienate_2913@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 13:22:31.157 ***🔗
bOb_befriend_and_alienate_2913@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-04-26 13:22:31.157 ***🔗
bOb_befriend_and_alienate_2913@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='944c94be37d94cdc' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2913@domain.example.com'>
*** User 2024-04-26 13:22:31.157 ***🔗
bOb_befriend_and_alienate_2913@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-04-26 13:22:31.157 ***🔗
bOb_befriend_and_alienate_2913@domain.example.com/res1 out
<iq type='set' id='a53d3d742c0c8a80245bbd96e2277d66'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 13:22:31.157 ***🔗
bOb_befriend_and_alienate_2913@domain.example.com/res1 in
<iq id='a53d3d742c0c8a80245bbd96e2277d66' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2913@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-26 13:22:31.158 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 out
<iq type='set' id='c0eecbe60522da389d25f12ad96bda63'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:31.158 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' id='c0eecbe60522da389d25f12ad96bda63' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 13:22:31.158 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 out
<presence/>
*** User 2024-04-26 13:22:31.160 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2913@domain.example.com/res1' to='bob_befriend_and_alienate_2913@domain.example.com/res1'/>
*** User 2024-04-26 13:22:31.164 ***🔗
REST request:
Code: 200
Req: {<0.75582.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d8d3dcc98185b3a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1968}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.167 ***🔗
REST request:
Code: 200
Req: {<0.75590.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9da4e7e25820679d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2355}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.171 ***🔗
REST request:
Code: 204
Req: {<0.75601.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"336b045727c35af7">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2913@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
<<>>,80,3183}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2913@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:31.176 ***🔗
REST request:
Code: 204
Req: {<0.75612.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e93681b68f831c55">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2913@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
<<>>,80,3304}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2913@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:31.182 ***🔗
REST request:
Code: 204
Req: {<0.75617.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bc6d5afa5a718c85">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2913@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
<<>>,80,4824}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2913@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-26 13:22:31.184 ***🔗
REST request:
Code: 200
Req: {<0.75619.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0e926ca709b49cfa">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2913@domain.example.com\"}]">>,
222,1442}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.187 ***🔗
REST request:
Code: 200
Req: {<0.75621.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7a3c2a7f89d7c0bf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2913@domain.example.com\"}]">>,
220,1205}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.193 ***🔗
REST request:
Code: 204
Req: {<0.75623.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b956a7d2dc50e65e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
<<>>,80,4811}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-26 13:22:31.196 ***🔗
REST request:
Code: 200
Req: {<0.75625.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d093b7bd3b822813">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2913@domain.example.com\"}]">>,
219,1464}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.201 ***🔗
REST request:
Code: 204
Req: {<0.75627.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f882f88bd515d318">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
<<>>,80,3958}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-26 13:22:31.204 ***🔗
REST request:
Code: 200
Req: {<0.75633.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"afa2bcf4e9bcbee2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2913@domain.example.com\"}]">>,
218,1521}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.207 ***🔗
REST request:
Code: 200
Req: {<0.75637.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1d03bd374ae55ed9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2913@domain.example.com\"}]">>,
222,1890}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.211 ***🔗
REST request:
Code: 204
Req: {<0.75639.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9f2e775c55c292ac">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
<<>>,80,3346}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-26 13:22:31.214 ***🔗
REST request:
Code: 200
Req: {<0.75643.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"039371f24c654207">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2913@domain.example.com\"}]">>,
221,1710}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.220 ***🔗
REST request:
Code: 204
Req: {<0.75647.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8dc8b818027cb265">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
<<>>,80,4098}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-26 13:22:31.222 ***🔗
REST request:
Code: 200
Req: {<0.75649.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c5be139506c0e434">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2913@domain.example.com\"}]">>,
220,1339}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.224 ***🔗
REST request:
Code: 200
Req: {<0.75651.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4e99d9923223074e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2913@domain.example.com\"}]">>,
222,1263}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.232 ***🔗
REST request:
Code: 204
Req: {<0.75653.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2363dcd737463d4d">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
<<>>,80,6845}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-26 13:22:31.234 ***🔗
REST request:
Code: 200
Req: {<0.75655.0>,
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c5f4171513cfd00">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1074}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.237 ***🔗
REST request:
Code: 200
Req: {<0.75657.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e93d74fc512bdf3f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2913@domain.example.com\"}]">>,
222,1287}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.240 ***🔗
REST request:
Code: 204
Req: {<0.75659.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com/alice_befriend_and_alienate_2913@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6f38f5f23780fddf">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>}],
<<>>,80,2277}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com/alice_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-26 13:22:31.242 ***🔗
REST request:
Code: 200
Req: {<0.75661.0>,
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9721b20f65bab4d5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 13:22:30 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1182}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2913@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-26 13:22:31.242 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2913@domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' id='push5adaf57dc0947269' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2913@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2913@domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' id='pushe217167f9fdfd435' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2913@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2913@domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' id='push5ff0eb112375f1b2' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2913@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2913@domain.example.com/res1' to='alice_befriend_and_alienate_2913@domain.example.com/res1'/>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2913@domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' id='push21446122fd7bdae4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2913@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2913@domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2913@domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' id='pushc723082c5a3760c3' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2913@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2913@domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2913@domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' id='pusheeb127015aaa23de' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2913@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2913@domain.example.com' to='alice_befriend_and_alienate_2913@domain.example.com/res1' id='push14eaa297fd5a3d89' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2913@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-26 13:22:31.243 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2913@domain.example.com/res1' to='alice_befriend_and_alienate_2913@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' id='push13a08eeffbd59899' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2913@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' id='push704bbfa938b8c3b4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2913@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' id='push15cb2cabb377e2bb' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2913@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2913@domain.example.com/res1' to='bob_befriend_and_alienate_2913@domain.example.com/res1'/>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' id='push4ca2b0b29ca4e224' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2913@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2913@domain.example.com/res1' to='bob_befriend_and_alienate_2913@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' id='pushb33cb75c5b46dd97' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2913@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' id='pushf001e69e9c379d84' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2913@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-26 13:22:36.244 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2913@domain.example.com' to='bob_befriend_and_alienate_2913@domain.example.com/res1' id='pushecbde18fa5b66f8c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2913@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-26 13:22:41.246 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-26 13:22:41.246 ***🔗
bob_befriend_and_alienate_2913@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-26 13:22:41.246 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-26 13:22:41.247 ***🔗
alice_befriend_and_alienate_2913@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-26 13:22:41
=== successfully completed test case
=== === Returned value: ok