=== Test case: rest_SUITE:befriend_and_alienate/1 (click for source code)
=== Config value:
[{watchdog,<0.54478.0>},
{{ejabberd_cwd,mongooseim@localhost},
"/home/circleci/project/_build/mim1/rel/mongooseim"},
{mam_backend,disabled},
{preset,"internal_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@96c6ee1c58e0.2024-03-08_08.34.24/big_tests.tests.rest_SUITE.logs/run.2024-03-08_08.47.34/rest_suite.befriend_and_alienate.109570.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@96c6ee1c58e0.2024-03-08_08.34.24/big_tests.tests.rest_SUITE.logs/run.2024-03-08_08.47.34/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,backend => mnesia,iqdisc => parallel},
mod_roster =>
#{backend => mnesia,iqdisc => one_queue,versioning => false,
store_current_id => false},
mod_amp => #{},
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_sic => #{iqdisc => one_queue},
mod_presence => #{},
mod_disco =>
#{iqdisc => one_queue,server_info => [],extra_domains => [],
users_can_see_hidden_services => false},
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,<<"localhost">>},
{password,<<"matygrysa">>}]},
{bob,[{username,<<"bOb">>},
{server,<<"localhost">>},
{password,<<"makrolika">>}]}]}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@96c6ee1c58e0.2024-03-08_08.34.24"
=== Started at 2024-03-08 08:47:35
*** User 2024-03-08 08:47:35.518 ***🔗
alicE_befriend_and_alienate_1775@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-03-08 08:47:35.519 ***🔗
alicE_befriend_and_alienate_1775@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='8f9f099c48b6a26d' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 08:47:35.519 ***🔗
alicE_befriend_and_alienate_1775@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-03-08 08:47:35.519 ***🔗
alicE_befriend_and_alienate_1775@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2JlZnJpZW5kX2FuZF9hbGllbmF0ZV8xNzc1AG1hdHlncnlzYQ==</auth>
*** User 2024-03-08 08:47:35.520 ***🔗
alicE_befriend_and_alienate_1775@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 08:47:35.520 ***🔗
alicE_befriend_and_alienate_1775@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-03-08 08:47:35.520 ***🔗
alicE_befriend_and_alienate_1775@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1ef8c660fd43791d' from='localhost' version='1.0' xml:lang='en' to='alice_befriend_and_alienate_1775@localhost'>
*** User 2024-03-08 08:47:35.520 ***🔗
alicE_befriend_and_alienate_1775@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-03-08 08:47:35.520 ***🔗
alicE_befriend_and_alienate_1775@localhost/res1 out
<iq type='set' id='af67ad0b2059cc3de9d5bd357d0f7bde'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 08:47:35.521 ***🔗
alicE_befriend_and_alienate_1775@localhost/res1 in
<iq id='af67ad0b2059cc3de9d5bd357d0f7bde' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_befriend_and_alienate_1775@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 08:47:35.521 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 out
<iq type='set' id='ba1f9a08bb505be7479436a78b21be96'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 08:47:35.521 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<iq from='localhost' to='alice_befriend_and_alienate_1775@localhost/res1' id='ba1f9a08bb505be7479436a78b21be96' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 08:47:35.521 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 out
<presence/>
*** User 2024-03-08 08:47:35.522 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<presence from='alice_befriend_and_alienate_1775@localhost/res1' to='alice_befriend_and_alienate_1775@localhost/res1'/>
*** User 2024-03-08 08:47:35.522 ***🔗
bOb_befriend_and_alienate_1775@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-03-08 08:47:35.522 ***🔗
bOb_befriend_and_alienate_1775@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='e7f9cd5b86a39820' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-08 08:47:35.523 ***🔗
bOb_befriend_and_alienate_1775@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-03-08 08:47:35.523 ***🔗
bOb_befriend_and_alienate_1775@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9iZWZyaWVuZF9hbmRfYWxpZW5hdGVfMTc3NQBtYWtyb2xpa2E=</auth>
*** User 2024-03-08 08:47:35.523 ***🔗
bOb_befriend_and_alienate_1775@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-08 08:47:35.523 ***🔗
bOb_befriend_and_alienate_1775@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-03-08 08:47:35.523 ***🔗
bOb_befriend_and_alienate_1775@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d4af118e7db9ea7c' from='localhost' version='1.0' xml:lang='en' to='bob_befriend_and_alienate_1775@localhost'>
*** User 2024-03-08 08:47:35.523 ***🔗
bOb_befriend_and_alienate_1775@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-03-08 08:47:35.524 ***🔗
bOb_befriend_and_alienate_1775@localhost/res1 out
<iq type='set' id='666f360eb7f52f62d0cfe6a8de1bdb98'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-08 08:47:35.524 ***🔗
bOb_befriend_and_alienate_1775@localhost/res1 in
<iq id='666f360eb7f52f62d0cfe6a8de1bdb98' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_befriend_and_alienate_1775@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-08 08:47:35.524 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 out
<iq type='set' id='2d5d408a88a880956bc7beebd6499594'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 08:47:35.524 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<iq from='localhost' to='bob_befriend_and_alienate_1775@localhost/res1' id='2d5d408a88a880956bc7beebd6499594' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-08 08:47:35.524 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 out
<presence/>
*** User 2024-03-08 08:47:35.525 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<presence from='bob_befriend_and_alienate_1775@localhost/res1' to='bob_befriend_and_alienate_1775@localhost/res1'/>
*** User 2024-03-08 08:47:35.527 ***🔗
REST request:
Code: 200
Req: {<0.54578.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"b346fd1b981a213c">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,574}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.528 ***🔗
REST request:
Code: 200
Req: {<0.54588.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"7b2d48a9708d9741">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,400}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.531 ***🔗
REST request:
Code: 204
Req: {<0.54595.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d8f9c362ebd77ac8">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1775@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>}],
<<>>,80,693}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body => <<"{\"jid\":\"bob_befriend_and_alienate_1775@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-03-08 08:47:35.533 ***🔗
REST request:
Code: 204
Req: {<0.54604.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"a2d53367f6c59137">>}],
<<"{\"jid\":\"bob_befriend_and_alienate_1775@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>}],
<<>>,80,749}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body => <<"{\"jid\":\"bob_befriend_and_alienate_1775@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-03-08 08:47:35.534 ***🔗
REST request:
Code: 204
Req: {<0.54608.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"375b1a051f4341eb">>}],
<<"{\"jid\":\"alice_befriend_and_alienate_1775@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>}],
<<>>,80,694}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,
body =>
<<"{\"jid\":\"alice_befriend_and_alienate_1775@localhost\"}">>,
method => <<"POST">>,return_headers => true}
*** User 2024-03-08 08:47:35.536 ***🔗
REST request:
Code: 200
Req: {<0.54614.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"e66c373ce0d2831e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1775@localhost\"}]">>,
213,409}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.537 ***🔗
REST request:
Code: 200
Req: {<0.54618.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"506244855cb18cf4">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1775@localhost\"}]">>,
211,368}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.540 ***🔗
REST request:
Code: 204
Req: {<0.54624.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost/bob_befriend_and_alienate_1775@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f36e7902fc1a67b7">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>}],
<<>>,80,1044}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-03-08 08:47:35.541 ***🔗
REST request:
Code: 200
Req: {<0.54631.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"daf4641960b5edb8">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"86">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"none\",\"jid\":\"bob_befriend_and_alienate_1775@localhost\"}]">>,
210,566}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.543 ***🔗
REST request:
Code: 204
Req: {<0.54635.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost/alice_befriend_and_alienate_1775@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"d3f5afe4d7ffd0b9">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>}],
<<>>,80,1090}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-03-08 08:47:35.545 ***🔗
REST request:
Code: 200
Req: {<0.54639.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"8c6d16502dc2b923">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"85">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"to\",\"jid\":\"bob_befriend_and_alienate_1775@localhost\"}]">>,
209,336}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.546 ***🔗
REST request:
Code: 200
Req: {<0.54641.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"33d30e230259b91e">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1775@localhost\"}]">>,
213,427}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.548 ***🔗
REST request:
Code: 204
Req: {<0.54643.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost/alice_befriend_and_alienate_1775@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4104d4d72f1fda7a">>}],
<<"{\"action\":\"subscribe\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>}],
<<>>,80,1025}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribe\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-03-08 08:47:35.549 ***🔗
REST request:
Code: 200
Req: {<0.54645.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"c2ba9fe3fed61b33">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"88">>}],
<<"[{\"ask\":\"out\",\"subscription\":\"from\",\"jid\":\"alice_befriend_and_alienate_1775@localhost\"}]">>,
212,360}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.551 ***🔗
REST request:
Code: 204
Req: {<0.54647.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost/bob_befriend_and_alienate_1775@localhost">>,
<<"PUT">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2a9f6bc10156852c">>}],
<<"{\"action\":\"subscribed\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>}],
<<>>,80,1268}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<"{\"action\":\"subscribed\"}">>,
method => <<"PUT">>,return_headers => true}
*** User 2024-03-08 08:47:35.552 ***🔗
REST request:
Code: 200
Req: {<0.54649.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"14cc999432e25eb3">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"87">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"bob_befriend_and_alienate_1775@localhost\"}]">>,
211,348}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.554 ***🔗
REST request:
Code: 200
Req: {<0.54651.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"f3740a98a66de85b">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"both\",\"jid\":\"alice_befriend_and_alienate_1775@localhost\"}]">>,
213,354}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.556 ***🔗
REST request:
Code: 204
Req: {<0.54653.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost/bob_befriend_and_alienate_1775@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"af2d38b97beed563">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>}],
<<>>,80,1319}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-03-08 08:47:35.557 ***🔗
REST request:
Code: 200
Req: {<0.54655.0>,
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"89ad5ebe77a4c9aa">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,411}
Params: #{path =>
<<"/api/contacts/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.559 ***🔗
REST request:
Code: 200
Req: {<0.54657.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"3a5a81ddb0df7cc6">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"89">>}],
<<"[{\"ask\":\"none\",\"subscription\":\"none\",\"jid\":\"alice_befriend_and_alienate_1775@localhost\"}]">>,
213,644}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.560 ***🔗
REST request:
Code: 204
Req: {<0.54659.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost/alice_befriend_and_alienate_1775@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"2bb75f05c8187163">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>}],
<<>>,80,665}
Params: #{path =>
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost/alice_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"DELETE">>,
return_headers => true}
*** User 2024-03-08 08:47:35.562 ***🔗
REST request:
Code: 200
Req: {<0.54661.0>,
<<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,<<"GET">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"32b27a6f191bc696">>}],
<<>>}
Result: {{<<"200">>,<<"OK">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Fri, 08 Mar 2024 08:47:35 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"2">>}],
<<"[]">>,125,323}
Params: #{path => <<"/api/contacts/bob_befriend_and_alienate_1775@localhost">>,
server => #{node => mongooseim@localhost},
role => admin,body => <<>>,method => <<"GET">>,
return_headers => true}
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<iq from='alice_befriend_and_alienate_1775@localhost' to='alice_befriend_and_alienate_1775@localhost/res1' id='pushef3b83dd3f6e08b4' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1775@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<iq from='alice_befriend_and_alienate_1775@localhost' to='alice_befriend_and_alienate_1775@localhost/res1' id='pushd2f5a629b436ce63' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1775@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<iq from='alice_befriend_and_alienate_1775@localhost' to='alice_befriend_and_alienate_1775@localhost/res1' id='push96b3518415ab083e' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='bob_befriend_and_alienate_1775@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<presence from='bob_befriend_and_alienate_1775@localhost/res1' to='alice_befriend_and_alienate_1775@localhost/res1'/>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<iq from='alice_befriend_and_alienate_1775@localhost' to='alice_befriend_and_alienate_1775@localhost/res1' id='push71d907e75a893bbb' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1775@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<presence from='bob_befriend_and_alienate_1775@localhost' to='alice_befriend_and_alienate_1775@localhost/res1' type='subscribed'/>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<iq from='alice_befriend_and_alienate_1775@localhost' to='alice_befriend_and_alienate_1775@localhost/res1' id='push1daf668f85e53104' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1775@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<presence from='bob_befriend_and_alienate_1775@localhost' to='alice_befriend_and_alienate_1775@localhost/res1' type='subscribe'/>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<iq from='alice_befriend_and_alienate_1775@localhost' to='alice_befriend_and_alienate_1775@localhost/res1' id='pusha091826dcc52904b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1775@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<iq from='alice_befriend_and_alienate_1775@localhost' to='alice_befriend_and_alienate_1775@localhost/res1' id='push0585ab29413d2555' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='bob_befriend_and_alienate_1775@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-03-08 08:47:35.562 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
<presence from='bob_befriend_and_alienate_1775@localhost/res1' to='alice_befriend_and_alienate_1775@localhost/res1' type='unavailable'/>
*** User 2024-03-08 08:47:40.563 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<iq from='bob_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' id='pushfcf1c083605308a5' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1775@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-08 08:47:40.563 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<presence from='alice_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' type='subscribe'/>
*** User 2024-03-08 08:47:40.563 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<iq from='bob_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' id='pushf62ebd9105da128b' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1775@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<iq from='bob_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' id='push0c3f8c19b44a9b23' type='set'>
<query xmlns='jabber:iq:roster'>
<item ask='subscribe' jid='alice_befriend_and_alienate_1775@localhost' subscription='from'/>
</query>
</iq>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<presence from='alice_befriend_and_alienate_1775@localhost/res1' to='bob_befriend_and_alienate_1775@localhost/res1'/>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<iq from='bob_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' id='push65655068bd90d86a' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1775@localhost' subscription='both'/>
</query>
</iq>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<presence from='alice_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' type='subscribed'/>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<presence from='alice_befriend_and_alienate_1775@localhost/res1' to='bob_befriend_and_alienate_1775@localhost/res1' type='unavailable'/>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<iq from='bob_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' id='push8bd2b701bf26808d' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1775@localhost' subscription='to'/>
</query>
</iq>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<presence from='alice_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' type='unsubscribe'/>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<iq from='bob_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' id='push10fb0e27d51aeefc' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1775@localhost' subscription='none'/>
</query>
</iq>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<presence from='alice_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' type='unsubscribed'/>
*** User 2024-03-08 08:47:40.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
<iq from='bob_befriend_and_alienate_1775@localhost' to='bob_befriend_and_alienate_1775@localhost/res1' id='pushf21426d32a2ee09c' type='set'>
<query xmlns='jabber:iq:roster'>
<item jid='alice_befriend_and_alienate_1775@localhost' subscription='remove'/>
</query>
</iq>
*** User 2024-03-08 08:47:45.564 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 out
</stream:stream>
*** User 2024-03-08 08:47:45.565 ***🔗
bob_befriend_and_alienate_1775@localhost/res1 in
</stream:stream>
*** User 2024-03-08 08:47:45.565 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 out
</stream:stream>
*** User 2024-03-08 08:47:45.565 ***🔗
alice_befriend_and_alienate_1775@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-08 08:47:45
=== successfully completed test case
=== === Returned value: ok