=== Test case: rest_client_SUITE:user_can_leave_a_room/1 (click for source code)
=== Config value:
[{watchdog,<0.55097.0>},
{muc_light_host,<<"muclight.localhost">>},
{mam_backend,disabled},
{preset,"internal_mnesia"},
{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@128b3716d043.2024-03-21_07.35.33/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.48.54/rest_client_suite.user_can_leave_a_room.75011.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@128b3716d043.2024-03-21_07.35.33/big_tests.tests.rest_client_SUITE.logs/run.2024-03-21_07.48.54/log_private/"},
{{saved_modules,mongooseim@localhost,<<"localhost">>},
#{mod_vcard =>
#{matches => 30,
host => {prefix,<<"vjud.">>},
search => true,iqdisc => parallel,backend => mnesia},
mod_roster =>
#{iqdisc => one_queue,backend => mnesia,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@128b3716d043.2024-03-21_07.35.33"
=== Started at 2024-03-21 07:48:54
*** User 2024-03-21 07:48:55.043 ***🔗
alicE_user_can_leave_a_room_1804@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:48:55.044 ***🔗
alicE_user_can_leave_a_room_1804@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='f4c78bb1854b75bc' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:48:55.044 ***🔗
alicE_user_can_leave_a_room_1804@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:48:55.045 ***🔗
alicE_user_can_leave_a_room_1804@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VzZXJfY2FuX2xlYXZlX2Ffcm9vbV8xODA0AG1hdHlncnlzYQ==</auth>
*** User 2024-03-21 07:48:55.046 ***🔗
alicE_user_can_leave_a_room_1804@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:48:55.046 ***🔗
alicE_user_can_leave_a_room_1804@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:48:55.046 ***🔗
alicE_user_can_leave_a_room_1804@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4a32ff27e78a179b' from='localhost' version='1.0' xml:lang='en' to='alice_user_can_leave_a_room_1804@localhost'>
*** User 2024-03-21 07:48:55.046 ***🔗
alicE_user_can_leave_a_room_1804@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:48:55.047 ***🔗
alicE_user_can_leave_a_room_1804@localhost/res1 out
<iq type='set' id='320af9ec08772c0d4f72d32d5460a3fb'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:48:55.047 ***🔗
alicE_user_can_leave_a_room_1804@localhost/res1 in
<iq id='320af9ec08772c0d4f72d32d5460a3fb' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>alice_user_can_leave_a_room_1804@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:48:55.047 ***🔗
alice_user_can_leave_a_room_1804@localhost/res1 out
<iq type='set' id='80546ca9c62703a2476eb90fb6db820a'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:48:55.048 ***🔗
alice_user_can_leave_a_room_1804@localhost/res1 in
<iq from='localhost' to='alice_user_can_leave_a_room_1804@localhost/res1' id='80546ca9c62703a2476eb90fb6db820a' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:48:55.049 ***🔗
alice_user_can_leave_a_room_1804@localhost/res1 out
<presence/>
*** User 2024-03-21 07:48:55.050 ***🔗
alice_user_can_leave_a_room_1804@localhost/res1 in
<presence from='alice_user_can_leave_a_room_1804@localhost/res1' to='alice_user_can_leave_a_room_1804@localhost/res1'/>
*** User 2024-03-21 07:48:55.051 ***🔗
bOb_user_can_leave_a_room_1804@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:48:55.053 ***🔗
bOb_user_can_leave_a_room_1804@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='487894af8d3549ba' from='localhost' version='1.0' xml:lang='en'>
*** User 2024-03-21 07:48:55.053 ***🔗
bOb_user_can_leave_a_room_1804@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:48:55.054 ***🔗
bOb_user_can_leave_a_room_1804@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91c2VyX2Nhbl9sZWF2ZV9hX3Jvb21fMTgwNABtYWtyb2xpa2E=</auth>
*** User 2024-03-21 07:48:55.055 ***🔗
bOb_user_can_leave_a_room_1804@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
*** User 2024-03-21 07:48:55.055 ***🔗
bOb_user_can_leave_a_room_1804@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:48:55.075 ***🔗
bOb_user_can_leave_a_room_1804@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ab54f23bd4c5784' from='localhost' version='1.0' xml:lang='en' to='bob_user_can_leave_a_room_1804@localhost'>
*** User 2024-03-21 07:48:55.075 ***🔗
bOb_user_can_leave_a_room_1804@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:48:55.075 ***🔗
bOb_user_can_leave_a_room_1804@localhost/res1 out
<iq type='set' id='ed1b1997ec35dbd59675adfc141725a4'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<resource>res1</resource>
</bind>
</iq>
*** User 2024-03-21 07:48:55.076 ***🔗
bOb_user_can_leave_a_room_1804@localhost/res1 in
<iq id='ed1b1997ec35dbd59675adfc141725a4' type='result'>
<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
<jid>bob_user_can_leave_a_room_1804@localhost/res1</jid>
</bind>
</iq>
*** User 2024-03-21 07:48:55.076 ***🔗
bob_user_can_leave_a_room_1804@localhost/res1 out
<iq type='set' id='ec5283f4b9729e1c526c11016fae8a7e'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:48:55.077 ***🔗
bob_user_can_leave_a_room_1804@localhost/res1 in
<iq from='localhost' to='bob_user_can_leave_a_room_1804@localhost/res1' id='ec5283f4b9729e1c526c11016fae8a7e' type='result'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
*** User 2024-03-21 07:48:55.078 ***🔗
bob_user_can_leave_a_room_1804@localhost/res1 out
<presence/>
*** User 2024-03-21 07:48:55.079 ***🔗
bob_user_can_leave_a_room_1804@localhost/res1 in
<presence from='bob_user_can_leave_a_room_1804@localhost/res1' to='bob_user_can_leave_a_room_1804@localhost/res1'/>
*** User 2024-03-21 07:48:55.097 ***🔗
REST request:
Code: 201
Req: {<0.55499.0>,<<"/api/rooms">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9200c18f75c703c9">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9jYW5fbGVhdmVfYV9yb29tXzE4MDRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>}
Result: {{<<"201">>,<<"Created">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:48:54 GMT">>},
{<<"content-type">>,<<"application/json">>},
{<<"content-length">>,<<"24">>}],
<<"{\"id\":\"1711-7335-96676\"}">>,153,2098}
Params: #{path => <<"/api/rooms">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"subject\":\"This room subject\",\"name\":\"new_room_name\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_user_can_leave_a_room_1804@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-03-21 07:48:55.112 ***🔗
REST request:
Code: 204
Req: {<0.55630.0>,<<"/api/rooms/1711-7335-96676/users">>,<<"POST">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"35985d0488e131e7">>},
{<<"authorization">>,
<<"Basic YWxpY2VfdXNlcl9jYW5fbGVhdmVfYV9yb29tXzE4MDRAbG9jYWxob3N0Om1hdHlncnlzYQ==">>}],
<<"{\"user\":\"bob_user_can_leave_a_room_1804@localhost\"}">>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:48:54 GMT">>}],
<<>>,80,2654}
Params: #{path => <<"/api/rooms/1711-7335-96676/users">>,
server => #{node => mongooseim@localhost},
role => client,
body =>
<<"{\"user\":\"bob_user_can_leave_a_room_1804@localhost\"}">>,
method => <<"POST">>,
creds =>
{<<"alice_user_can_leave_a_room_1804@localhost">>,
<<"matygrysa">>},
return_headers => true}
*** User 2024-03-21 07:48:55.113 ***🔗
bob_user_can_leave_a_room_1804@localhost/res1 in
<message from='1711-7335-96676@muclight.localhost' to='bob_user_can_leave_a_room_1804@localhost' id='5832d547-cf4d-460d-9ae1-7c2f7ac01c9d' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<version>1711-7335-111016</version>
<user affiliation='member'>bob_user_can_leave_a_room_1804@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-21 07:48:55.113 ***🔗
alice_user_can_leave_a_room_1804@localhost/res1 in
<message from='1711-7335-96676@muclight.localhost' to='alice_user_can_leave_a_room_1804@localhost' id='5832d547-cf4d-460d-9ae1-7c2f7ac01c9d' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<prev-version>1711-7335-96532</prev-version>
<version>1711-7335-111016</version>
<user affiliation='member'>bob_user_can_leave_a_room_1804@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-21 07:48:55.181 ***🔗
REST request:
Code: 204
Req: {<0.55715.0>,
<<"/api/rooms/1711-7335-96676/users/bob_user_can_leave_a_room_1804@localhost">>,
<<"DELETE">>,
[{<<"Content-Type">>,<<"application/json">>},
{<<"Request-Id">>,<<"9474887b9edbd286">>},
{<<"authorization">>,
<<"Basic Ym9iX3VzZXJfY2FuX2xlYXZlX2Ffcm9vbV8xODA0QGxvY2FsaG9zdDptYWtyb2xpa2E=">>}],
<<>>}
Result: {{<<"204">>,<<"No Content">>},
[{<<"server">>,<<"Cowboy">>},
{<<"date">>,<<"Thu, 21 Mar 2024 07:48:54 GMT">>}],
<<>>,80,1897}
Params: #{path =>
<<"/api/rooms/1711-7335-96676/users/bob_user_can_leave_a_room_1804@localhost">>,
server => #{node => mongooseim@localhost},
role => client,body => <<>>,method => <<"DELETE">>,
creds =>
{<<"bob_user_can_leave_a_room_1804@localhost">>,<<"makrolika">>},
return_headers => true}
*** User 2024-03-21 07:48:55.181 ***🔗
bob_user_can_leave_a_room_1804@localhost/res1 in
<message from='1711-7335-96676@muclight.localhost' to='bob_user_can_leave_a_room_1804@localhost' id='fc3fa0b6-6891-40ec-b283-cafd7376c718' type='groupchat'>
<x xmlns='urn:xmpp:muclight:0#affiliations'>
<user affiliation='none'>bob_user_can_leave_a_room_1804@localhost</user>
</x>
<body/>
</message>
*** User 2024-03-21 07:48:55.182 ***🔗
bob_user_can_leave_a_room_1804@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:48:55.182 ***🔗
bob_user_can_leave_a_room_1804@localhost/res1 in
</stream:stream>
*** User 2024-03-21 07:48:55.182 ***🔗
alice_user_can_leave_a_room_1804@localhost/res1 out
</stream:stream>
*** User 2024-03-21 07:48:55.183 ***🔗
alice_user_can_leave_a_room_1804@localhost/res1 in
</stream:stream>
=== Ended at 2024-03-21 07:48:55
=== successfully completed test case
=== === Returned value: ok