=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.75630.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@55d20a7e6e08.2024-03-21_07.45.40/big_tests.tests.rest_SUITE.logs/run.2024-03-21_08.00.08/rest_suite.befriend_and_alienate.104580.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@55d20a7e6e08.2024-03-21_07.45.40/big_tests.tests.rest_SUITE.logs/run.2024-03-21_08.00.08/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_amp => #{},
mod_sic => #{iqdisc => one_queue},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
backend => mnesia,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@55d20a7e6e08.2024-03-21_07.45.40"
=== Started at 2024-03-21 08:00:09
*** User 2024-03-21 08:00:09.471 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 08:00:09.471 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1b3620589a25cb49' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 08:00:09.471 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 08:00:09.472 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTc3AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 08:00:09.473 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 08:00:09.473 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 08:00:09.473 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='39d30ff38355c619' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2977@domain.example.com'>
*** User 2024-03-21 08:00:09.473 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 08:00:09.473 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 out
<iq type='set' id='bf3d3d4dc320e3f5ae786de70a5df6c3'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 08:00:09.474 ***🔗
alicE_befriend_and_alienate_2977@domain.example.com/res1 in
<iq id='bf3d3d4dc320e3f5ae786de70a5df6c3' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2977@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 08:00:09.474 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 out
<iq type='set' id='df8d716547cfccb36cc555a3f9c391ad'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:09.475 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' id='df8d716547cfccb36cc555a3f9c391ad' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:09.475 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 08:00:09.477 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2977@domain.example.com/res1' to='alice_befriend_and_alienate_2977@domain.example.com/res1'/>
*** User 2024-03-21 08:00:09.478 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 08:00:09.478 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='7054308632acf9c3' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 08:00:09.478 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 in
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>SCRAM-SHA-256</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 08:00:09.478 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjk3NwBtYWtyb2xpa2E=</auth>
*** User 2024-03-21 08:00:09.479 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 08:00:09.479 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 out
<stream:stream to='domain.example.com' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-03-21 08:00:09.479 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3d19f1aa1c0de695' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2977@domain.example.com'>
*** User 2024-03-21 08:00:09.479 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 in
<stream:features>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
<register xmlns='http://jabber.org/features/iq-register'/>
<amp xmlns='http://jabber.org/feature/amp'/>
<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>
*** User 2024-03-21 08:00:09.479 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 out
<iq type='set' id='a1cded96fc7be3c0876dc29d04d55e88'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 08:00:09.480 ***🔗
bOb_befriend_and_alienate_2977@domain.example.com/res1 in
<iq id='a1cded96fc7be3c0876dc29d04d55e88' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2977@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 08:00:09.480 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 out
<iq type='set' id='372214096dfdb4f231649fdb2e0f7ee3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:09.480 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' id='372214096dfdb4f231649fdb2e0f7ee3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 08:00:09.481 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 08:00:09.482 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2977@domain.example.com/res1' to='bob_befriend_and_alienate_2977@domain.example.com/res1'/>
*** User 2024-03-21 08:00:09.485 ***🔗
REST request:
Code: 200
Req: {<0.75751.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e0f42929bb71895d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2003}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.490 ***🔗
REST request:
Code: 200
Req: {<0.75757.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f98712648f3333bd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,3519}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.494 ***🔗
REST request:
Code: 204
Req: {<0.75765.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c06ad68ab0286fdf">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2977@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>}],
<<>>,80,3311}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2977@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-21 08:00:09.499 ***🔗
REST request:
Code: 204
Req: {<0.75767.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"62b2df8bbf073ac6">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2977@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>}],
<<>>,80,4378}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2977@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-21 08:00:09.503 ***🔗
REST request:
Code: 204
Req: {<0.75769.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b6b34bad806740ad">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2977@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>}],
<<>>,80,3155}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2977@domain.example.com\"}">>,
method => <<"POST">>,role => admin,return_headers => true}
*** User 2024-03-21 08:00:09.505 ***🔗
REST request:
Code: 200
Req: {<0.75771.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"fa6bd9c86a41ecce">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2977@domain.example.com\"}]">>,
222,1542}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.509 ***🔗
REST request:
Code: 200
Req: {<0.75773.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aa706775ce0ecccf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2977@domain.example.com\"}]">>,
220,2418}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.514 ***🔗
REST request:
Code: 204
Req: {<0.75775.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c0c4f1063e8bbe4">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>}],
<<>>,80,4158}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-03-21 08:00:09.560 ***🔗
REST request:
Code: 200
Req: {<0.75781.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"81e15e81f74bc701">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2977@domain.example.com\"}]">>,
219,45235}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.566 ***🔗
REST request:
Code: 204
Req: {<0.75783.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1c27eb138aafabf8">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>}],
<<>>,80,4682}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-03-21 08:00:09.568 ***🔗
REST request:
Code: 200
Req: {<0.75787.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"59a3a60a4fa6755b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2977@domain.example.com\"}]">>,
218,1589}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.571 ***🔗
REST request:
Code: 200
Req: {<0.75789.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3a820f28fbb152f2">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2977@domain.example.com\"}]">>,
222,2322}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.577 ***🔗
REST request:
Code: 204
Req: {<0.75791.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"aa88c5e44f304540">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>}],
<<>>,80,5064}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-03-21 08:00:09.579 ***🔗
REST request:
Code: 200
Req: {<0.75797.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0c970aba7aa072e1">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2977@domain.example.com\"}]">>,
221,1349}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.585 ***🔗
REST request:
Code: 204
Req: {<0.75799.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"18c2c748caee4282">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>}],
<<>>,80,4499}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
role => admin,return_headers => true}
*** User 2024-03-21 08:00:09.587 ***🔗
REST request:
Code: 200
Req: {<0.75801.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0730e04a202e79ef">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2977@domain.example.com\"}]">>,
220,1269}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.589 ***🔗
REST request:
Code: 200
Req: {<0.75803.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8f0f7df1c9fd9a14">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2977@domain.example.com\"}]">>,
222,1513}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.599 ***🔗
REST request:
Code: 204
Req: {<0.75805.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"964cb5947e590aa4">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>}],
<<>>,80,8778}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.601 ***🔗
REST request:
Code: 200
Req: {<0.75807.0>,
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5dbecdd81881e85b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1515}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.604 ***🔗
REST request:
Code: 200
Req: {<0.75809.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4d6dbfa366b05045">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2977@domain.example.com\"}]">>,
222,1419}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.607 ***🔗
REST request:
Code: 204
Req: {<0.75811.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com/alice_befriend_and_alienate_2977@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5f927c368338db79">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>}],
<<>>,80,2371}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com/alice_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.609 ***🔗
REST request:
Code: 200
Req: {<0.75813.0>,
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"72ec413703b93d88">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 08:00:09 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1247}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2977@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"GET">>,role => admin,
return_headers => true}
*** User 2024-03-21 08:00:09.609 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2977@domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' id='pushc9bf823ff4120476' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2977@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:09.609 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2977@domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' id='push0bb1560bfb5ebe10' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2977@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:09.609 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2977@domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' id='push22c70b6d4b043511' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2977@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:09.609 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2977@domain.example.com/res1' to='alice_befriend_and_alienate_2977@domain.example.com/res1'/>
*** User 2024-03-21 08:00:09.609 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2977@domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' id='push163fb2d58a153e8e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2977@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 08:00:09.609 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2977@domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-21 08:00:09.609 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2977@domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' id='push7db7a5e26fd07b23' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2977@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 08:00:09.610 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2977@domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-21 08:00:09.610 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2977@domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' id='push9f354082d9b4f4f0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2977@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-21 08:00:09.610 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2977@domain.example.com' to='alice_befriend_and_alienate_2977@domain.example.com/res1' id='push1da1c5fedeb3e9b0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2977@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-21 08:00:09.610 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2977@domain.example.com/res1' to='alice_befriend_and_alienate_2977@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-21 08:00:14.610 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' id='pushd7f3e09520f98a04' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2977@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' id='push14500d7ac06153a0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2977@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' id='push6b41dc352060aa95' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2977@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2977@domain.example.com/res1' to='bob_befriend_and_alienate_2977@domain.example.com/res1'/>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' id='pushe8719d31cf6dbdda' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2977@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2977@domain.example.com/res1' to='bob_befriend_and_alienate_2977@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' id='push916a30e6be5b8a78' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2977@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' id='pushf66798e326280d42' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2977@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-03-21 08:00:14.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2977@domain.example.com' to='bob_befriend_and_alienate_2977@domain.example.com/res1' id='push397d0332d1cb947f' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2977@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-21 08:00:19.611 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 08:00:19.612 ***🔗
bob_befriend_and_alienate_2977@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-21 08:00:19.612 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 08:00:19.612 ***🔗
alice_befriend_and_alienate_2977@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-21 08:00:19
=== successfully completed test case
=== === Returned value: ok