=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.10646.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@e0d583f2e839.2024-03-21_07.34.22/big_tests.tests.rest_SUITE.logs/run.2024-03-21_07.46.52/rest_suite.befriend_and_alienate.218754.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@e0d583f2e839.2024-03-21_07.34.22/big_tests.tests.rest_SUITE.logs/run.2024-03-21_07.46.52/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@e0d583f2e839.2024-03-21_07.34.22"
=== Started at 2024-03-21 07:46:53
*** User 2024-03-21 07:46:53.158 ***🔗
alicE_befriend_and_alienate_2887@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 07:46:53.159 ***🔗
alicE_befriend_and_alienate_2887@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='eea5f677eaaa0731' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:46:53.159 ***🔗
alicE_befriend_and_alienate_2887@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 07:46:53.159 ***🔗
alicE_befriend_and_alienate_2887@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8yODg3AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 07:46:53.162 ***🔗
alicE_befriend_and_alienate_2887@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:46:53.162 ***🔗
alicE_befriend_and_alienate_2887@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 07:46:53.162 ***🔗
alicE_befriend_and_alienate_2887@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2c47a5d0f85c0cb4' from='domain.example.com' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_2887@domain.example.com'>
*** User 2024-03-21 07:46:53.162 ***🔗
alicE_befriend_and_alienate_2887@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 07:46:53.162 ***🔗
alicE_befriend_and_alienate_2887@domain.example.com/res1 out
<iq type='set' id='a4ae32d548b6fea0ecc9e53beb09cde0'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:46:53.163 ***🔗
alicE_befriend_and_alienate_2887@domain.example.com/res1 in
<iq id='a4ae32d548b6fea0ecc9e53beb09cde0' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_2887@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:46:53.163 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 out
<iq type='set' id='2bc5b207628dcec01f629b45f15263a1'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:46:53.163 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' id='2bc5b207628dcec01f629b45f15263a1' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:46:53.163 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 07:46:53.165 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2887@domain.example.com/res1' to='alice_befriend_and_alienate_2887@domain.example.com/res1'/>
*** User 2024-03-21 07:46:53.165 ***🔗
bOb_befriend_and_alienate_2887@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 07:46:53.165 ***🔗
bOb_befriend_and_alienate_2887@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e753b3fe796b048b' from='domain.example.com' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:46:53.165 ***🔗
bOb_befriend_and_alienate_2887@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 07:46:53.165 ***🔗
bOb_befriend_and_alienate_2887@domain.example.com/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMjg4NwBtYWtyb2xpa2E=</auth>
*** User 2024-03-21 07:46:53.166 ***🔗
bOb_befriend_and_alienate_2887@domain.example.com/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:46:53.166 ***🔗
bOb_befriend_and_alienate_2887@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 07:46:53.167 ***🔗
bOb_befriend_and_alienate_2887@domain.example.com/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0dfe1ee165eacee3' from='domain.example.com' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_2887@domain.example.com'>
*** User 2024-03-21 07:46:53.167 ***🔗
bOb_befriend_and_alienate_2887@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 07:46:53.167 ***🔗
bOb_befriend_and_alienate_2887@domain.example.com/res1 out
<iq type='set' id='0835dbbbc1a36677d538147988443bd1'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:46:53.167 ***🔗
bOb_befriend_and_alienate_2887@domain.example.com/res1 in
<iq id='0835dbbbc1a36677d538147988443bd1' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_2887@domain.example.com/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:46:53.167 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 out
<iq type='set' id='09c1f65d100369456f0755d84ed5c6ec'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:46:53.167 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' id='09c1f65d100369456f0755d84ed5c6ec' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:46:53.168 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 out
<presence/>
*** User 2024-03-21 07:46:53.169 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2887@domain.example.com/res1' to='bob_befriend_and_alienate_2887@domain.example.com/res1'/>
*** User 2024-03-21 07:46:53.171 ***🔗
REST request:
Code: 200
Req: {<0.10750.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d96ebfeb264157f7">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1527}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.173 ***🔗
REST request:
Code: 200
Req: {<0.10758.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3a4481c8877d95b5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1099}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.181 ***🔗
REST request:
Code: 204
Req: {<0.10763.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4fd929f19b52ef18">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2887@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>}],
<<>>,80,6621}
Params: #{body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2887@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.187 ***🔗
REST request:
Code: 204
Req: {<0.10777.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"60559e487afeaeb9">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_2887@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>}],
<<>>,80,4403}
Params: #{body =>
<<"{\"jid\":\"bob_befriend_and_alienate_2887@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.190 ***🔗
REST request:
Code: 204
Req: {<0.10785.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b57345da76d9b682">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_2887@domain.example.com\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>}],
<<>>,80,2990}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_2887@domain.example.com\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.195 ***🔗
REST request:
Code: 200
Req: {<0.10787.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2befb651d2c51f73">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2887@domain.example.com\",\"ask\":\"none\"}]">>,
222,3541}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.197 ***🔗
REST request:
Code: 200
Req: {<0.10789.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c1f38dd7d54a344c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2887@domain.example.com\",\"ask\":\"none\"}]">>,
220,1372}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.209 ***🔗
REST request:
Code: 204
Req: {<0.10791.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9808289a5836c153">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>}],
<<>>,80,10630}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.212 ***🔗
REST request:
Code: 200
Req: {<0.10793.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7470844cbb7e207d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"95">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_2887@domain.example.com\",\"ask\":\"out\"}]">>,
219,1706}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.225 ***🔗
REST request:
Code: 204
Req: {<0.10795.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c1a77836c0554bc8">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>}],
<<>>,80,11851}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.227 ***🔗
REST request:
Code: 200
Req: {<0.10799.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b7f157d13d63a8a3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"94">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_2887@domain.example.com\",\"ask\":\"none\"}]">>,
218,1346}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.232 ***🔗
REST request:
Code: 200
Req: {<0.10803.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"90c75b1c10d8afbd">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2887@domain.example.com\",\"ask\":\"none\"}]">>,
222,3924}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.242 ***🔗
REST request:
Code: 204
Req: {<0.10807.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2db7c9e5cacc61e7">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>}],
<<>>,80,8560}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.244 ***🔗
REST request:
Code: 200
Req: {<0.10809.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b07837c8343321f8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"97">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_2887@domain.example.com\",\"ask\":\"out\"}]">>,
221,1349}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.256 ***🔗
REST request:
Code: 204
Req: {<0.10811.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"86646e2f1c5e4d21">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>}],
<<>>,80,10827}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.258 ***🔗
REST request:
Code: 200
Req: {<0.10817.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"54d26f1c9ca26bd0">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"96">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_2887@domain.example.com\",\"ask\":\"none\"}]">>,
220,1015}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.260 ***🔗
REST request:
Code: 200
Req: {<0.10819.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"37ab32e5edddd3ae">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_2887@domain.example.com\",\"ask\":\"none\"}]">>,
222,1087}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.272 ***🔗
REST request:
Code: 204
Req: {<0.10821.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"1f2f083f42198df3">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>}],
<<>>,80,10648}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.274 ***🔗
REST request:
Code: 200
Req: {<0.10823.2>,
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e83eec4dc39f6e69">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1003}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.275 ***🔗
REST request:
Code: 200
Req: {<0.10825.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c44964d6c89a5774">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"98">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_2887@domain.example.com\",\"ask\":\"none\"}]">>,
222,1080}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.281 ***🔗
REST request:
Code: 204
Req: {<0.10827.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com/alice_befriend_and_alienate_2887@domain.example.com">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d1c78d16619b33b9">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>}],
<<>>,80,5096}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com/alice_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.283 ***🔗
REST request:
Code: 200
Req: {<0.10829.2>,
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a6126dce34489387">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:46:52 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,907}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_2887@domain.example.com">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-03-21 07:46:53.283 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2887@domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' id='pushd55a3ad1966db6e7' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2887@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:46:53.283 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2887@domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' id='pushbb9566efb1d33bf4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2887@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:46:53.283 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2887@domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' id='pushfed9e8f6bd64678d' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_2887@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:46:53.283 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2887@domain.example.com/res1' to='alice_befriend_and_alienate_2887@domain.example.com/res1'/>
*** User 2024-03-21 07:46:53.283 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2887@domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' id='push67439be14b4dedd6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2887@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 07:46:53.284 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2887@domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-21 07:46:53.284 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2887@domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' id='push8885a01a171bef8c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2887@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 07:46:53.284 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2887@domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-21 07:46:53.284 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2887@domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' id='push4094f8d599dad6dd' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2887@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-21 07:46:53.284 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='alice_befriend_and_alienate_2887@domain.example.com' to='alice_befriend_and_alienate_2887@domain.example.com/res1' id='pushba43b73866f793a9' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_2887@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-21 07:46:53.284 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='bob_befriend_and_alienate_2887@domain.example.com/res1' to='alice_befriend_and_alienate_2887@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-21 07:46:58.285 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' id='push63eb2b6e3b6c1d6d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2887@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:46:58.285 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' type='subscribe'/>
*** User 2024-03-21 07:46:58.285 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' id='pushff4249b6073ad461' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2887@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-21 07:46:58.285 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' id='pusha38d51be1f952924' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_2887@domain.example.com' subscription='from'/>
</query>
</iq>
*** User 2024-03-21 07:46:58.285 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2887@domain.example.com/res1' to='bob_befriend_and_alienate_2887@domain.example.com/res1'/>
*** User 2024-03-21 07:46:58.285 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' id='push874a4f02f81cf595' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2887@domain.example.com' subscription='both'/>
</query>
</iq>
*** User 2024-03-21 07:46:58.285 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' type='subscribed'/>
*** User 2024-03-21 07:46:58.286 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2887@domain.example.com/res1' to='bob_befriend_and_alienate_2887@domain.example.com/res1' type='unavailable'/>
*** User 2024-03-21 07:46:58.286 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' id='pushdddd0557bf473377' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2887@domain.example.com' subscription='to'/>
</query>
</iq>
*** User 2024-03-21 07:46:58.286 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' type='unsubscribe'/>
*** User 2024-03-21 07:46:58.286 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' id='pushdea9672ce8924052' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2887@domain.example.com' subscription='none'/>
</query>
</iq>
*** User 2024-03-21 07:46:58.286 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<presence from='alice_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' type='unsubscribed'/>
*** User 2024-03-21 07:46:58.286 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
<iq from='bob_befriend_and_alienate_2887@domain.example.com' to='bob_befriend_and_alienate_2887@domain.example.com/res1' id='push66a8ac89ea1bfffa' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_2887@domain.example.com' subscription='remove'/>
</query>
</iq>
*** User 2024-03-21 07:47:03.287 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 07:47:03.287 ***🔗
bob_befriend_and_alienate_2887@domain.example.com/res1 in
</stream:stream>
*** User 2024-03-21 07:47:03.287 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 out
</stream:stream>
*** User 2024-03-21 07:47:03.288 ***🔗
alice_befriend_and_alienate_2887@domain.example.com/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:47:03
=== successfully completed test case
=== === Returned value: ok