=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.74994.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@6509628dc6d5.2024-04-09_06.54.13/big_tests.tests.rest_SUITE.logs/run.2024-04-09_07.06.14/rest_suite.befriend_and_alienate.163459.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@6509628dc6d5.2024-04-09_06.54.13/big_tests.tests.rest_SUITE.logs/run.2024-04-09_07.06.14/log_private/"},
{{saved_modules,mongooseim@localhost,<<"test type">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_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_amp => #{},
mod_disco =>
#{iqdisc => one_queue,users_can_see_hidden_services => false,
server_info => [],extra_domains => []},
mod_presence => #{},
mod_stream_management =>
#{buffer => true,ack => true,backend => mnesia,
stale_h =>
#{enabled => false,repeat_after => 1800,geriatric => 3600},
buffer_max => 100,ack_freq => 1,resume_timeout => 600},
mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
mod_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@6509628dc6d5.2024-04-09_06.54.13"
=== Started at 2024-04-09 07:06:15
*** User 2024-04-09 07:06:15.404 ***🔗
alicE_befriend_and_alienate_2769@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-09 07:06:15.405 ***🔗
alicE_befriend_and_alienate_2769@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='569a34f3a7eee006' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-09 07:06:15.405 ***🔗
alicE_befriend_and_alienate_2769@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-09 07:06:15.405 ***🔗
alicE_befriend_and_alienate_2769@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yNzY5AG1hdHlncnlzYQ==</auth>
*** User 2024-04-09 07:06:15.406 ***🔗
alicE_befriend_and_alienate_2769@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-09 07:06:15.407 ***🔗
alicE_befriend_and_alienate_2769@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-09 07:06:15.407 ***🔗
alicE_befriend_and_alienate_2769@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='b6c1cd178df6cb02' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2769@domain.example.com'>
*** User 2024-04-09 07:06:15.408 ***🔗
alicE_befriend_and_alienate_2769@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-09 07:06:15.408 ***🔗
alicE_befriend_and_alienate_2769@domain.example.com/res1 out
<iq type='set' id='efcbaa78964f3dc1bf154aa5917f7fc0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-09 07:06:15.408 ***🔗
alicE_befriend_and_alienate_2769@domain.example.com/res1 in
<iq id='efcbaa78964f3dc1bf154aa5917f7fc0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2769@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-09 07:06:15.408 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 out
<iq type='set' id='428ada1d3fc31b9bf587601f7403f47b'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-09 07:06:15.409 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' id='428ada1d3fc31b9bf587601f7403f47b' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-09 07:06:15.409 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 out
<presence/>
*** User 2024-04-09 07:06:15.411 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2769@domain.example.com/res1' to='alice_befriend_and_alienate_2769@domain.example.com/res1'/>
*** User 2024-04-09 07:06:15.412 ***🔗
bOb_befriend_and_alienate_2769@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-09 07:06:15.412 ***🔗
bOb_befriend_and_alienate_2769@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c1143e7a6484ca0' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-04-09 07:06:15.412 ***🔗
bOb_befriend_and_alienate_2769@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-09 07:06:15.412 ***🔗
bOb_befriend_and_alienate_2769@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjc2OQBtYWtyb2xpa2E=</auth>
*** User 2024-04-09 07:06:15.413 ***🔗
bOb_befriend_and_alienate_2769@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-09 07:06:15.413 ***🔗
bOb_befriend_and_alienate_2769@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-09 07:06:15.414 ***🔗
bOb_befriend_and_alienate_2769@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c2fcffe03c57a891' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2769@domain.example.com'>
*** User 2024-04-09 07:06:15.414 ***🔗
bOb_befriend_and_alienate_2769@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-09 07:06:15.414 ***🔗
bOb_befriend_and_alienate_2769@domain.example.com/res1 out
<iq type='set' id='c4e3cd1a128c50d408797f16c4f32903'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-09 07:06:15.414 ***🔗
bOb_befriend_and_alienate_2769@domain.example.com/res1 in
<iq id='c4e3cd1a128c50d408797f16c4f32903' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2769@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-04-09 07:06:15.414 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 out
<iq type='set' id='84297a3a711add2177fcf12875be43d3'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-09 07:06:15.415 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' id='84297a3a711add2177fcf12875be43d3' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-09 07:06:15.415 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 out
<presence/>
*** User 2024-04-09 07:06:15.418 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2769@domain.example.com/res1' to='bob_befriend_and_alienate_2769@domain.example.com/res1'/>
*** User 2024-04-09 07:06:15.421 ***🔗
REST request:
Code: 200
Req: {<0.75105.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ef1c8ae47f5c71ec">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2012}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.424 ***🔗
REST request:
Code: 200
Req: {<0.75109.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c412c6bdcad331a9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2142}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.431 ***🔗
REST request:
Code: 204
Req: {<0.75119.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"88f7a55622dc1abd">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2769@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>}],
<<>>,80,4867}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2769@domain.example.com\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-09 07:06:15.443 ***🔗
REST request:
Code: 204
Req: {<0.75127.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1baaaf54149589da">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2769@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>}],
<<>>,80,10966}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2769@domain.example.com\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-09 07:06:15.450 ***🔗
REST request:
Code: 204
Req: {<0.75133.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"85f6160978c89fc5">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2769@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>}],
<<>>,80,6275}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2769@domain.example.com\"}">>,
role => admin,method => <<"POST">>,return_headers => true}
*** User 2024-04-09 07:06:15.453 ***🔗
REST request:
Code: 200
Req: {<0.75135.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"884dcc9a4e2796ff">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2769@domain.example.com\"}]">>,
222,1895}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.456 ***🔗
REST request:
Code: 200
Req: {<0.75137.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4a2b643234ac3fdf">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2769@domain.example.com\"}]">>,
220,1752}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.464 ***🔗
REST request:
Code: 204
Req: {<0.75139.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"828ceeb8e9d5a78a">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>}],
<<>>,80,6043}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,role => admin,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-09 07:06:15.466 ***🔗
REST request:
Code: 200
Req: {<0.75141.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"dada587d990176e0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2769@domain.example.com\"}]">>,
219,1582}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.475 ***🔗
REST request:
Code: 204
Req: {<0.75143.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ee86fffc22b3677f">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>}],
<<>>,80,7367}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,role => admin,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-09 07:06:15.479 ***🔗
REST request:
Code: 200
Req: {<0.75145.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"66fd0d70f727248a">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2769@domain.example.com\"}]">>,
218,2767}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.482 ***🔗
REST request:
Code: 200
Req: {<0.75149.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9d78304519f24b34">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2769@domain.example.com\"}]">>,
222,1683}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.492 ***🔗
REST request:
Code: 204
Req: {<0.75151.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"5ab11e3f24bdbe7e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>}],
<<>>,80,8254}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribe\"}">>,role => admin,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-09 07:06:15.496 ***🔗
REST request:
Code: 200
Req: {<0.75157.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4742cf51619f4e0b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2769@domain.example.com\"}]">>,
221,2907}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.514 ***🔗
REST request:
Code: 204
Req: {<0.75159.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c1f3cae9477fe646">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>}],
<<>>,80,16628}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<"{\"action\":\"subscribed\"}">>,role => admin,
method => <<"PUT">>,return_headers => true}
*** User 2024-04-09 07:06:15.518 ***🔗
REST request:
Code: 200
Req: {<0.75163.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3b7a1c8c31abb8b6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2769@domain.example.com\"}]">>,
220,2209}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.521 ***🔗
REST request:
Code: 200
Req: {<0.75167.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"207274071a294916">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2769@domain.example.com\"}]">>,
222,1946}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.539 ***🔗
REST request:
Code: 204
Req: {<0.75169.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3d0d1d4451651b13">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>}],
<<>>,80,16138}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-09 07:06:15.543 ***🔗
REST request:
Code: 200
Req: {<0.75171.0>,
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"313fbea14ec779b5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2717}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.546 ***🔗
REST request:
Code: 200
Req: {<0.75173.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"946fde64e1045ac8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2769@domain.example.com\"}]">>,
222,1918}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.555 ***🔗
REST request:
Code: 204
Req: {<0.75175.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com/alice_befriend_and_alienate_2769@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ca32c6dedd6fb309">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>}],
<<>>,80,8185}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com/alice_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"DELETE">>,
return_headers => true}
*** User 2024-04-09 07:06:15.559 ***🔗
REST request:
Code: 200
Req: {<0.75177.0>,
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"002072485a25ef99">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Tue, 09 Apr 2024 07:06:15 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,2248}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_2769@domain.example.com">>,
server => #{node => mongooseim@localhost},
body => <<>>,role => admin,method => <<"GET">>,
return_headers => true}
*** User 2024-04-09 07:06:15.559 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2769@domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' id='push855c65292ab57592' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2769@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-09 07:06:15.559 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2769@domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' id='pusha12417534441bf18' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2769@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-09 07:06:15.559 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2769@domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' id='push720bbe9d56968409' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2769@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-09 07:06:15.559 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2769@domain.example.com/res1' to='alice_befriend_and_alienate_2769@domain.example.com/res1'/>
*** User 2024-04-09 07:06:15.559 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2769@domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' id='push27a13254badb58bf' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2769@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-09 07:06:15.559 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2769@domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-09 07:06:15.559 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2769@domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' id='pushbad380c448a8b75e' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2769@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-09 07:06:15.559 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2769@domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-09 07:06:15.560 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2769@domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' id='push2be0bd55f5f3c0cf' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2769@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-09 07:06:15.560 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2769@domain.example.com' to='alice_befriend_and_alienate_2769@domain.example.com/res1' id='push996774baef843440' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2769@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-09 07:06:15.560 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2769@domain.example.com/res1' to='alice_befriend_and_alienate_2769@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-09 07:06:20.560 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' id='pushb12366d2c4de5f2b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2769@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-09 07:06:20.560 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' type='subscribe'/>
*** User 2024-04-09 07:06:20.560 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' id='pushded2fd836a904551' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2769@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' id='push18fb018932c2288f' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2769@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2769@domain.example.com/res1' to='bob_befriend_and_alienate_2769@domain.example.com/res1'/>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' id='push502aae762f6a632a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2769@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' type='subscribed'/>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2769@domain.example.com/res1' to='bob_befriend_and_alienate_2769@domain.example.com/res1' type='unavailable'/>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' id='pushf708da5677a86cd6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2769@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' id='pushc0eab07ee705403b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2769@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-04-09 07:06:20.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2769@domain.example.com' to='bob_befriend_and_alienate_2769@domain.example.com/res1' id='push568f514beab68507' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2769@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-04-09 07:06:25.561 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-09 07:06:25.562 ***🔗
bob_befriend_and_alienate_2769@domain.example.com/res1 in
</stream:stream>
*** User 2024-04-09 07:06:25.562 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 out
</stream:stream>
*** User 2024-04-09 07:06:25.562 ***🔗
alice_befriend_and_alienate_2769@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-04-09 07:06:25
=== successfully completed test case
=== === Returned value: ok