=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.74845.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@dbd2e2a25f04.2024-04-10_14.24.56/big_tests.tests.rest_SUITE.logs/run.2024-04-10_14.37.16/rest_suite.befriend_and_alienate.205314.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@dbd2e2a25f04.2024-04-10_14.24.56/big_tests.tests.rest_SUITE.logs/run.2024-04-10_14.37.16/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{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 =>
#{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_cache_users =>
#{strategy => fifo,number_of_segments => 5,time_to_live => 2},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
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@dbd2e2a25f04.2024-04-10_14.24.56"
=== Started at 2024-04-10 14:37:17
*** User 2024-04-10 14:37:18.151 ***🔗
alicE_befriend_and_alienate_2788@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-10 14:37:18.151 ***🔗
alicE_befriend_and_alienate_2788@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='03b973e6694e815b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-10 14:37:18.151 ***🔗
alicE_befriend_and_alienate_2788@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-10 14:37:18.151 ***🔗
alicE_befriend_and_alienate_2788@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNzg4AG1hdHlncnlzYQ==</auth>
*** User 2024-04-10 14:37:18.152 ***🔗
alicE_befriend_and_alienate_2788@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 14:37:18.152 ***🔗
alicE_befriend_and_alienate_2788@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-10 14:37:18.152 ***🔗
alicE_befriend_and_alienate_2788@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='235a5b4a27427598' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2788@domain.example.com'>
*** User 2024-04-10 14:37:18.152 ***🔗
alicE_befriend_and_alienate_2788@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-10 14:37:18.152 ***🔗
alicE_befriend_and_alienate_2788@domain.example.com/res1 out
<iq type='set' id='c0117ba34c4abbb95355732bb5559871'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 14:37:18.153 ***🔗
alicE_befriend_and_alienate_2788@domain.example.com/res1 in
<iq id='c0117ba34c4abbb95355732bb5559871' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2788@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-10 14:37:18.153 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 out
<iq type='set' id='e5cd3a3d1d54d7b41776f6a5a81d4c7b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:37:18.154 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' id='e5cd3a3d1d54d7b41776f6a5a81d4c7b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:37:18.154 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 out
<presence/>
*** User 2024-04-10 14:37:18.156 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2788@domain.example.com/res1' to='alice_befriend_and_alienate_2788@domain.example.com/res1'/>
*** User 2024-04-10 14:37:18.156 ***🔗
bOb_befriend_and_alienate_2788@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-10 14:37:18.157 ***🔗
bOb_befriend_and_alienate_2788@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3cd6735099d1500d' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-10 14:37:18.157 ***🔗
bOb_befriend_and_alienate_2788@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-10 14:37:18.157 ***🔗
bOb_befriend_and_alienate_2788@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjc4OABtYWtyb2xpa2E=</auth>
*** User 2024-04-10 14:37:18.158 ***🔗
bOb_befriend_and_alienate_2788@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-10 14:37:18.158 ***🔗
bOb_befriend_and_alienate_2788@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-10 14:37:18.158 ***🔗
bOb_befriend_and_alienate_2788@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5b44d77323ec02ba' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2788@domain.example.com'>
*** User 2024-04-10 14:37:18.158 ***🔗
bOb_befriend_and_alienate_2788@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-10 14:37:18.158 ***🔗
bOb_befriend_and_alienate_2788@domain.example.com/res1 out
<iq type='set' id='85e0990deeca528587c40568847df21a'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-10 14:37:18.158 ***🔗
bOb_befriend_and_alienate_2788@domain.example.com/res1 in
<iq id='85e0990deeca528587c40568847df21a' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2788@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-10 14:37:18.159 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 out
<iq type='set' id='a2cc59b7ff9a7f263a64e4dfbbfab078'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:37:18.159 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' id='a2cc59b7ff9a7f263a64e4dfbbfab078' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-10 14:37:18.159 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 out
<presence/>
*** User 2024-04-10 14:37:18.161 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2788@domain.example.com/res1' to='bob_befriend_and_alienate_2788@domain.example.com/res1'/>
*** User 2024-04-10 14:37:18.164 ***🔗
REST request:
Code: 200
Req: {<0.74965.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"897ae79a317aa941">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2163}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.167 ***🔗
REST request:
Code: 200
Req: {<0.74969.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5f26ee18f2accabf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1869}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.175 ***🔗
REST request:
Code: 204
Req: {<0.74976.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e2cf75dc84e6b013">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2788@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>}],
<<>>,80,7332}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2788@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-10 14:37:18.180 ***🔗
REST request:
Code: 204
Req: {<0.74983.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"25e983e2b2603fdf">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2788@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>}],
<<>>,80,3429}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2788@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-10 14:37:18.191 ***🔗
REST request:
Code: 204
Req: {<0.74985.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9ea09501cddd2362">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2788@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>}],
<<>>,80,10200}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2788@domain.example.com\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-04-10 14:37:18.204 ***🔗
REST request:
Code: 200
Req: {<0.74987.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7cc98f7483149c0a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2788@domain.example.com\"}]">>,
222,11657}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.217 ***🔗
REST request:
Code: 200
Req: {<0.74989.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"222e92c6d3fdbb9f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2788@domain.example.com\"}]">>,
220,11383}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.276 ***🔗
REST request:
Code: 204
Req: {<0.74991.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4f1c7e22b644d634">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>}],
<<>>,80,57777}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-10 14:37:18.290 ***🔗
REST request:
Code: 200
Req: {<0.74993.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"887b9f41b541bfe9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2788@domain.example.com\"}]">>,
219,12965}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.328 ***🔗
REST request:
Code: 204
Req: {<0.74995.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"758f0e4f4c11a0ac">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>}],
<<>>,80,37022}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-10 14:37:18.340 ***🔗
REST request:
Code: 200
Req: {<0.74997.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"95189f4ecc9f0b10">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2788@domain.example.com\"}]">>,
218,10773}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.343 ***🔗
REST request:
Code: 200
Req: {<0.74999.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d739f0c98fac88f3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2788@domain.example.com\"}]">>,
222,1577}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.364 ***🔗
REST request:
Code: 204
Req: {<0.75001.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7e2283fc56746238">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>}],
<<>>,80,19958}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-10 14:37:18.366 ***🔗
REST request:
Code: 200
Req: {<0.75009.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"142595d7cf46fbfb">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2788@domain.example.com\"}]">>,
221,1586}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.392 ***🔗
REST request:
Code: 204
Req: {<0.75011.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7c2820d7634e3abe">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>}],
<<>>,80,24734}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-10 14:37:18.395 ***🔗
REST request:
Code: 200
Req: {<0.75013.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ff4addb1649dd10d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:17 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2788@domain.example.com\"}]">>,
220,1817}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.398 ***🔗
REST request:
Code: 200
Req: {<0.75015.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"54c835df63a5ec1b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:18 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2788@domain.example.com\"}]">>,
222,1547}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.420 ***🔗
REST request:
Code: 204
Req: {<0.75017.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"44144da112b31c73">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:18 GMT">>}],
<<>>,80,21595}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-10 14:37:18.423 ***🔗
REST request:
Code: 200
Req: {<0.75023.0>,
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb07bd261b535dda">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:18 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1329}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.425 ***🔗
REST request:
Code: 200
Req: {<0.75025.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f7cd7943973580b6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:18 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2788@domain.example.com\"}]">>,
222,1357}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.434 ***🔗
REST request:
Code: 204
Req: {<0.75027.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com/alice_befriend_and_alienate_2788@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1982b784299c1b62">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:18 GMT">>}],
<<>>,80,8696}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com/alice_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-10 14:37:18.437 ***🔗
REST request:
Code: 200
Req: {<0.75029.0>,
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bb0f5e4e3e61eb75">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Wed, 10 Apr 2024 14:37:18 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1422}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2788@domain.example.com">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2788@domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' id='pushe2f9a56d65697bf2' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2788@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2788@domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' id='pushbd546583318e92b9' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2788@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2788@domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' id='push2d9f3f8c69afceed' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2788@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2788@domain.example.com/res1' to='alice_befriend_and_alienate_2788@domain.example.com/res1'/>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2788@domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' id='push7c9581279ee0a52d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2788@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2788@domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2788@domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' id='push122ecdea1d51aa70' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2788@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2788@domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2788@domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' id='push104c450895e787a7' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2788@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2788@domain.example.com' to='alice_befriend_and_alienate_2788@domain.example.com/res1' id='pushc2b7d25d9c6a4bce' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2788@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-10 14:37:18.437 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2788@domain.example.com/res1' to='alice_befriend_and_alienate_2788@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-10 14:37:23.438 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' id='push5194da9225bbff27' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2788@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 14:37:23.438 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-10 14:37:23.438 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' id='pushf07415237677b3de' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2788@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-10 14:37:23.438 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' id='push3fdf1d7560110c4c' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2788@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-10 14:37:23.438 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2788@domain.example.com/res1' to='bob_befriend_and_alienate_2788@domain.example.com/res1'/>
*** User 2024-04-10 14:37:23.438 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' id='pusheffb757bb036584e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2788@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-10 14:37:23.438 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-10 14:37:23.439 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2788@domain.example.com/res1' to='bob_befriend_and_alienate_2788@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-10 14:37:23.439 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' id='push839c4d4753f0c347' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2788@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-10 14:37:23.439 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-10 14:37:23.439 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' id='push1fa6fba341e08464' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2788@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-10 14:37:23.439 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-10 14:37:23.439 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2788@domain.example.com' to='bob_befriend_and_alienate_2788@domain.example.com/res1' id='push5594735846ec8433' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2788@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-10 14:37:28.439 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-10 14:37:28.439 ***🔗
bob_befriend_and_alienate_2788@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-10 14:37:28.440 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-10 14:37:28.440 ***🔗
alice_befriend_and_alienate_2788@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-10 14:37:28
=== successfully completed test case
=== === Returned value: ok