=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.5524.2>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,rdbms},
{preset,"pgsql_mnesia"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.rest_SUITE.logs/run.2023-11-13_19.32.41/rest_suite.befriend_and_alienate.213250.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@1d8001dd39bd.2023-11-13_19.21.09/big_tests.tests.rest_SUITE.logs/run.2023-11-13_19.32.41/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_amp => #{},
mod_bosh =>
#{backend => mnesia,inactivity => 30,max_pause => 120,
max_wait => infinity,server_acks => false},
mod_cache_users =>
#{number_of_segments => 5,strategy => fifo,time_to_live => 2},
mod_carboncopy => #{iqdisc => no_queue},
mod_disco =>
#{extra_domains => [],iqdisc => one_queue,server_info => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_register =>
#{access => register,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
iqdisc => one_queue,password_strength => 0,
registration_watchers => []},
mod_roster =>
#{backend => rdbms,iqdisc => one_queue,store_current_id => false,
versioning => false},
mod_sic => #{iqdisc => one_queue},
mod_stream_management =>
#{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
buffer_max => 100,resume_timeout => 600,
stale_h =>
#{enabled => false,geriatric => 3600,repeat_after => 1800}},
mod_vcard =>
#{backend => rdbms,
host => {prefix,<<"vjud.">>},
iqdisc => parallel,matches => 30,search => true}}},
{escalus_users,[{alice,[{username,<<"alicE">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"domain.example.com">>},
{host,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@1d8001dd39bd.2023-11-13_19.21.09"
=== Started at 2023-11-13 19:32:42
*** User 2023-11-13 19:32:42.498 ***🔗
alicE_befriend_and_alienate_2660@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 2023-11-13 19:32:42.499 ***🔗
alicE_befriend_and_alienate_2660@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bb17f8db520f54ed' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-13 19:32:42.499 ***🔗
alicE_befriend_and_alienate_2660@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 2023-11-13 19:32:42.499 ***🔗
alicE_befriend_and_alienate_2660@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNjYwAG1hdHlncnlzYQ==</auth>
*** User 2023-11-13 19:32:42.500 ***🔗
alicE_befriend_and_alienate_2660@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-13 19:32:42.500 ***🔗
alicE_befriend_and_alienate_2660@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 2023-11-13 19:32:42.500 ***🔗
alicE_befriend_and_alienate_2660@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c97f14d96a8a1278' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2660@domain.example.com'>
*** User 2023-11-13 19:32:42.500 ***🔗
alicE_befriend_and_alienate_2660@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 2023-11-13 19:32:42.500 ***🔗
alicE_befriend_and_alienate_2660@domain.example.com/res1 out
<iq type='set' id='3d0ee7c10c69687def51cb47ee25251f'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-13 19:32:42.501 ***🔗
alicE_befriend_and_alienate_2660@domain.example.com/res1 in
<iq id='3d0ee7c10c69687def51cb47ee25251f' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2660@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-13 19:32:42.501 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 out
<iq type='set' id='cdae29758d0716f8623ca1168a1f7580'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:32:42.501 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' id='cdae29758d0716f8623ca1168a1f7580' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:32:42.501 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 out
<presence/>
*** User 2023-11-13 19:32:42.502 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2660@domain.example.com/res1' to='alice_befriend_and_alienate_2660@domain.example.com/res1'/>
*** User 2023-11-13 19:32:42.503 ***🔗
bOb_befriend_and_alienate_2660@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 2023-11-13 19:32:42.503 ***🔗
bOb_befriend_and_alienate_2660@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='769faeb9bb34f3b7' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2023-11-13 19:32:42.503 ***🔗
bOb_befriend_and_alienate_2660@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 2023-11-13 19:32:42.503 ***🔗
bOb_befriend_and_alienate_2660@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjY2MABtYWtyb2xpa2E=</auth>
*** User 2023-11-13 19:32:42.504 ***🔗
bOb_befriend_and_alienate_2660@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2023-11-13 19:32:42.504 ***🔗
bOb_befriend_and_alienate_2660@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 2023-11-13 19:32:42.505 ***🔗
bOb_befriend_and_alienate_2660@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='62cf17da08d44c84' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2660@domain.example.com'>
*** User 2023-11-13 19:32:42.505 ***🔗
bOb_befriend_and_alienate_2660@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 2023-11-13 19:32:42.505 ***🔗
bOb_befriend_and_alienate_2660@domain.example.com/res1 out
<iq type='set' id='ab2aa068361a245a878a1b109018c484'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2023-11-13 19:32:42.505 ***🔗
bOb_befriend_and_alienate_2660@domain.example.com/res1 in
<iq id='ab2aa068361a245a878a1b109018c484' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2660@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2023-11-13 19:32:42.505 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 out
<iq type='set' id='a6916e8f8a5a629081ebc0d85a094f4c'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:32:42.506 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' id='a6916e8f8a5a629081ebc0d85a094f4c' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2023-11-13 19:32:42.506 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 out
<presence/>
*** User 2023-11-13 19:32:42.507 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2660@domain.example.com/res1' to='bob_befriend_and_alienate_2660@domain.example.com/res1'/>
*** User 2023-11-13 19:32:42.509 ***🔗
REST request:
Code: 200
Req: {<0.5637.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cf1498ae86617b73">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1069}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.510 ***🔗
REST request:
Code: 200
Req: {<0.5645.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dacc5a42d06ae1c6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,849}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.513 ***🔗
REST request:
Code: 204
Req: {<0.5649.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c3409b424c0167ed">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2660@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>}],
<<>>,80,2145}
Params: #{body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2660@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.516 ***🔗
REST request:
Code: 204
Req: {<0.5658.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"789ad8331e44908c">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2660@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>}],
<<>>,80,1904}
Params: #{body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2660@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.519 ***🔗
REST request:
Code: 204
Req: {<0.5663.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c279eb2a38c59a9f">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2660@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>}],
<<>>,80,2484}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2660@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.521 ***🔗
REST request:
Code: 200
Req: {<0.5665.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"37ebc25c57d569b3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2660@domain.example.com\",\"ask\":\"none\"}]">>,
222,835}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.522 ***🔗
REST request:
Code: 200
Req: {<0.5667.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7946076d7e15470b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2660@domain.example.com\",\"ask\":\"none\"}]">>,
220,814}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.526 ***🔗
REST request:
Code: 204
Req: {<0.5669.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9c30d61e1e8b83c5">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>}],
<<>>,80,2781}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.528 ***🔗
REST request:
Code: 200
Req: {<0.5671.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"24a68a8ded006e47">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2660@domain.example.com\",\"ask\":\"out\"}]">>,
219,1301}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.531 ***🔗
REST request:
Code: 204
Req: {<0.5675.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"60e96b4e35f64e4a">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>}],
<<>>,80,2574}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.533 ***🔗
REST request:
Code: 200
Req: {<0.5681.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6bd30ebce58910df">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2660@domain.example.com\",\"ask\":\"none\"}]">>,
218,973}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.535 ***🔗
REST request:
Code: 200
Req: {<0.5683.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2ec879ed1aa9ad54">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2660@domain.example.com\",\"ask\":\"none\"}]">>,
222,1379}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.539 ***🔗
REST request:
Code: 204
Req: {<0.5685.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5b6ce22f1fa76839">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>}],
<<>>,80,2541}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.540 ***🔗
REST request:
Code: 200
Req: {<0.5689.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0120b0861c66a444">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2660@domain.example.com\",\"ask\":\"out\"}]">>,
221,832}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.543 ***🔗
REST request:
Code: 204
Req: {<0.5693.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cb74cd1bf94e9e87">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>}],
<<>>,80,2209}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.545 ***🔗
REST request:
Code: 200
Req: {<0.5695.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"543fe1c72dae1c06">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2660@domain.example.com\",\"ask\":\"none\"}]">>,
220,1000}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.547 ***🔗
REST request:
Code: 200
Req: {<0.5697.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b3b248ea84b9cd09">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2660@domain.example.com\",\"ask\":\"none\"}]">>,
222,1013}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.552 ***🔗
REST request:
Code: 204
Req: {<0.5699.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e0608ad31502f17f">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>}],
<<>>,80,4029}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.554 ***🔗
REST request:
Code: 200
Req: {<0.5701.2>,
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d47b80fec1ed5429">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,922}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.555 ***🔗
REST request:
Code: 200
Req: {<0.5703.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"509db398359a8914">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2660@domain.example.com\",\"ask\":\"none\"}]">>,
222,988}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.557 ***🔗
REST request:
Code: 204
Req: {<0.5705.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com/alice_befriend_and_alienate_2660@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c56b4bb8eaa20b6">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>}],
<<>>,80,1294}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com/alice_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.599 ***🔗
REST request:
Code: 200
Req: {<0.5707.2>,
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"88e747d2e83630f6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Mon, 13 Nov 2023 19:32:42 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,40191}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2660@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2660@domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' id='push0122ebb98892e127' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2660@domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' id='push9b4c2bc56b0ebe08' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='bob_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2660@domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' id='pushf7906cc6a539ea6a' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='none' jid='bob_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2660@domain.example.com/res1' to='alice_befriend_and_alienate_2660@domain.example.com/res1'/>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2660@domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' id='push33de35f715eaa09e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2660@domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' type='subscribed'/>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2660@domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' id='push98924a47a9c1e3d3' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='bob_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2660@domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' type='subscribe'/>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2660@domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' id='push20d8971f3ff67b01' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='bob_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2660@domain.example.com' to='alice_befriend_and_alienate_2660@domain.example.com/res1' id='pushb19a4e8976009e4e' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='bob_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:42.599 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2660@domain.example.com/res1' to='alice_befriend_and_alienate_2660@domain.example.com/res1' type='unavailable'/>
*** User 2023-11-13 19:32:47.600 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' id='push575eeb720833f182' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:47.600 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' type='subscribe'/>
*** User 2023-11-13 19:32:47.600 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' id='push23f7e27efdc67f48' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='from' jid='alice_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:47.600 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' id='push7135844ccf4e37c3' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' subscription='from' jid='alice_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:47.600 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2660@domain.example.com/res1' to='bob_befriend_and_alienate_2660@domain.example.com/res1'/>
*** User 2023-11-13 19:32:47.600 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' id='push58b43ca5c57d396b' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='both' jid='alice_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:47.600 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' type='subscribed'/>
*** User 2023-11-13 19:32:47.600 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2660@domain.example.com/res1' to='bob_befriend_and_alienate_2660@domain.example.com/res1' type='unavailable'/>
*** User 2023-11-13 19:32:47.601 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' id='push74de770c70f9f5c9' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='to' jid='alice_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:47.601 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' type='unsubscribe'/>
*** User 2023-11-13 19:32:47.601 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' id='push978c7c3e570492e4' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='none' jid='alice_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:47.601 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' type='unsubscribed'/>
*** User 2023-11-13 19:32:47.601 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2660@domain.example.com' to='bob_befriend_and_alienate_2660@domain.example.com/res1' id='push9937a14dbce316ab' type='set'>
<query xmlns='jabber:iq:roster'>
<item subscription='remove' jid='alice_befriend_and_alienate_2660@domain.example.com'/>
</query>
</iq>
*** User 2023-11-13 19:32:52.601 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-13 19:32:52.601 ***🔗
bob_befriend_and_alienate_2660@domain.example.com/res1 in
</stream:stream>
*** User 2023-11-13 19:32:52.601 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 out
</stream:stream>
*** User 2023-11-13 19:32:52.602 ***🔗
alice_befriend_and_alienate_2660@domain.example.com/res1 in
</stream:stream>
=== Ended at 2023-11-13 19:32:52
=== successfully completed test case
=== === Returned value: ok