=== Test case: rest_client_SUITE:user_can_leave_a_room/1 (click for source code)
=== Config value:
[{watchdog,<0.88806.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,rdbms},
{preset,"mysql_redis"},
{mim_data_dir,"/home/circleci/project/big_tests/tests/rest_client_SUITE_data"},
{tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@746355319fb9.2024-03-21_07.35.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.51.42/rest_client_suite.user_can_leave_a_room.120452.html"},
{tc_group_properties,[{name,muc},parallel]},
{tc_group_path,[]},
{data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/rest_client_SUITE_data/"},
{priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@746355319fb9.2024-03-21_07.35.41/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.51.42/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => rdbms},
mod_roster =>
#{iqdisc => one_queue,backend => rdbms,versioning => false,
store_current_id => false},
mod_sic => #{iqdisc => one_queue},
mod_register =>
#{access => register,iqdisc => one_queue,
registration_watchers => [],password_strength => 0,
ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
mod_amp => #{},mod_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}}}]
=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@746355319fb9.2024-03-21_07.35.41"
=== Started at 2024-03-21 07:51:43
*** User 2024-03-21 07:51:43.470 ***🔗
alicE_user_can_leave_a_room_3205@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-21 07:51:43.470 ***🔗
alicE_user_can_leave_a_room_3205@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1a36fa6497d8d631' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:43.470 ***🔗
alicE_user_can_leave_a_room_3205@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-21 07:51:43.471 ***🔗
alicE_user_can_leave_a_room_3205@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfY2FuX2xlYXZlX2Ffcm9vbV8zMjA1AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 07:51:43.478 ***🔗
alicE_user_can_leave_a_room_3205@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:43.478 ***🔗
alicE_user_can_leave_a_room_3205@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-21 07:51:43.479 ***🔗
alicE_user_can_leave_a_room_3205@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0ee4594f089237b5' from='localhost' version='1.0' xml:lang='en' to='alice_user_can_leave_a_room_3205@localhost'>
*** User 2024-03-21 07:51:43.479 ***🔗
alicE_user_can_leave_a_room_3205@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-21 07:51:43.479 ***🔗
alicE_user_can_leave_a_room_3205@localhost/res1 out
<iq type='set' id='c91a2c2431f2af6b2bf8b864985469bd'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:51:43.479 ***🔗
alicE_user_can_leave_a_room_3205@localhost/res1 in
<iq id='c91a2c2431f2af6b2bf8b864985469bd' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_can_leave_a_room_3205@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:51:43.479 ***🔗
alice_user_can_leave_a_room_3205@localhost/res1 out
<iq type='set' id='e7b0f33c922389b4ea3ae5b1cffa0a9d'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.481 ***🔗
alice_user_can_leave_a_room_3205@localhost/res1 in
<iq from='localhost' to='alice_user_can_leave_a_room_3205@localhost/res1' id='e7b0f33c922389b4ea3ae5b1cffa0a9d' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.482 ***🔗
alice_user_can_leave_a_room_3205@localhost/res1 out
<presence/>
*** User 2024-03-21 07:51:43.561 ***🔗
alice_user_can_leave_a_room_3205@localhost/res1 in
<presence from='alice_user_can_leave_a_room_3205@localhost/res1' to='alice_user_can_leave_a_room_3205@localhost/res1'/>
*** User 2024-03-21 07:51:43.562 ***🔗
bOb_user_can_leave_a_room_3205@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-21 07:51:43.563 ***🔗
bOb_user_can_leave_a_room_3205@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3dd30c0e660e0307' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:51:43.564 ***🔗
bOb_user_can_leave_a_room_3205@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-21 07:51:43.564 ***🔗
bOb_user_can_leave_a_room_3205@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2Nhbl9sZWF2ZV9hX3Jvb21fMzIwNQBtYWtyb2xpa2E=</auth>
*** User 2024-03-21 07:51:43.574 ***🔗
bOb_user_can_leave_a_room_3205@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:51:43.574 ***🔗
bOb_user_can_leave_a_room_3205@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-21 07:51:43.575 ***🔗
bOb_user_can_leave_a_room_3205@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='0e3ca7a47207c4f6' from='localhost' version='1.0' xml:lang='en' to='bob_user_can_leave_a_room_3205@localhost'>
*** User 2024-03-21 07:51:43.575 ***🔗
bOb_user_can_leave_a_room_3205@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-21 07:51:43.575 ***🔗
bOb_user_can_leave_a_room_3205@localhost/res1 out
<iq type='set' id='0adbaada12a08cbe8b10988412199924'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:51:43.576 ***🔗
bOb_user_can_leave_a_room_3205@localhost/res1 in
<iq id='0adbaada12a08cbe8b10988412199924' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_can_leave_a_room_3205@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:51:43.576 ***🔗
bob_user_can_leave_a_room_3205@localhost/res1 out
<iq type='set' id='414da6f5611da366c40fe06ccc85e5c4'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.577 ***🔗
bob_user_can_leave_a_room_3205@localhost/res1 in
<iq from='localhost' to='bob_user_can_leave_a_room_3205@localhost/res1' id='414da6f5611da366c40fe06ccc85e5c4' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:51:43.577 ***🔗
bob_user_can_leave_a_room_3205@localhost/res1 out
<presence/>
*** User 2024-03-21 07:51:43.590 ***🔗
bob_user_can_leave_a_room_3205@localhost/res1 in
<presence from='bob_user_can_leave_a_room_3205@localhost/res1' to='bob_user_can_leave_a_room_3205@localhost/res1'/>
*** User 2024-03-21 07:51:43.680 ***🔗
REST request:
Code: 201
Req: {<0.89309.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"4f193ac4b0cefe58">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9jYW5fbGVhdmVfYV9yb29tXzMyMDVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"25">>}],
<<"{\"id\":\"1711-7503-670919\"}">>,154,24453}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_user_can_leave_a_room_3205@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-03-21 07:51:43.774 ***🔗
REST request:
Code: 204
Req: {<0.89439.0>,<<"/api/rooms/1711-7503-670919/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"425122c03f79775e">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9jYW5fbGVhdmVfYV9yb29tXzMyMDVAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_user_can_leave_a_room_3205@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>}],
<<>>,80,88294}
Params: #{path => <<"/api/rooms/1711-7503-670919/users">>,
server => #{node => mongooseim@localhost},
body =>
<<"{\"user\":\"bob_user_can_leave_a_room_3205@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_user_can_leave_a_room_3205@localhost">>,
<<"matygrysa">>},
role => client,return_headers => true}
*** User 2024-03-21 07:51:43.774 ***🔗
bob_user_can_leave_a_room_3205@localhost/res1 in
<message from='1711-7503-670919@muclight.localhost' to='bob_user_can_leave_a_room_3205@localhost' id='0985ae8c-c20e-41bb-a5e9-f320397b7a85' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1711-7503-755839</version>
<user affiliation='member'>bob_user_can_leave_a_room_3205@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-21 07:51:43.774 ***🔗
alice_user_can_leave_a_room_3205@localhost/res1 in
<message from='1711-7503-670919@muclight.localhost' to='alice_user_can_leave_a_room_3205@localhost' id='0985ae8c-c20e-41bb-a5e9-f320397b7a85' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1711-7503-670908</prev-version>
<version>1711-7503-755839</version>
<user affiliation='member'>bob_user_can_leave_a_room_3205@localhost</user>
</x>
<body/>
<stanza-id by='1711-7503-670919@muclight.localhost' id='C516V9RIJS81' xmlns='urn:xmpp:sid:0'/>
</message>
*** User 2024-03-21 07:51:43.864 ***🔗
REST request:
Code: 204
Req: {<0.89577.0>,
<<"/api/rooms/1711-7503-670919/users/bob_user_can_leave_a_room_3205@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"29ffb2d569cc3a10">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfY2FuX2xlYXZlX2Ffcm9vbV8zMjA1QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:51:43 GMT">>}],
<<>>,80,83032}
Params: #{path =>
<<"/api/rooms/1711-7503-670919/users/bob_user_can_leave_a_room_3205@localhost">>,
server => #{node => mongooseim@localhost},
body => <<>>,method => <<"DELETE">>,
creds =>
{<<"bob_user_can_leave_a_room_3205@localhost">>,<<"makrolika">>},
role => client,return_headers => true}
*** User 2024-03-21 07:51:43.865 ***🔗
bob_user_can_leave_a_room_3205@localhost/res1 in
<message from='1711-7503-670919@muclight.localhost' to='bob_user_can_leave_a_room_3205@localhost' id='41c23127-0ff2-45c9-8420-bc33a775d659' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<user affiliation='none'>bob_user_can_leave_a_room_3205@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-21 07:51:43.866 ***🔗
bob_user_can_leave_a_room_3205@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:51:43.867 ***🔗
bob_user_can_leave_a_room_3205@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:51:43.867 ***🔗
alice_user_can_leave_a_room_3205@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:51:43.867 ***🔗
alice_user_can_leave_a_room_3205@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:51:43
=== successfully completed test case
=== === Returned value: ok