=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.21854.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@08f2d0642cae.2024-04-26_12.38.35/big_tests.tests.rest_SUITE.logs/run.2024-04-26_12.53.58/rest_suite.befriend_and_alienate.160899.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@08f2d0642cae.2024-04-26_12.38.35/big_tests.tests.rest_SUITE.logs/run.2024-04-26_12.53.58/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{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,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@08f2d0642cae.2024-04-26_12.38.35"
=== Started at 2024-04-26 12:53:58
*** User 2024-04-26 12:53:59.018 ***🔗
alicE_befriend_and_alienate_3302@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-26 12:53:59.019 ***🔗
alicE_befriend_and_alienate_3302@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='285aac58af78275f' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 12:53:59.019 ***🔗
alicE_befriend_and_alienate_3302@localhost/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-26 12:53:59.019 ***🔗
alicE_befriend_and_alienate_3302@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8zMzAyAG1hdHlncnlzYQ==</auth>
*** User 2024-04-26 12:53:59.020 ***🔗
alicE_befriend_and_alienate_3302@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 12:53:59.020 ***🔗
alicE_befriend_and_alienate_3302@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-26 12:53:59.020 ***🔗
alicE_befriend_and_alienate_3302@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d5606a2c6815d5b3' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_3302@localhost'>
*** User 2024-04-26 12:53:59.020 ***🔗
alicE_befriend_and_alienate_3302@localhost/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-26 12:53:59.020 ***🔗
alicE_befriend_and_alienate_3302@localhost/res1 out
<iq type='set' id='2d4842a4e24d079e8ca440381fe9297e'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 12:53:59.021 ***🔗
alicE_befriend_and_alienate_3302@localhost/res1 in
<iq id='2d4842a4e24d079e8ca440381fe9297e' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_3302@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 12:53:59.021 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 out
<iq type='set' id='d3d67c60636cdfae383e0644aa785466'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:53:59.021 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_3302@localhost/res1' id='d3d67c60636cdfae383e0644aa785466' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:53:59.021 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 out
<presence/>
*** User 2024-04-26 12:53:59.023 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<presence from='alice_befriend_and_alienate_3302@localhost/res1' to='alice_befriend_and_alienate_3302@localhost/res1'/>
*** User 2024-04-26 12:53:59.024 ***🔗
bOb_befriend_and_alienate_3302@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-26 12:53:59.024 ***🔗
bOb_befriend_and_alienate_3302@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='665fc6ca72ac5212' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-04-26 12:53:59.025 ***🔗
bOb_befriend_and_alienate_3302@localhost/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-26 12:53:59.025 ***🔗
bOb_befriend_and_alienate_3302@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMzMwMgBtYWtyb2xpa2E=</auth>
*** User 2024-04-26 12:53:59.026 ***🔗
bOb_befriend_and_alienate_3302@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-04-26 12:53:59.026 ***🔗
bOb_befriend_and_alienate_3302@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>
*** User 2024-04-26 12:53:59.026 ***🔗
bOb_befriend_and_alienate_3302@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d0cab0a06ddc7a56' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_3302@localhost'>
*** User 2024-04-26 12:53:59.026 ***🔗
bOb_befriend_and_alienate_3302@localhost/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-26 12:53:59.026 ***🔗
bOb_befriend_and_alienate_3302@localhost/res1 out
<iq type='set' id='cec61cd69f6e9d023e94c61f60d69da4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-04-26 12:53:59.027 ***🔗
bOb_befriend_and_alienate_3302@localhost/res1 in
<iq id='cec61cd69f6e9d023e94c61f60d69da4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_3302@localhost/res1</jid>
</bind>
</iq>
*** User 2024-04-26 12:53:59.027 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 out
<iq type='set' id='78a72400e53e718839f7b0a844293c91'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:53:59.027 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_3302@localhost/res1' id='78a72400e53e718839f7b0a844293c91' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-04-26 12:53:59.027 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 out
<presence/>
*** User 2024-04-26 12:53:59.029 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<presence from='bob_befriend_and_alienate_3302@localhost/res1' to='bob_befriend_and_alienate_3302@localhost/res1'/>
*** User 2024-04-26 12:53:59.032 ***🔗
REST request:
Code: 200
Req: {<0.21962.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"928423514a600a72">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1730}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.035 ***🔗
REST request:
Code: 200
Req: {<0.21971.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"33bff9c643d805f5">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1990}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.041 ***🔗
REST request:
Code: 204
Req: {<0.21981.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"6acf25b5cff9ab45">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3302@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>}],
<<>>,80,4427}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3302@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.048 ***🔗
REST request:
Code: 204
Req: {<0.21988.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"81d147bc32099c0e">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_3302@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>}],
<<>>,80,5639}
Params: #{body => <<"{\"jid\":\"bob_befriend_and_alienate_3302@localhost\"}">>,
method => <<"POST">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.067 ***🔗
REST request:
Code: 204
Req: {<0.21993.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"253f25f191760227">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_3302@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>}],
<<>>,80,6299}
Params: #{body =>
<<"{\"jid\":\"alice_befriend_and_alienate_3302@localhost\"}">>,
method => <<"POST">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.070 ***🔗
REST request:
Code: 200
Req: {<0.21995.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"126f28623253c1fc">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3302@localhost\",\"ask\":\"none\"}]">>,
213,1299}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.073 ***🔗
REST request:
Code: 200
Req: {<0.21997.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"76c45de718f12233">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3302@localhost\",\"ask\":\"none\"}]">>,
211,1644}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.078 ***🔗
REST request:
Code: 204
Req: {<0.21999.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost/bob_befriend_and_alienate_3302@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b1a383a4ba58802e">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>}],
<<>>,80,4077}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.081 ***🔗
REST request:
Code: 200
Req: {<0.22003.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"ae45900fef176d64">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_3302@localhost\",\"ask\":\"out\"}]">>,
210,1551}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.088 ***🔗
REST request:
Code: 204
Req: {<0.22007.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost/alice_befriend_and_alienate_3302@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"651f923e1b4d75bf">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>}],
<<>>,80,5853}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.092 ***🔗
REST request:
Code: 200
Req: {<0.22011.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f2c9b1b86597d2f9">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_3302@localhost\",\"ask\":\"none\"}]">>,
209,1541}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.095 ***🔗
REST request:
Code: 200
Req: {<0.22013.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a43ea579ca9e5646">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3302@localhost\",\"ask\":\"none\"}]">>,
213,1526}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.100 ***🔗
REST request:
Code: 204
Req: {<0.22017.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost/alice_befriend_and_alienate_3302@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"986ef2a6b125b3b8">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>}],
<<>>,80,4240}
Params: #{body => <<"{\"action\":\"subscribe\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.103 ***🔗
REST request:
Code: 200
Req: {<0.22021.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7d253ad507b9ae83">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_3302@localhost\",\"ask\":\"out\"}]">>,
212,1324}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.107 ***🔗
REST request:
Code: 204
Req: {<0.22023.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost/bob_befriend_and_alienate_3302@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"524f0c6fe6d17b88">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>}],
<<>>,80,3660}
Params: #{body => <<"{\"action\":\"subscribed\"}">>,method => <<"PUT">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.109 ***🔗
REST request:
Code: 200
Req: {<0.22025.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"50daedf318d0f570">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_3302@localhost\",\"ask\":\"none\"}]">>,
211,1279}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.112 ***🔗
REST request:
Code: 200
Req: {<0.22027.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3e5d6d2edf44f34d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_3302@localhost\",\"ask\":\"none\"}]">>,
213,1436}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.121 ***🔗
REST request:
Code: 204
Req: {<0.22029.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost/bob_befriend_and_alienate_3302@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"0688edd7510473b6">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>}],
<<>>,80,7332}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.123 ***🔗
REST request:
Code: 200
Req: {<0.22031.2>,
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8685def8784930f3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1205}
Params: #{body => <<>>,method => <<"GET">>,
path =>
<<"/api/contacts/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.126 ***🔗
REST request:
Code: 200
Req: {<0.22033.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"cd665312204c259e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_3302@localhost\",\"ask\":\"none\"}]">>,
213,1296}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.128 ***🔗
REST request:
Code: 204
Req: {<0.22035.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost/alice_befriend_and_alienate_3302@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"07a5a5047826604a">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>}],
<<>>,80,1573}
Params: #{body => <<>>,method => <<"DELETE">>,
path =>
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost/alice_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.130 ***🔗
REST request:
Code: 200
Req: {<0.22037.2>,
<<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c28c3def3660a65d">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 26 Apr 2024 12:53:58 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,1158}
Params: #{body => <<>>,method => <<"GET">>,
path => <<"/api/contacts/bob_befriend_and_alienate_3302@localhost">>,
return_headers => true,role => admin,
server => #{node => mongooseim@localhost}}
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<iq from='alice_befriend_and_alienate_3302@localhost' to='alice_befriend_and_alienate_3302@localhost/res1' id='push1d10b2d472e40dd6' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3302@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<iq from='alice_befriend_and_alienate_3302@localhost' to='alice_befriend_and_alienate_3302@localhost/res1' id='pushfada9b5e48cdde2c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3302@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<iq from='alice_befriend_and_alienate_3302@localhost' to='alice_befriend_and_alienate_3302@localhost/res1' id='push642f72225750a2cc' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_3302@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<presence from='bob_befriend_and_alienate_3302@localhost/res1' to='alice_befriend_and_alienate_3302@localhost/res1'/>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<iq from='alice_befriend_and_alienate_3302@localhost' to='alice_befriend_and_alienate_3302@localhost/res1' id='push27541cac0cfcd831' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3302@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<presence from='bob_befriend_and_alienate_3302@localhost' to='alice_befriend_and_alienate_3302@localhost/res1' type='subscribed'/>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<iq from='alice_befriend_and_alienate_3302@localhost' to='alice_befriend_and_alienate_3302@localhost/res1' id='push81af34e48f34b649' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3302@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<presence from='bob_befriend_and_alienate_3302@localhost' to='alice_befriend_and_alienate_3302@localhost/res1' type='subscribe'/>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<iq from='alice_befriend_and_alienate_3302@localhost' to='alice_befriend_and_alienate_3302@localhost/res1' id='pushe88e60ad40eb1293' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3302@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<iq from='alice_befriend_and_alienate_3302@localhost' to='alice_befriend_and_alienate_3302@localhost/res1' id='push808cff8ccc0f4498' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_3302@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-26 12:53:59.131 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
<presence from='bob_befriend_and_alienate_3302@localhost/res1' to='alice_befriend_and_alienate_3302@localhost/res1' type='unavailable'/>
*** User 2024-04-26 12:54:04.132 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<iq from='bob_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' id='push24b7d078b437887a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3302@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 12:54:04.132 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<presence from='alice_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' type='subscribe'/>
*** User 2024-04-26 12:54:04.132 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<iq from='bob_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' id='push608fea53e402dea3' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3302@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<iq from='bob_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' id='pushb7d62b03dada4bcf' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_3302@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<presence from='alice_befriend_and_alienate_3302@localhost/res1' to='bob_befriend_and_alienate_3302@localhost/res1'/>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<iq from='bob_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' id='push4e0d3d620ea75337' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3302@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<presence from='alice_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' type='subscribed'/>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<presence from='alice_befriend_and_alienate_3302@localhost/res1' to='bob_befriend_and_alienate_3302@localhost/res1' type='unavailable'/>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<iq from='bob_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' id='push1053b42669e7d97b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3302@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<presence from='alice_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' type='unsubscribe'/>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<iq from='bob_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' id='push9e85bff50d522678' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3302@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<presence from='alice_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' type='unsubscribed'/>
*** User 2024-04-26 12:54:04.133 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
<iq from='bob_befriend_and_alienate_3302@localhost' to='bob_befriend_and_alienate_3302@localhost/res1' id='pushf9b1ccd989d3df59' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_3302@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-04-26 12:54:09.134 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 out
</stream:stream>
*** User 2024-04-26 12:54:09.135 ***🔗
bob_befriend_and_alienate_3302@localhost/res1 in
</stream:stream>
*** User 2024-04-26 12:54:09.135 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 out
</stream:stream>
*** User 2024-04-26 12:54:09.135 ***🔗
alice_befriend_and_alienate_3302@localhost/res1 in
</stream:stream>
=== Ended at 2024-04-26 12:54:09
=== successfully completed test case
=== === Returned value: ok