=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.9935.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@80070a6ff3c4.2024-04-25_12.00.25/big_tests.tests.rest_SUITE.logs/run.2024-04-25_12.13.00/rest_suite.befriend_and_alienate.97156.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@80070a6ff3c4.2024-04-25_12.00.25/big_tests.tests.rest_SUITE.logs/run.2024-04-25_12.13.00/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@80070a6ff3c4.2024-04-25_12.00.25"
=== Started at 2024-04-25 12:13:01
*** User 2024-04-25 12:13:01.158 ***🔗
alicE_befriend_and_alienate_2905@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:13:01.159 ***🔗
alicE_befriend_and_alienate_2905@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='bd390203fdc35119' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:13:01.159 ***🔗
alicE_befriend_and_alienate_2905@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:13:01.159 ***🔗
alicE_befriend_and_alienate_2905@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yOTA1AG1hdHlncnlzYQ==</auth>
*** User 2024-04-25 12:13:01.161 ***🔗
alicE_befriend_and_alienate_2905@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:13:01.161 ***🔗
alicE_befriend_and_alienate_2905@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:13:01.161 ***🔗
alicE_befriend_and_alienate_2905@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8321baeffde06fea' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2905@domain.example.com'>
*** User 2024-04-25 12:13:01.161 ***🔗
alicE_befriend_and_alienate_2905@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:13:01.161 ***🔗
alicE_befriend_and_alienate_2905@domain.example.com/res1 out
<iq type='set' id='70a9c619a18956eb7f6bd41f430d73e7'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:13:01.162 ***🔗
alicE_befriend_and_alienate_2905@domain.example.com/res1 in
<iq id='70a9c619a18956eb7f6bd41f430d73e7' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2905@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:13:01.162 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 out
<iq type='set' id='a51ade36eaf4e5876dd5d405dc9d27eb'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:13:01.162 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' id='a51ade36eaf4e5876dd5d405dc9d27eb' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:13:01.162 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 out
<presence/>
*** User 2024-04-25 12:13:01.164 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2905@domain.example.com/res1' to='alice_befriend_and_alienate_2905@domain.example.com/res1'/>
*** User 2024-04-25 12:13:01.165 ***🔗
bOb_befriend_and_alienate_2905@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:13:01.165 ***🔗
bOb_befriend_and_alienate_2905@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='6ad23b3b12579145' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-25 12:13:01.165 ***🔗
bOb_befriend_and_alienate_2905@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:13:01.165 ***🔗
bOb_befriend_and_alienate_2905@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjkwNQBtYWtyb2xpa2E=</auth>
*** User 2024-04-25 12:13:01.166 ***🔗
bOb_befriend_and_alienate_2905@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-25 12:13:01.166 ***🔗
bOb_befriend_and_alienate_2905@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:13:01.167 ***🔗
bOb_befriend_and_alienate_2905@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c1779856da25b09d' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2905@domain.example.com'>
*** User 2024-04-25 12:13:01.167 ***🔗
bOb_befriend_and_alienate_2905@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:13:01.167 ***🔗
bOb_befriend_and_alienate_2905@domain.example.com/res1 out
<iq type='set' id='6ba1e81a1b042b3ca56106fb045255ac'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-25 12:13:01.168 ***🔗
bOb_befriend_and_alienate_2905@domain.example.com/res1 in
<iq id='6ba1e81a1b042b3ca56106fb045255ac' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2905@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-25 12:13:01.168 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 out
<iq type='set' id='ea98f1b532cd3984062183e9468058ad'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:13:01.168 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' id='ea98f1b532cd3984062183e9468058ad' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-25 12:13:01.169 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 out
<presence/>
*** User 2024-04-25 12:13:01.170 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2905@domain.example.com/res1' to='bob_befriend_and_alienate_2905@domain.example.com/res1'/>
*** User 2024-04-25 12:13:01.173 ***🔗
REST request:
Code: 200
Req: {<0.10042.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"bbb7d0196ad96e26">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1740}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.176 ***🔗
REST request:
Code: 200
Req: {<0.10048.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6b9347ec36ef2b93">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1783}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.181 ***🔗
REST request:
Code: 204
Req: {<0.10056.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7c857d5f19003fa0">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2905@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>}],
<<>>,80,3292}
Params: #{body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2905@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.186 ***🔗
REST request:
Code: 204
Req: {<0.10065.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"449a3373b4ce069f">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2905@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>}],
<<>>,80,3907}
Params: #{body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2905@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.233 ***🔗
REST request:
Code: 204
Req: {<0.10073.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b32bb7c49dc62884">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2905@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>}],
<<>>,80,45597}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2905@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.236 ***🔗
REST request:
Code: 200
Req: {<0.10076.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"41c0743c626deff8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2905@domain.example.com\",\"ask\":\"none\"}]">>,
222,1659}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.239 ***🔗
REST request:
Code: 200
Req: {<0.10078.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ef2a88437893e3a7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2905@domain.example.com\",\"ask\":\"none\"}]">>,
220,1607}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.244 ***🔗
REST request:
Code: 204
Req: {<0.10080.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"895b2891c0843f3e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>}],
<<>>,80,3838}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.247 ***🔗
REST request:
Code: 200
Req: {<0.10082.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"082f66364e1e2f1a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2905@domain.example.com\",\"ask\":\"out\"}]">>,
219,2130}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.254 ***🔗
REST request:
Code: 204
Req: {<0.10084.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3ab0ff241d8fe738">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>}],
<<>>,80,5026}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.257 ***🔗
REST request:
Code: 200
Req: {<0.10092.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4212643b3eed2e72">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2905@domain.example.com\",\"ask\":\"none\"}]">>,
218,1627}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.259 ***🔗
REST request:
Code: 200
Req: {<0.10094.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9bfecfc53f78115c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2905@domain.example.com\",\"ask\":\"none\"}]">>,
222,1204}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.264 ***🔗
REST request:
Code: 204
Req: {<0.10096.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5679493ab2cb8c1d">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>}],
<<>>,80,3292}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.266 ***🔗
REST request:
Code: 200
Req: {<0.10100.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"720ba6e050f63eae">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2905@domain.example.com\",\"ask\":\"out\"}]">>,
221,1049}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.270 ***🔗
REST request:
Code: 204
Req: {<0.10102.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f1d5a8c93d56d8b1">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>}],
<<>>,80,3012}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.272 ***🔗
REST request:
Code: 200
Req: {<0.10106.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4a4a25c35d701732">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2905@domain.example.com\",\"ask\":\"none\"}]">>,
220,1537}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.275 ***🔗
REST request:
Code: 200
Req: {<0.10108.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"02e57abd1bc5e61e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2905@domain.example.com\",\"ask\":\"none\"}]">>,
222,1519}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.289 ***🔗
REST request:
Code: 204
Req: {<0.10110.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"78a4213d0f4f1873">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>}],
<<>>,80,10448}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.293 ***🔗
REST request:
Code: 200
Req: {<0.10112.2>,
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b0197ed782e92151">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1825}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.295 ***🔗
REST request:
Code: 200
Req: {<0.10114.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c21af7984187e33a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2905@domain.example.com\",\"ask\":\"none\"}]">>,
222,1568}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.299 ***🔗
REST request:
Code: 204
Req: {<0.10116.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com/alice_befriend_and_alienate_2905@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4eb332904892510e">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>}],
<<>>,80,2569}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com/alice_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.302 ***🔗
REST request:
Code: 200
Req: {<0.10118.2>,
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c7a5b23527075ce0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 25 Apr 2024 12:13:00 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1280}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2905@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2905@domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' id='pushad830fc3a8b0faad' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2905@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2905@domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' id='push1351f1a0df309a80' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2905@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2905@domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' id='push2c98bdd9931c8609' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2905@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2905@domain.example.com/res1' to='alice_befriend_and_alienate_2905@domain.example.com/res1'/>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2905@domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' id='push7e8a2d3ae82e032c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2905@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2905@domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2905@domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' id='push5469b182dd099c1a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2905@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2905@domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2905@domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' id='pushe6e3d4dcb20fb477' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2905@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2905@domain.example.com' to='alice_befriend_and_alienate_2905@domain.example.com/res1' id='pushb18f271caa19b44c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2905@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-25 12:13:01.302 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2905@domain.example.com/res1' to='alice_befriend_and_alienate_2905@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' id='push54a68f7161546bf0' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2905@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' id='push3abcffc51c142a57' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2905@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' id='push6f5416343f545b47' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2905@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2905@domain.example.com/res1' to='bob_befriend_and_alienate_2905@domain.example.com/res1'/>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' id='push665597d2419dd849' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2905@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2905@domain.example.com/res1' to='bob_befriend_and_alienate_2905@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' id='push0a47dcfd287df3dc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2905@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-25 12:13:06.303 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' id='push1ab4ad3bc6090eec' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2905@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-25 12:13:06.304 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-25 12:13:06.304 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2905@domain.example.com' to='bob_befriend_and_alienate_2905@domain.example.com/res1' id='push60a03f89f22b1286' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2905@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-25 12:13:11.304 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-25 12:13:11.305 ***🔗
bob_befriend_and_alienate_2905@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-25 12:13:11.305 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-25 12:13:11.305 ***🔗
alice_befriend_and_alienate_2905@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-25 12:13:11
=== successfully completed test case
=== === Returned value: ok