=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.75437.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@7ecda0c7ab13.2024-04-25_12.01.15/big_tests.tests.rest_SUITE.logs/run.2024-04-25_12.14.22/rest_suite.befriend_and_alienate.209922.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@7ecda0c7ab13.2024-04-25_12.01.15/big_tests.tests.rest_SUITE.logs/run.2024-04-25_12.14.22/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_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_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
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@7ecda0c7ab13.2024-04-25_12.01.15"
=== Started at 2024-04-25 12:14:23
*** User 2024-04-25 12:14:23.406 ***🔗
alicE_befriend_and_alienate_2954@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-25 12:14:23.407 ***🔗
alicE_befriend_and_alienate_2954@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d19b6a1114c4a835' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:14:23.407 ***🔗
alicE_befriend_and_alienate_2954@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-25 12:14:23.407 ***🔗
alicE_befriend_and_alienate_2954@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTU0AG1hdHlncnlzYQ==</auth>
*** User 2024-04-25 12:14:23.409 ***🔗
alicE_befriend_and_alienate_2954@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:14:23.409 ***🔗
alicE_befriend_and_alienate_2954@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-25 12:14:23.410 ***🔗
alicE_befriend_and_alienate_2954@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='5d1b55c1e7cf00de' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2954@domain.example.com'>
*** User 2024-04-25 12:14:23.410 ***🔗
alicE_befriend_and_alienate_2954@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-25 12:14:23.410 ***🔗
alicE_befriend_and_alienate_2954@domain.example.com/res1 out
<iq type='set' id='4a86ab850404b5f6196d861e01c09436'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:14:23.410 ***🔗
alicE_befriend_and_alienate_2954@domain.example.com/res1 in
<iq id='4a86ab850404b5f6196d861e01c09436' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2954@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:14:23.410 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 out
<iq type='set' id='ecb6346ad1c21c8098567746ee9f504b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:14:23.411 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' id='ecb6346ad1c21c8098567746ee9f504b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:14:23.411 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 out
<presence/>
*** User 2024-04-25 12:14:23.413 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2954@domain.example.com/res1' to='alice_befriend_and_alienate_2954@domain.example.com/res1'/>
*** User 2024-04-25 12:14:23.413 ***🔗
bOb_befriend_and_alienate_2954@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-25 12:14:23.414 ***🔗
bOb_befriend_and_alienate_2954@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='36092cd216a617c7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:14:23.414 ***🔗
bOb_befriend_and_alienate_2954@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-25 12:14:23.414 ***🔗
bOb_befriend_and_alienate_2954@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjk1NABtYWtyb2xpa2E=</auth>
*** User 2024-04-25 12:14:23.415 ***🔗
bOb_befriend_and_alienate_2954@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:14:23.415 ***🔗
bOb_befriend_and_alienate_2954@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-25 12:14:23.416 ***🔗
bOb_befriend_and_alienate_2954@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='767bcfc17f3ba727' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2954@domain.example.com'>
*** User 2024-04-25 12:14:23.416 ***🔗
bOb_befriend_and_alienate_2954@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-25 12:14:23.416 ***🔗
bOb_befriend_and_alienate_2954@domain.example.com/res1 out
<iq type='set' id='2ddb2349b723a8e46a64ae766185988e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:14:23.416 ***🔗
bOb_befriend_and_alienate_2954@domain.example.com/res1 in
<iq id='2ddb2349b723a8e46a64ae766185988e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2954@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:14:23.417 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 out
<iq type='set' id='6f6beec7c9b115e4a6db514a37f9ee4e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:14:23.417 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' id='6f6beec7c9b115e4a6db514a37f9ee4e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:14:23.417 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 out
<presence/>
*** User 2024-04-25 12:14:23.419 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2954@domain.example.com/res1' to='bob_befriend_and_alienate_2954@domain.example.com/res1'/>
*** User 2024-04-25 12:14:23.421 ***🔗
REST request:
Code: 200
Req: {<0.75546.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f6995f3513e5358f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1483}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.423 ***🔗
REST request:
Code: 200
Req: {<0.75552.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c5dbf12b1fdde7d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1019}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.428 ***🔗
REST request:
Code: 204
Req: {<0.75562.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"930dca1a416dd6d8">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2954@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>}],
<<>>,80,3583}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2954@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-25 12:14:23.432 ***🔗
REST request:
Code: 204
Req: {<0.75571.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"eead13793112bb08">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2954@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>}],
<<>>,80,3756}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2954@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-25 12:14:23.435 ***🔗
REST request:
Code: 204
Req: {<0.75576.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1b5377ebceda0fb6">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2954@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>}],
<<>>,80,2243}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"POST">>,role => admin,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2954@domain.example.com\"}">>,
return_headers => true}
*** User 2024-04-25 12:14:23.439 ***🔗
REST request:
Code: 200
Req: {<0.75578.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"05d11be5de42f3fe">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2954@domain.example.com\"}]">>,
222,2542}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.441 ***🔗
REST request:
Code: 200
Req: {<0.75580.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ced31b6fc41fe44b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2954@domain.example.com\"}]">>,
220,1807}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.446 ***🔗
REST request:
Code: 204
Req: {<0.75582.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3b352ac281024ced">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>}],
<<>>,80,3095}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-04-25 12:14:23.448 ***🔗
REST request:
Code: 200
Req: {<0.75584.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8a2939c27bdb79b0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2954@domain.example.com\"}]">>,
219,1142}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.452 ***🔗
REST request:
Code: 204
Req: {<0.75588.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d3d50dece68570d3">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>}],
<<>>,80,3174}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-04-25 12:14:23.504 ***🔗
REST request:
Code: 200
Req: {<0.75594.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"91b212ae3c52bd05">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2954@domain.example.com\"}]">>,
218,2710}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.506 ***🔗
REST request:
Code: 200
Req: {<0.75596.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5d94fd3f52a8e696">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2954@domain.example.com\"}]">>,
222,1191}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.511 ***🔗
REST request:
Code: 204
Req: {<0.75598.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a623ca3afe52e1ca">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>}],
<<>>,80,3778}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribe\"}">>,return_headers => true}
*** User 2024-04-25 12:14:23.513 ***🔗
REST request:
Code: 200
Req: {<0.75604.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c5ad1aa9eed5143c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2954@domain.example.com\"}]">>,
221,1112}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.517 ***🔗
REST request:
Code: 204
Req: {<0.75606.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c712d31156afd560">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>}],
<<>>,80,3169}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"PUT">>,role => admin,
body => <<"{\"action\":\"subscribed\"}">>,return_headers => true}
*** User 2024-04-25 12:14:23.519 ***🔗
REST request:
Code: 200
Req: {<0.75608.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7a125d0d7bdf1a6f">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2954@domain.example.com\"}]">>,
220,1318}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.521 ***🔗
REST request:
Code: 200
Req: {<0.75610.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e940afd60ec04b53">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2954@domain.example.com\"}]">>,
222,1363}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.528 ***🔗
REST request:
Code: 204
Req: {<0.75612.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"56ffdc6cff760a1a">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>}],
<<>>,80,5901}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.531 ***🔗
REST request:
Code: 200
Req: {<0.75614.0>,
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f5ac669b88d48a27">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1514}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.533 ***🔗
REST request:
Code: 200
Req: {<0.75616.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b421f79f4907b068">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2954@domain.example.com\"}]">>,
222,1156}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.535 ***🔗
REST request:
Code: 204
Req: {<0.75618.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com/alice_befriend_and_alienate_2954@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"708d4f8c6c5ab8b9">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>}],
<<>>,80,1682}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com/alice_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"DELETE">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.537 ***🔗
REST request:
Code: 200
Req: {<0.75620.0>,
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d27cebed470fc2ff">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:14:22 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1070}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2954@domain.example.com">>,
server => #{node => mongooseim@localhost},
method => <<"GET">>,role => admin,body => <<>>,
return_headers => true}
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2954@domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' id='push6fc1a0e11b3ef6db' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2954@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2954@domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' id='push60b16a14268a21ca' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2954@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2954@domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' id='push6c6ac3998ef34a01' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2954@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2954@domain.example.com/res1' to='alice_befriend_and_alienate_2954@domain.example.com/res1'/>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2954@domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' id='pushc6268d719972377d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2954@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2954@domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2954@domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' id='push25e227306bdbf043' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2954@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2954@domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2954@domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' id='push47507918d92f572d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2954@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2954@domain.example.com' to='alice_befriend_and_alienate_2954@domain.example.com/res1' id='pushf1bcb6fbf8eb011a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2954@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-25 12:14:23.538 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2954@domain.example.com/res1' to='alice_befriend_and_alienate_2954@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-25 12:14:28.539 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' id='push7d317a06b695dbf4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2954@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:14:28.539 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-25 12:14:28.539 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' id='push40ce33f16ec38975' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2954@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-25 12:14:28.539 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' id='push3081887523cb8fa2' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2954@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-25 12:14:28.539 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2954@domain.example.com/res1' to='bob_befriend_and_alienate_2954@domain.example.com/res1'/>
*** User 2024-04-25 12:14:28.539 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' id='push6b20618958038580' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2954@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-25 12:14:28.539 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-25 12:14:28.539 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2954@domain.example.com/res1' to='bob_befriend_and_alienate_2954@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-25 12:14:28.540 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' id='push39593c8f9a00f43f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2954@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 12:14:28.540 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-25 12:14:28.540 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' id='push1625f3c13a62f740' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2954@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:14:28.540 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-25 12:14:28.540 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2954@domain.example.com' to='bob_befriend_and_alienate_2954@domain.example.com/res1' id='push758536d2cdd3b6fb' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2954@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-25 12:14:33.540 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-25 12:14:33.541 ***🔗
bob_befriend_and_alienate_2954@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-25 12:14:33.541 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-25 12:14:33.541 ***🔗
alice_befriend_and_alienate_2954@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-25 12:14:33
=== successfully completed test case
=== === Returned value: ok